title: Determine wsHttpBinding at runtime with WCF
body: <p>I have a web application that exposes web services using WCF and wsHttpBindings. It is possible to have the application on different machines and different urls. This would mean the WCF service location would be different for each.</p>
  
  <p>I am building a Windows Service that will reference each application and perform a task. Each task needs to call a service on the web application. I understand that the bindings are all setup in the app.config, but is there a simpler way to call the service dynamically, or how would I structure the app.config?</p>
  
  <pre><code>&lt;webApplication WebServiceUrl="http://location1.com/LunarChartRestService.svc" /&gt;
  &lt;webApplication WebServiceUrl="http://location2.com/LunarChartRestService.svc"/&gt;
  </code></pre>