Review of Web Service Consumption

This next section will provide you with a quick review of consuming web services. In the samples that follow, the code consumes the service created earlier using both synchronous and asynchronous method calls. Much of this information can be seen in the section of this book that discusses Windows Forms and how to consume web services from a Windows Forms application.

Creating a Client Proxy for a Web Service

The first step toward consuming a web service is the creation of a client proxy. You can either let Visual Studio .NET 2003 create the proxy for you by adding a web reference or you can use the WSDL.EXE command-line tool to create the proxy class.

Whether you use Visual Studio or the command-line to create ...

Get Microsoft® Visual C#® .NET 2003 Unleashed 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.