Monday, September 30, 2013

i m using this code,,,i get response when i hit url on browser but fail by a code,,,,empty response....

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

         public void onResponseReceived( builder,Response response) {
           String text = response.getText();

         public void onError( builder, Throwable throwable) {
           // handle errors
             System.out.println("Error occurred");
} catch (Exception e) {

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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment