Every time a request is made with RequestBuilder an empty response is
returned from the server. If the request is made using just the web
browser in an empty tab a non empty response is returned from the
server that is displayed directly (in Firefox). With the latter the
expected response is returned from the server.

After doing some further investigation on the issue it seems as though
the empty response could be caused by GWT's Same Origin Policy. The
web services are running on a different server from the GWT client.
What was suggested was to use JsonpRequestBuilder instead of
RequestBuilder to bypass the SOP problem. However that can only be
done if one can change the REST web services to return Json instead of
XML.

I have undertaken the suggestion but now have an entirely new problem
to content with. Timeouts are occurring every time a request is made
using JsonpRequestBuilder. I have checked to see that the URL is
correct, and have extended the timeout duration but still end up with
the same problem. What could cause a timeout to occur with doing a
request with JsonpRequestBuilder?



A. Stevko wrote:
> Hi Nick,
> Are you saying that the server response is empty or that RequestBuilder does
> not recognize the response?
> If its the former, the server is not recognizing something in the request
> like the browser code headers.
> If its the latter, then I would compare the content-type and formatting of
> the response with a benchmark response from the eclipse dev tool.
> Either way, you'll need to get below just looking at the browser display to
> understand & diagnose the communication protocols. I suggest using a logging
> proxy server on your test bench to track what is coming and going. MS
> Fiddler works well on Windows.
> ---Stevko
>

-- 
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.

Reply via email to