You have two options - 1. Use a proxy server to proxy requests from your server to the external domain. The new url will then be something like http://myserver.com/extserver/CallProgram. Then use regular RequestBuilder to make the calls. Apache's mod_proxy can do this job easily, Tomcat also has support for a proxy server. This has some disadvantages - authentication cookies meant for external domain will not be sent by the browser. 2. Change the service to return JSON data, and then use JSONP to parse the data on client side. This may not be feasible, since you have a XML service
Finally, avoid parsing XML on the client side if you can. JSON is a much better format to send data to the clients, and even if you have to do an automatic conversion from XML to JSON on the server side, it is worth the effort. --Sri On 9 June 2010 20:35, Archana Babuta <[email protected]> wrote: > Hi, > > In my client, I need to call a rest service that is on another external > server and the URL is something like : > * > http://extServer/CallProgram <http://extserver/CallProgram>* > > The Request object is a String > "<myRequest> <callingNumber>111-222-3333 <callingNumber> > <calledNumber>777-888-9999 <calledNumber></myRequest>" > > The response is an xml . > <callId> 111 </callId> > > Could you guide me towards that ? > > Thanks in advance > AB > > -- > 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]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- 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.
