asynchonous class

  • Thread starter Thread starter alf@als
  • Start date Start date
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
 
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.
 
Back
Top