none
Connecting multiple servers

    Question

  • Hello,

    My WCF server runs on several PCs. A client must connect all these servers and dispatch every function call to one of them. Is it possible to put such a configuration in client's app.config? I tried to duplicate the endpoint entry (with another IP), but this of course doesn't work:

              <endpoint address="http://192.168.2.120:8731/Design_Time_Addresses/MyServer/Configure/"
                  binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IConfigure"
                  contract="MyServerConfigRef.IConfigure" name="WSHttpBinding_IConfigure">
                  <identity>
                      <dns value="localhost" />
                  </identity>
              </endpoint>

    I'd appreciate any idea.

    Tuesday, June 29, 2010 11:42 AM

Answers

  • Hello,

    if you have same service with same configuration on multiple PC, you can use same endpoint configuration for each of them. You will have to change the address, name and identity in each of those endpoints. Than you will have to create proxy for each endpoint - generated client class (svcutil, add service reference) allows to pass name of the endpoint to distinguish the configuration of the proxy.

    Best regards,
    Ladislav

    Tuesday, June 29, 2010 12:31 PM