File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes GWT HTTP RequestBuilder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT HTTP RequestBuilder" Watch "GWT HTTP RequestBuilder" New topic

GWT HTTP RequestBuilder

karun kumar

Joined: Nov 11, 2011
Posts: 1

I am using GWT HTTP RequestBuilder in my application to exchange information between 2 servers, out of which 1 server hosts my GWT application and another is general server which hosts j2ee application

both servers domains are as follows

server 1.

server 2.

in IE browser i am getting response with status code as '200' from server 2 but in FireFox and Safari i am getting response with status code as '0'.

i have gone through same origin policy (,_and_how_does_it_affect_GWT)

and i also added <add-linker name="xs"/> in application.gwt.xml file but no luck.

below is my code for reference

String url="";

RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode(url));

Request request = builder.sendRequest("", new RequestCallback() {

public void onError(Request request, Throwable exception) {
Window.alert("Request Builder Failed");

public void onResponseReceived(Request request, Response response) {
Window.alert("Request Builder passed"+response.getStatusCode());




I agree. Here's the link:
subject: GWT HTTP RequestBuilder
It's not a secret anymore!