Configuring Discovery for a DCS Service

To configure discovery for a DCS service, perform the following tasks:

  1. Add the service type to the Discovery database. Define the service type by using the service name and a namespace uniform resource name (URN), which concatenate to form the type name. For example, you define the WeatherService in the ContosoWeatherService namespace as ContosoWeatherService#WeatherService.
  2. Add service instances that correspond to the service type. A service instance defines the service URN and the scopes that apply to the service for Discovery.
  3. Provide URLs for service endpoints that client applications can use to invoke the service. You specify the address that exposes the service operations and a metadata exchange address that the Discovery Service uses to retrieve data about the service.

The following procedures describe these tasks in more detail.

Dd632200.note(en-us,MSDN.10).gifNote:
The DCS service deployment utilities, either manually on the command line or programmatically in Visual Studio, automatically add service instances to the Discovery database of the DCS instance under which they deploy. For more information, see Deploying DCS Services.

To configure discovery for a DCS service

  1. In the DCS Management Services Console, expand DCS Management Services, and then expand Discovery Management.
  2. Right-click Discovery Management, and then click New to define the service type.
  3. In the Edit Service dialog box, provide the Name, Namespace, and Description properties for the service, and then click OK.
  4. Dd632200.note(en-us,MSDN.10).gifNote:
    You cannot modify the service type name or namespace after creation. To modify these properties, you must define a new service type instead.

  5. In the list under Discovery Management in the left pane, click the new service type, right-click the new service type, and then click New to define a service instance.
  6. In the InstanceEditForm dialog box, provide the service URN and an optional description. The URN must match the virtual address of the service .svc file in the Web application that hosts the service.
  7. Select the required scope from the Scopes list. If you want to enable discovery without scopes, select Available for empty scopes, and then click OK.
  8. Dd632200.note(en-us,MSDN.10).gifNote:
    You can define new custom scopes in the Discovery Management database if necessary. For more information, see Defining Scopes.

  9. In the list under Discovery Management in the left pane, expand the new service type, click the new service instance, right-click the new service instance, and then click New to define a service address.
  10. In the Edit Transport dialog box, provide the service and metadata exchange addresses that a client application should use to invoke the service, and then click OK.
Show: