Hello,

could you have a look at this thread? It should give you some ideas.

http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2433378

Best regards,
Thierry Boileau

> Good evening everyone,
>
> What do I need to make from GWT a simple (GET and PUT) request to a 
> *non-localhost* *service **without *having to implement any server 
> side code? The following example does not work. (Probably becouse of 
> the Same Origin Policy):
> ClientResource r = new 
> ClientResource("http://xxx.xxx.xxx.xxx:pppp/services/my_service";);
> r.setOnReceived(new Uniform() {
>          public void handle(Request request, Response response) {
>                  System.out.println(response.getStatus());
>          }
> });
> r.get();
>
> Cheers,
> ab
> ------------------------------------------------------------------------
> View this message in context: GWT, ClientResource, Same Origin Policy 
> (SOP) 
> <http://n2.nabble.com/GWT-ClientResource-Same-Origin-Policy-SOP-tp4619686p4619686.html>
> Sent from the Restlet Discuss mailing list archive 
> <http://n2.nabble.com/Restlet-Discuss-f1400322.html> at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2451084

Reply via email to