RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, "url to the
servlet which response back with xml");
builder.setHeader("Content-type", "application/x-www-form-urlencoded");

builder.sendRequest(null, new RequestCallback() {

                    @Override
                    public void onResponseReceived(Request request, Response
response) {

                        String xmlData = response.getText();

                        //parse the xml data here
                        Document doc = XMLParser.parse(xmlData);
                   }

                    @Override
                    public void onError(Request request, Throwable
exception) {
                        //handle error
                    }
                } );

This should help.

- Abdullah

On Thu, Dec 24, 2009 at 10:32 AM, Malli <[email protected]> wrote:

> Hi,
> some body help  me out! i'm new to GWT.
> I'm using RequesteBuilder for calling HttpServlet.
>
> Here my doubts are :
> 1.How can we prepare  the xml request ?
> 2.how can we handle the xml response inside gwt application?
>
> please give me  reply with some samples.
>
> --
>
> 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.


Reply via email to