Thanks for the prompt response. The Restful web service is developed using Spring Rest framework. It expects a POST method with the User object (personal details for the user) in the request, processes the User object and returns an updated User object in the response. My understanding is that the User object needs to be passed via Serialization while invoking it from the client. Now, if I am using GWT, the object will be in Java. Most of the examples I see are where the data exchanged between GWT based client and the server is in text format (XML or JSON), which is a bit different than what I am trying to do.
If I use RequestBuilder API (com.google.gwt.http.client package), then I don't see methods where I can add objects to the Request. I only see 'setRequestData(String) and sendRequest(String, RequestCallBack) ' . So how can I use this API to pass User object in the http request ? Is it possible at all to do what I need using GWT ? If using RPC is the only solution then how can I do that ? Can you please provide little bit details ? Thanks in advance. -Deep On Apr 8, 10:54 am, rjcarr <[email protected]> wrote: > Hi Deep- > > Could you elaborate on this a little bit? > > "I need to use POST methods with user defined objects in the web svc > calls" > > User defined objects where ... in javascript? In java? If the > latter, why not use gwt-rpc to move around these beans? You would > just need to make sure they are serializable. > > If you can't use gwt-rpc for whatever reason, then using standard > servlets and JSON would also work. You are correct, in order to do > this you would use the RequestBuilder to make your request, and then > use the GWT JSON libraries to parse the response. > > Good luck! -- 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.
