Apply Your Knowledge
Exercises
4.1. Calling a Web Service Asynchronously
Depending on the speed of your Internet connection, you may have noticed that the Web service client applications you constructed earlier in this chapter “freeze” when you invoke the Web service. By default these applications use synchronous methods to communicate with the Web service, waiting for the SOAP response before allowing any other code to execute. But the proxy classes constructed by .NET include asynchronous methods as well. In this exercise, you'll learn how to call a Web service asynchronously.
Estimated Time: 30 minutes.
1. | Create a Visual C# .NET Windows Application in the Visual Studio .NET IDE. |
2. | Right-click the References folder in Solution Explorer and ... |
Get MCAD/MCSD Training Guide (70-320): Developing XML Web Services and Server Components with Visual C#™ .NET and the Microsoft .NET Framework now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.