On Fri, Oct 3, 2008 at 8:28 AM, andi <[EMAIL PROTECTED]> wrote: > > Hello Jose, > > The solution to send data with the request builder is to use a POST: > > RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url); > > The difference of POST and GET ist: > GET: only the "address line" is sent to the server. If you want to > send data with a GET you must put it as a parameter into the URL: > http://www.xyz.de&data=thisisthedatata > POST: you can provide an URL and send additional data: > requestBuilder.sendRequest(data, new RequestCallback() { > ... > } > > OK, I have got a question, too: > What is this line doing? url = intrinsics.getCachedUrl(url, 1); > What does it do with the URL and why can it avoid the same origin > problem?
It redirects to a proxy running on the same machine where the cached gadget was retreived from. Print out the value of 'url' after you retrieve it. It should show a url to a different IP address, with the "real" url you want to go to as a URL command line parameter. > I'm not using gadgets but I'm looking for a possibility how to call a > web service from GWT that is not on the same server as my GWT site. > (E.g. calling the amazon web service from my site (client) which is > built with GWT). > > One solution of course is that I make a call to my server and the > servlet then calls the webservice and answers to the GWT client with > the response data from the web service. But I explicitly wnat to avoid > to make a call to my server. Unfortunately, this proxy is gadgets specific. You could setup such a proxy on your web site, however. > > If you have any idea please let me know. > > Regards > > Andreas > > > > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
