title: Programmatically edit the end point of a web service
body: <p>Is there a way I can programmatically change the <code>&lt;endpoint address="..." /&gt;</code> value of a web service?  In my app.config file, I have the following code:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
     &lt;bindings&gt;
         ...
     &lt;/bindings&gt;
     &lt;client&gt;
       &lt;endpoint address="http://dev.remotedomain.com/WebServices/WebService.asmx"
           binding="basicHttpBinding" bindingConfiguration="InboxServiceSoap"
           contract="InboxServiceSoap"
           name="InboxServiceSoap" /&gt;
     &lt;/client&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>I want to be able to change     </p>
  
  <pre><code>address="http://dev.remotedomain.com/WebServices/WebService.asmx"
  </code></pre>
  
  <p>to </p>
  
  <pre><code>address="http://mymachine/WebServices/WebService.asmx"
  </code></pre>
  
  <p>in code. Is this possible progammatically in .NET?</p>