Partager via


Add Service Reference Dialog Box

The Add Service Reference dialog box enables you to add references to Windows Communication Foundation (WCF) services and WCF Data Services.

If you know the address where the service is hosted, enter the URL in the Address field and then click Go to return a list of available services.

Note

You should only reference services from a trusted source. Adding references from an untrusted source may compromise security.

To add a reference to a service that is contained in your solution, click Discover.

  • Address
    Enter the Web address where a service is hosted.

  • Go
    Initiates a search for services at the specified Address.

  • Discover
    Initiates a search for services that are contained in the current solution.

    Note

    Additional options for the Discover list may be available if they are enabled by add-ins.

  • Services
    Displays an expandable list of services that are found at the selected Web address or in the solution. Each service might contain multiple service contracts and/or endpoints.

  • Operations
    Displays a list of operations that are available for each service contract.

  • Namespace
    Contains the default namespace for the service. You can accept the default or change the namespace for your solution.

  • Advanced
    Displays the Configure Service Reference Dialog Box.

See Also

Tasks

How to: Add, Update, or Remove a Service Reference

How to: Add a Reference to a Web Service

How to: Add, Update, or Remove a WCF Data Service Reference

Reference

Configure Service Reference Dialog Box

Concepts

Windows Communication Foundation Services and WCF Data Services in Visual Studio

Other Resources

Consuming ASMX and WCF Services Sample