tags:

views:

35

answers:

1

When I deploy the same service on different machines as they have different information that I need , how can I use my client gracely to consume these service .

+1  A: 

You need to define the service endpoint you want to connect to in your client's config.

You cannot define a list of endpoints - if you need load-balancing features, you need to implement those on the server side and "hide" them behind a single service endpoint.

With .NET 4 and WCF 4, you have new capabilities you could check out:

  • WCF 4 has a new routing service which you can use to get called on a single URL, and you have control over how to "distribute" those calls to the actual back-end servers

  • WCF 4 also supports dynamic service discovery, so you could potentially just "yell out onto the network" and get back one service endpoint address that supports your contract you're interested in

Resources:

marc_s