title: WCF - auto generated WSDL not working
body: <p>I have a WCF service MyService.svc, hosted in IIS 7. The service is configured like this:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
    &lt;services&gt;
        &lt;service name="MyService"&gt;
            &lt;endpoint address="" binding="basicHttpBinding" contract="MyPortType"&gt;&lt;/endpoint&gt;
        &lt;/service&gt;
    &lt;/services&gt;
    &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
            &lt;behavior name="defaultBehaviour"&gt;
                &lt;serviceMetadata httpGetEnabled="true"  /&gt;
                &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
            &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
    &lt;/behaviors&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>The problem is, that my service do not offer autogenerated WSDL (adding ?wsdl to the URL of service), despite the fact that I included tag</p>
  
  <pre><code> &lt;serviceMetadata httpGetEnabled="true"  /&gt;
  </code></pre>
  
  <p>The service itself is working, if I try to call it via SoapUI. When I try to access WSDL, i get HTTP Error 400 and no WSDL in response.</p>
  
  <p>It is important to note that I'm using .NET 3.5 and Visual studio 2008 for legacy reasons (it is an old app). Data Contract is generated via command line using svcutil.exe from VS2008. When I tried same service and same configuration under VS 2013/.NET 4.5 (regenerad data contract classes with svcutil.exe from VS2013), autogenerated WSDL appears with no problem.</p>
  
  <p>What can I do do get autogenerated WSDL working under .NET 3.5/VS2008?</p>
  
  <p>Thank you,
  Michal</p>