By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,201 Members | 922 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,201 IT Pros & Developers. It's quick & easy.

return xml from asynchronous web service to calling page?

P: n/a
If I'm making several asynchronous web service calls using the services
Begin/End methods. How do you return the results of the webservice back to
the main thread or calling page?

Here's my code, I get the XML in the callback but not sure how to return it
since the BeginXXX expects a IAsynchResult?

IAsyncResult ar = <proxy>.BeginXXXX(params, new
AsyncCallback(SomeAsynchCallback), <proxy>);

private static void SomeAsynchCallback(IAsyncResult ar)
// Finalize the asynchronous call
XmlNode node = ((proxy class) ar.AsyncState).EndXXXX(ar);
Nov 23 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.