I’m desperately trying to use a Web service with GWT.
Tests in Hosted mode and in Internet Explorer 7 Work fine but in FF I
receive a Strange error message.

-----
Request format is unrecognized for URL unexpectedly ending in '/
HelloWorld'.  asp.net error page.
-----

All I find in the Internet is that I have to activate httpPost and
httpGet in the WebConfig of the Web service.

Webservice: VS2008 / C#.net 3.5

Here is the actual Code (GWT):

-----
// Send request to server and catch any errors.
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url);
builder.setHeader("Content-Type", "application/json; charset=utf-8");
builder.setRequestData("{}");
try {
  builder.sendRequest(null, new RequestCallback() {
    public void onError(Request request, Throwable exception) {
      displayError.setText("1 Couldn't retrieve JSON / " +
exception.getMessage());
    }
    public void onResponseReceived(Request request, Response response)
{
      if (200 == response.getStatusCode()) {
        JsArray<XData> xData = asArrayOfXData(asJsonString
(response.getText()));
        displayError.setText(xData.get(1).getSymbol());
      }
      else {
        displayError.setText("Couldn't retrieve JSON ("
          + response.getStatusText() + " / "
          + response.getStatusCode() + ")");
      }
    }
  });
}
catch (RequestException e) {
  displayError.setText("2 Couldn't retrieve JSON / " + e.getMessage
());
}
-----

There isn’t thrown any exception. I just don’t receive any data.
IT WORKS IN IE7!

How do I consume a asp.net web service with gwt in a POST callback?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to