Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGL Development Tools » What happened to IRest?
What happened to IRest? [message #895672] Sat, 14 July 2012 11:32 Go to previous message
Richard Moulton is currently offline Richard Moulton
Messages: 79
Registered: August 2011
Location: Devon, UK
Member
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Form field parsing issue
Next Topic:MySQL table access
Goto Forum:
  


Current Time: Sat May 25 07:21:19 EDT 2013

Powered by FUDForum. Page generated in 0.01672 seconds