Instantiating and Invoking Web Services

After you have discovered a Web service and retrieved information about its interface, you can instantiate an object that represents that Web service and then invoke its methods. In this section you'll learn about two methods to integrate Web services in your applications, and you'll learn about testing a Web service as a consumer.

Creating Proxy Classes with the Web Services Description Language Tool (wsdl.exe)

The .NET Framework SDK includes the Web Services Description Language tool, wsdl.exe. This tool can take a WSDL file and generate a corresponding proxy class that you can use to invoke the Web service, as shown in Step-by-Step 4.8.

STEP BY STEP

4.8 Using the Web Services Description Language Tool ...

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.