title: How to set more than one fallback endpoints in WCF
body: <p>How to set fall-back endpoint. I'm having more than one endpoint specified in the conifg file like follows. If the service was not accessible, then my client should check the next address specified in the list.</p>
  
  <p><strong>Client Configuration File:</strong></p>
  
  <pre><code>&lt;client&gt;
    &lt;endpoint address="http://192.168.1.4/SampleAppWeb/Services/SampleAppService.svc"
          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISampleAppService"
          contract="SampleAppServiceReference.ISampleAppService" name="BasicHttpBinding_ISampleAppService" /&gt;
    &lt;endpoint address="http://172.168.12.121/SampleAppWeb/Services/SampleAppService.svc"
          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISampleAppService"
          contract="SampleAppServiceReference.ISampleAppService" name="BasicHttpBinding_ISampleAppService1" /&gt;
    &lt;endpoint address="http://127.0.0.1/Services/SampleAppWeb/SampleAppService.svc"
          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISampleAppService"
          contract="SampleAppServiceReference.ISampleAppService" name="BasicHttpBinding_ISampleAppService2" /&gt;
    &lt;endpoint address="http://172.168.111.115/Services/SampleAppWeb/SampleAppService.svc"
          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISampleAppService"
          contract="SampleAppServiceReference.ISampleAppService" name="BasicHttpBinding_ISampleAppService3" /&gt;          
  &lt;/client&gt;
  </code></pre>
  
  <p><strong>Code Behind:</strong></p>
  
  <pre><code>var pass = new SampleAppServiceReference.SampleAppServiceClient("BasicHttpBinding_ISampleAppService3");
  </code></pre>