Consuming a Web Service in .NET

In order for a .NET program to communicate with a Web Service, the Web Services Description Language (WSDL) file must first be consumed. The consumption process reads the WSDL file and creates all the necessary classes and code to be used in the development of a program within .NET.

In .NET, perform the following steps:

  1. Select Add Web Reference from the Project menu.

    The Add Web Reference screen appears.

  2. Enter the location of the WSDL file.

  3. You can also enter the URL for the WSDL creation utility. You must enable the ActiveX controls in your browser in order to do this.

  4. Once the WSDL file appears, click the Add Reference button.


WebFOCUS