String url = "";
// typically it would be a good idea to
URL.encode(url);
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url);
//builder.setHeader("Content-Type", "text/xml");
try {
    builder.sendRequest(null, new RequestCallback() {

          @Override
          public void onResponseReceived(com.google.gwt.http.client.Request 
builder,Response response) {
            String text = response.getText();
            System.out.println("text"+text);
            
            
          }

          @Override
          public void onError(com.google.gwt.http.client.Request builder, 
Throwable throwable) {
            // handle errors
              System.out.println("Error occurred");
          }
        });
} catch (Exception e) {
    e.printStackTrace();
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to