Visual Studio Programmer's Guide for the .NET Framework
Add Service Reference Dialog Box

The Add Service Reference dialog box enables you to add references to Windows Communication Foundation (WCF) services and ADO.NET 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.

Bb386382.alert_note(en-us,VS.90).gifNote:

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.

Bb386382.alert_note(en-us,VS.90).gifNote:

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

Reference

Other Resources

Tags :


Community Content

G1
Add Service Reference - Discover
"Discover" will not find services defined by code (as in new ServiceHost(typeof(), baseAddress). In particular, it will also not discover services located in project output...at least not if they are .exe.
Tags :

Page view tracker