title: WCF WSDL has xsd:import statements in one environment, but not the other
body: <p>In our INT and QA environments, the WSDL for a simple WCF service looks like this:</p>
  
  <pre><code>&lt;wsdl:types&gt;
    &lt;xsd:schema targetNamespace="http://blahService/Imports"&gt;
      &lt;xsd:import schemaLocation="http://server:80/blahService/blahService.svc?xsd=xsd2" namespace="http://genericHeader"/&gt;
      &lt;xsd:import schemaLocation="http://server:80/blahService/blahService.svc?xsd=xsd3" namespace="http://blahServiceNamespace"/&gt;
    &lt;/xsd:schema&gt;
  &lt;/wsdl:types&gt;
  </code></pre>
  
  <p>But in prod, it looks like this:</p>
  
  <pre><code>&lt;wsdl:types&gt;
    &lt;xsd:schema targetNamespace="http://blahService/Imports" /&gt;
  &lt;/wsdl:types&gt;
  </code></pre>
  
  <p>I have read a lot of posts about flattening the WCF-generated WSDL to include the xsds directly in the WSDL, and even more posts about how to make the schemaLocation point to a specific URL instead of whatever URL the request comes from, but what I want to know is... why is the WSDL different in the two different environments, and how how do we fix it?</p>