asynchonous class

A

alf@als

Hi all

I have a webservice asyncronous into a class

how can call a webservices of this class and like this method asyncronous how can i know when complete call and how can pass result to my form.

thanks
 
S

Simon Hart

When creating a web service reference or using wsdl.exe, a proxy class is
created that automatically provides async support for you. You need to call
the Begin<memberName> and End<memberName> where <memberName> is the name of
your method/property.

When calling Begin pass over an System.ASyncCallback reference which should
point to a callback which should handle the response.

This Begin method should return a System.IAsyncResult object which needs to
be stored as it will be passed when calling End.

When the callback method is called, you need to call the End portion of you
method passing it the IAsyncResult as returned from the Begin method.

Try searching MSDN for more information there must be hundreds of articles
on this subject.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top