The link you posted is dead, and I didn't completely understand what
you were asking. However, I make some non-GWT requests in my project
so maybe this will help you out.
RequestBuilder reqbuilder = new RequestBuilder(RequestBuilder.GET,
URL);
reqbuilder.sendRequest(
null, // OK to use null for GET type
new RequestCallback() {
public void onResponseReceived(Request request, Response
response) {
if(response.getStatusCode() == 200) {
// SUCCESS
log(response.getText());
} else {
// ERROR
log(response.getStatusCode());
log(response.getStatusText());
}
}
public void onError(Request request, Throwable t) {
// ERROR
log(t.getMessage());
}
}
);
On Dec 15, 7:59 am, joe <[email protected]> wrote:
> I'm having an issue with GWT 2.0 requesting XML data from a C# self
> hosted Web Service. Using the GET request tutorial
> (http://www.gwtapps.com/doc/html/com.google.gwt.http.client.html) I was able
> to retrieve the XML data using GWT 1.7. After upgrading to 2.0 all I
> return is an empty String using response.getTest(). The headers are
> also empty and response.getStatusCode() returned is 0.
>
> Running the C# app in debug I find that it is sending the XML data
> out, but it looks like the GWT side isn't receiving it. If I call the
> URL from the browser I see the XML data.
>
> I have also tried to use this same method to call other web services
> as well as websites. Still status code 0 and no text in the
> response.getTest().
>
> This leads me to believe that I missed some configuration in setting
> up my app to GWT 2.0. However, I have clue where to start.
>
> Any help would be greatly appreciated.
--
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.