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?