Walkthrough: Contract Driven Web Service Design - Creating an Endpoint

This walkthrough illustrates key aspects of designing a .NET Web service using Application Designer in Visual Studio Team System Architecture Edition. This walkthrough explains how to create a .NET Web Service provider endpoint from a WSDL file.

This walkthrough builds on concepts presented in the introductory walkthrough topic, Walkthrough: Defining Applications on Application Diagrams and modified in Walkthrough: Designing a Web Service.

Prerequisites

Walkthrough: Designing a Web Service

To create a .NET Web Service endpoint from a WSDL file

  1. Download the LegacyCatalog.WSDL file from https://go.microsoft.com/fwlink/?LinkId=40867 and save it to disk.

  2. Right-click the Catalog application, and click Create .NET Web Service Endpoint from WSDL.

    The Add Web Reference dialog box appears.

  3. Browse your local machine to find the location of LegacyCatalog.wsdl.

  4. Enter this location under URL and click Go.

  5. Click Add Reference.

    The GetLegacyInfo endpoint appears on the Catalog application. This endpoint is based on the selected WSDL contract. The GetLegacyInfo endpoint is automatically implemented because the Catalog application was implemented in Walkthrough: Designing a Web Service.

  6. Right-click the GetLegacyInfo endpoint, and click Define Operations to view the Web Service Details window.

  7. Open the GetLegacyInfo.cs file and view the Web methods in code.

  8. Set the WSDL Binding Location property on the endpoint if you want to use the original WSDL file instead of the generated WSDL file. For more information, see How to: Override WSDL Binding Definitions in WSDL Files.

See Also

Other Resources

Designing Web Services Walkthroughs

Create Web Service Endpoint from WSDL