title: how to replace Machine Name with Domain name in WCF Service wsdl link
body: <p>wasnt sure quite what to name the question but the problem is as follows:</p>
  
  <p>I am deploying a WCF service on IIS 6 which is to be consumed by an external source.
  the box that it is on is externally hosted but has a DC so is effectively on my network ('<strong>mydomain</strong>'), internally it's called '<strong>prod</strong>' say.
  the service need to run over SSL so we got an SSL cert for the domain the service will respond to: service.oursite.com lets say</p>
  
  <p>DNS has all filtered through and I can indeed hit the service on 
  <a href="https://service.oursite.com/service.svc" rel="nofollow">https://service.oursite.com/service.svc</a>
  and it kicks out the little svcutil link .
  the problem is that the address that the link points to is not 
  <a href="https://service.oursite.com/service.svc?wsdl" rel="nofollow">https://service.oursite.com/service.svc?wsdl</a> as I would hope</p>
  
  <p>it is instead</p>
  
  <p><a href="https://prod.mydomain.com/service.svc?wsdl" rel="nofollow">https://prod.mydomain.com/service.svc?wsdl</a>
  so of course the SSL bails as the cert is not for that 
  and if i click through to the wsdl all the schemaLocation links are wrong, again pointing to the internal rather than external name</p>
  
  <p><strong>question is:</strong>
  why is it doing that?
  and 
  how do i stop it doing that?</p>
  
  <p>is it a matter of adding something in the config? (please say yes :))</p>
  
  <p>any help as ever most gratefully received</p>
  
  <p>if it helps here is the config</p>
  
  <pre><code>&lt;services&gt;
    &lt;service name="CBBookingService.CBBookingService" behaviorConfiguration="CBBookingService.CBBookingServiceBehavior"&gt;
      &lt;endpoint address="" binding="basicHttpBinding" bindingConfiguration="TransportSecurity" contract="CBBookingService.ICBBookingService" /&gt;
      &lt;endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  &lt;bindings&gt;
    &lt;basicHttpBinding&gt;
      &lt;binding name="BasicSecurity" maxReceivedMessageSize="2147483647"&gt;
        &lt;security mode="None" /&gt;
      &lt;/binding&gt;
      &lt;binding name="TransportSecurity" maxReceivedMessageSize="2147483647"&gt;
        &lt;!--https--&gt;
        &lt;security mode="Transport"&gt;
          &lt;transport clientCredentialType="None" /&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name="CBBookingService.CBBookingServiceBehavior"&gt;
        &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
        &lt;dataContractSerializer maxItemsInObjectGraph="2147483647" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  </code></pre>