Are you maybe accessing through a different port? Maybe it has
something to do with same origin policy (http://code.google.com/p/
google-web-toolkit-doc-1-5/wiki/FAQ_SOP)

Zul

On Oct 21, 7:53 am, Consuming Webservice works in IE but not in FF
<[email protected]> wrote:
> I’m desperately trying to use a Web service withGWT.
> Tests in Hosted mode and in Internet Explorer 7 Work fine but in FF I
> receive a Strange error message.
>
> -----
> Request format is unrecognized forURLunexpectedly 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.RequestBuilderbuilder = 
> newRequestBuilder(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 retrieveJSON/ " +
> exception.getMessage());
>     }
>     public voidonResponseReceived(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 retrieveJSON("
>           + response.getStatusText() + " / "
>           + response.getStatusCode() + ")");
>       }
>     }
>   });}
>
> catch (RequestException e) {
>   displayError.setText("2 Couldn't retrieveJSON/ " + 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 withgwtin 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