I thought syncproxy was a library for the gwt client side, so it is strange to me that dodn't come with a gwt module definition. The docs says (http://code.google.com/p/gwt-syncproxy/) I must instantiate the service class on the client side like this:
private static GreetingService rpcService =
SyncProxy.newProxyInstance(GreetingService.class,
"http://example.com/helloApp", "greet");
But that introduces the GWT compilation error:
No source code is available for type com.gdevelop.gwt.syncrpc.SyncProxy; did you forget to inherit a required module?
Espected error.. I'm trying now to put the library sources in my own code. Hope that let me use it. Any suggestions are appreciated, in the meanwhile will try to contact the authors. Thanks
On Wednesday, October 3, 2012 3:26:58 PM UTC-3, Jens wrote:
I think you dont need a GWT module for gwt-syncproxy. It should work in a pure JUnit test as it does not use GWT.create() for creating the GWT service. gwt-syncproxy uses Java's dynamic proxy to implement the service interface and uses Java's HttpUrlConnection to call your server.---- J.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FPSIG22RZbAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment