• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GWT HTTP RequestBuilder

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

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. http://factory-dev03.example.com:8111/

server 2. http://factory-dev109.example.com:8111/

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 (http://code.google.com/webtoolkit/doc/2.0/FAQ_Server.html#What_is_the_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="http://factory-dev03.example.com:8111/CustomerUI-dev03/ims_ui/ui/WizardJavaScriptUpdated.jsp";

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());

}

});


Thanks
kumar

 
F is for finger. Can you stick your finger in your nose? Doesn't that feel nice? Now try this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic