At some point support for IRest has been removed from EDT; I think this may may have been removed from 0.81M3.
I used to be able to do the following ...
package client;
import org.eclipse.edt.rui.widgets.Div;
import org.eclipse.edt.rui.widgets.HTML;
handler test type RUIhandler{initialUI =[ui], onConstructionFunction = start, cssFile = "css/testirest.css", title = ""}
ui div{children =[result]};
result html{};
function start()
myIRest IRest?;
uri string = "http://www.eclipse.org/";
call myIRest.invokeGet(uri)
returning to gotpage
onException serviceExceptionHandler;
end
function gotpage(retResult string in)
result.text = retresult;
end
function serviceExceptionHandler(exp AnyException in)
s String = "An exception has occurred: " + exp.message + " <br>";
if(exp isa ServiceInvocationException)
s += "Detail1: " + (exp as serviceInvocationException).detail1 + " <br>";
s += "Detail2: " + (exp as serviceInvocationException).detail2 + " <br>";
s += "Detail3: " + (exp as serviceInvocationException).detail3 + " <br>";
end
SysLib.writeStdout(s);
end
end
I see that there have been changes to the service access within 0.81M3 and I've followed the link to http://wiki.eclipse.org/EDT:Resource_Binding_Services but I can't get the syntax right to perform the same function.
How would I now perform the http get?
Richard