Calling Web Services Asynchronously
I had the opportunity to give a talk on Asynchronous Web Services in .NET V2 last night to the Orange County, California VB.NET and C# Users Group. Thanks to everyone that attended and to Mike Vincent for inviting me. I had a lot of fun and met a lot of great people.
For those interested in the different options available for calling Web Services asynchronously, the code and slides from the presentation can be downloaded at the following URL:
http://www.xmlforasp.net/codebank/download/blog/asynchronouswebservices.zip
The main topics covered in the code/slides are listed below:
- Synchronous Vs. Asynchronous Web Service calls (visuals as well as pros and cons)
- Using IAsyncResult and AsyncCallback to perform callbacks
- Using IAsyncResult and the WaitHandle class to wait for one or all Web Services to return
- Using IAsyncResult to perform polling on asynchronous Web Service calls
- The role of the Async="true" attribute in ASP.NET Web Forms and its affect on the ASP.NET thread pool
- Making asynchronous calls using .NET V2 Web Service event driven classes (my personal favorite)
- Using the PageAsyncTask class to make asynchronous calls (good for more than just Web Services)
Over the next few weeks I'll be blogging about each of these options and breaking them down some so stay tuned.