Have tried both
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
"/rate.xml");
and

RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
GWT.getHostPageBaseURL()
+"rate.xml");

both do not work.
If that was a SOP problem it would fire the at least the onError
method.



On Jul 5, 11:45 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 5 juil, 17:08, Nik <khristia...@gmail.com> wrote:
>
>
>
>
>
> > Hi,
> > I'm new with GWT nad trying to write a simple XML-parser in Eclipse
> > and really don't understand what url i have to use in my HTTP GET
> > request.
>
> >         private void refreshtable() {
> > //      String url = "http://127.0.0.1:9997/rate.xml";;
> >         RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
> > "rate.xml");
>
> >         try {
> >           Request request = builder.sendRequest(null, new RequestCallback()
> > { ..........
>
> > now i have copied  the file rate.xml to all of the folders, but the
> > HTTP GET doen't see the file. I have also tried to 
> > puthttp://127.0.0.1:9997/rate.xml
> > as url, where i can access it with my browser.
>
> > Maybe someone has an advise?
>
> http://en.wikipedia.org/wiki/Same_origin_policy
>
> In other words:
> 1. deploy the XML on the same server as your GWT app
> 2. use a relative URL (i.e. "/rate.xml" or GWT.getHostPageBaseURL()
> +"rate.xml")

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to