Re: JsonpRequestBuilder Timeout - GWT 2.0

2010-07-01 Thread eggsy84
Yeah you need to make sure you wrap your response with the callback
parameter that the JsonpRequestBuilder makes use of.

If you look at the response you receive from the Yahoo! Web service
you see that it is wrapped in a callback parameter you need to make
sure you code does that as well.

Eggsy

On Jun 30, 7:10 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 30 juin, 16:11, Márcio Menezes marcio@gmail.com wrote:

  Hello!
  I'm trying to retrieve Json using JsonpRequestBuilder.
  When I use some external url, like this 
  onehttp://search.yahooapis.com/ImageSearchService/V1/imageSearch?appid=Y...,
  everything works fine.
  But, when I try to fetch json from some server inside my network, I get
  timeout error (Timeout while callinghttp://192.168.2.12/gwt.js).

  When I check the request on firebug, I can see that the response came back
  and its body is exactly what I was suppose to receive. Somehow, it is not
  being handled by the callback function.

  If I try the same URL through browser, it works fine.

  Does anyone know what it can be?

 Are you returning JSON-*P* (i.e. a JavaScript file containing a single
 function call with an object or array literal as sole argument)?
 Is the function call using the function name given in the URL (in the
 query-string, name of the parameter configurable in your
 JsonpRequestBuilder)?

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



JsonpRequestBuilder Timeout - GWT 2.0

2010-06-30 Thread Márcio Menezes
Hello!
I'm trying to retrieve Json using JsonpRequestBuilder.
When I use some external url, like this one
http://search.yahooapis.com/ImageSearchService/V1/imageSearch?appid=YahooDemoquery=Madonnaoutput=json,
everything works fine.
But, when I try to fetch json from some server inside my network, I get
timeout error (Timeout while calling http://192.168.2.12/gwt.js).

When I check the request on firebug, I can see that the response came back
and its body is exactly what I was suppose to receive. Somehow, it is not
being handled by the callback function.

If I try the same URL through browser, it works fine.

Does anyone know what it can be?

Marcio

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



Re: JsonpRequestBuilder Timeout - GWT 2.0

2010-06-30 Thread Thomas Broyer

On 30 juin, 16:11, Márcio Menezes marcio@gmail.com wrote:
 Hello!
 I'm trying to retrieve Json using JsonpRequestBuilder.
 When I use some external url, like this 
 onehttp://search.yahooapis.com/ImageSearchService/V1/imageSearch?appid=Y...,
 everything works fine.
 But, when I try to fetch json from some server inside my network, I get
 timeout error (Timeout while callinghttp://192.168.2.12/gwt.js).

 When I check the request on firebug, I can see that the response came back
 and its body is exactly what I was suppose to receive. Somehow, it is not
 being handled by the callback function.

 If I try the same URL through browser, it works fine.

 Does anyone know what it can be?

Are you returning JSON-*P* (i.e. a JavaScript file containing a single
function call with an object or array literal as sole argument)?
Is the function call using the function name given in the URL (in the
query-string, name of the parameter configurable in your
JsonpRequestBuilder)?

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