title: WCF: Do I Need to replace "http://tempuri.org/" with a dynamic namespace?
body: <p>I have a web service that will be deployed to multiple domains. I would like to get rid of the WCF default namespace of "<a href="http://tempuri.org/" rel="nofollow noreferrer">http://tempuri.org/</a>," and replace it with the domain on which the web service is deployed, such as "<a href="http://mydomain.com/" rel="nofollow noreferrer">http://mydomain.com/</a>." I know the best solution here is simply to have the web service exist in one place, and use that one domain as the namespace, but that is not an option for me at the moment.</p>
  
  <p>I found a partial answer to this question <a href="https://stackoverflow.com/questions/38789/web-service-namespace-dynamic-naming">here</a>. In this post, the suggested answer is to set a URL property in the config file, but I am afraid I don't quite understand the answer. Where is this URL property, exactly? Also, for reasons beyond my control, the client app that will be consuming this web service does not have an app.config file, so all configs in that client app will have to be set in code. I am not sure if that matters, but figured I would mention it, just in case. </p>
  
  <p>EDIT: To clarify, the reference to "<a href="http://tempuri.org" rel="nofollow noreferrer">http://tempuri.org</a>" that I am trying to remove is inside the .cs file that is generated by svcutil.exe.</p>
  
  <p>e.g.</p>
  
  <pre><code>[System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IEmailService/SendEmail", ReplyAction = "http://tempuri.org/IEmailService/SendEmailResponse")]
  void SendEmail(Services.Internal.CorrespondenceWebService.Email email);
  </code></pre>