On Wed, Jun 10, 2009 at 11:15 AM, Dalla<[email protected]> wrote:
> Simply put, you don´t, because the call itself won´t return anything.

That's not actually true.  I've never done what Maddy is suggesting
myself, so, sorry Maddy, I can't directly answer your question except
by suggesting you search the forum history because it has been covered
before.  I do know, though, that you can change the async methods to
return something meaningful and doing so will give the caller control
over the underlying XMLHttpRequest that will be used to make the RPC.
It gives you the opportunity to modify request headers, inspect
response headers, cancel inflight requests, modify timeouts, etc.

The rest of your message was spot on, though--the return value for the
RPC itself _is_ passed as an argument to the AsyncCallback's onSuccess
method.  What Maddy's looking for is a handle on the RPC action
itself, as opposed to the value returned by the RPC.

Ian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to