Share via


How to: Add Endpoints to Applications

In Application Designer, you can represent services that an application provides or consumes by adding endpoints. You can add new endpoints or copy existing ones. You can add provider and consumer endpoints, depending on the application type and the endpoint type. On ASP.NET applications, you can create .NET Web Service provider endpoints by specifying a WSDL or .disco file. For more information, see Overview of Endpoints on Applications and Web Service Endpoints Based on WSDL Files.

Note

WSDL files that contain multiple SOAP bindings or .disco files that reference multiple Web services are not supported. WSDL files that have types containing sequences returned from operations are also not supported. As a best practice, change the binding namespace from its default value ("http://tempuri.org") on Web service endpoints.

You can add consumer endpoints only by connecting applications to provider endpoints or by copying them. Connecting an application and a provider endpoint creates the appropriate consumer endpoint on the consumer application. For more information, see How to: Connect Applications on Application Diagrams.

To add a provider endpoint to an application

  1. Select an application to which you can add a provider endpoint.

  2. On the Diagram menu, point to Add, and choose an endpoint prototype.

    The endpoint prototype you selected appears on the application.

    Tip

    You can also drag provider endpoint prototypes from the Toolbox.

Depending on the endpoint type, you can rename endpoints. For more information, see How to: Rename Endpoints on Applications. You can also define services for endpoints, or define communication pathways by connecting applications through endpoints. For more information, see Overview of Application Designer.

To create a .NET Web Service provider endpoint from a WSDL or .disco file

  1. Select an ASP.NET application on the diagram.

  2. On the Diagram menu, point to Implementation, and choose Create .NET Web Service Endpoint from WSDL.

  3. In the Add Web Reference dialog box, follow the procedure in How to: Locate WSDL Files for Web Services.

    Tip

    You can also right-click the application to choose Create .NET Web Service Endpoint from WSDL.

    A .NET Web Service provider endpoint appears on the application shape. If the ASP.NET application is implemented, the appropriate Web service files are added to the application's project in Solution Explorer. For more information, see Overview of ASP.NET Applications on Application Diagrams.

    Note

    The endpoint name is the name of the Web service referenced by the WSDL or .disco file. The Web Service Details window displays operation signatures referenced by the WSDL or .disco file. For more information, see How to: Edit Operations for ASP.NET Web Services.

See Also

Tasks

How to: Delete Endpoints from Applications

Other Resources

Defining Endpoints on Applications