I created a Windows desktop gadget using GWT RPC but how could I make a remote call? The gadget may only run client part of code (javascript).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First you should deploy your application to some server.
Consider your remote service url is: http://server.com/myapp/myrpcservice You should target your service to that URL instead of using @RemoteServiceRelativePath:
Now you can use this client as Windows gadget.
Please note, that this code will not work in browser or in GWT Development Mode. That’s because of the Same Origin Policy.
This code will only work with Windows gadgets, because the Same Origin Policy is disabled for gadgets.