title: WCF Web Service change wsdl name and targetNamespace
body: <p>All,</p>
  
  <p>I'm a little new to WCF over IIS but have done some ASMX web services before. My WCF service is up and running but the helper page generated by the web service for me has the default names, i.e. the page that says:</p>
  
  <p>You have created a service.</p>
  
  <p>To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:</p>
  
  <p>svcutil.exe <a href="http://localhost:53456/ServicesHost.svc?wsdl" rel="noreferrer">http://localhost:53456/ServicesHost.svc?wsdl</a></p>
  
  <p>In a standard ASMX site I would use method/class attributes to give the web service a name and a namespace. When I click on the link the WSDL has:</p>
  
  <pre><code>&lt;wsdl:definitions name="SearchServices" targetNamespace="http://tempuri.org/" 
  </code></pre>
  
  <p>i.e. not the WCF Service Contract Name and Namespace from my Interface. I assume the MEX is using some kind of default settings but I'd like to change them to be the correct names. How can I do this?</p>