title: What controls the url used in the soap address location of the WSDL?
body: <p>I am exposing a wcf service over https from iis 6. I have verivied, as best I understand, that the binding is correctly set in iis (yes, positive that the site id is '1', and have done iisreset).</p>
  
  <p>when I run this:</p>
  
  <pre><code>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC&gt;cscript.exe //NoLogo %sys
  temdrive%\inetpub\adminscripts\adsutil.vbs enum W3SVC/1
  </code></pre>
  
  <p>this is in the list:</p>
  
  <pre><code>SecureBindings                  : (LIST) (1 Items)
    ":443:dev.mydomain.com"
  </code></pre>
  
  <p>When I open the url to the service, I can see that it is correctly generating a url to the wsdl:</p>
  
  <p>this:</p>
  
  <pre><code>https://dev.mydomain.com/virtual.directory/servicename.svc
  </code></pre>
  
  <p>specifies this url for svcutil.exe:</p>
  
  <pre><code>https://dev.mydomain.com/virtual.directory/servicename.svc?wsdl
  </code></pre>
  
  <p>However, when I inspect the wsdl itself, it stops using the domain, and replaces it with the machine name in this section of the wsdl xml:</p>
  
  <pre><code>&lt;wsdl:service name="servicename"&gt;
  &lt;wsdl:port name="BasicHttpBinding_servicename" binding="tns:BasicHttpBinding_servicename"&gt;
  &lt;soap:address location="http://machinename.inernaldomain/virtual.directory/servicename.svc"/&gt;
  &lt;/wsdl:port&gt;
  &lt;/wsdl:service&gt;
  </code></pre>
  
  <p>Is my problem a web.config issue, or an IIS issue? Also, why does it change the soap address to http from https?</p>