title: WCF using soap 1.2 generates wsdl with soap 1.1 reference
body: <p>I am creating a WCF service which must have a soap 1.2 endpoint. The service is using the following custom binding:  </p>
  
  <pre><code>    &lt;customBinding&gt;
          &lt;binding name="httpsBinding" openTimeout="00:10:00" closeTimeout="00:10:00" sendTimeout="00:10:00" receiveTimeout="00:10:00"&gt;
            &lt;transactionFlow /&gt;
            &lt;security authenticationMode="UserNameOverTransport" allowInsecureTransport="true" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10" &gt;
              &lt;secureConversationBootstrap allowInsecureTransport="true"&gt;&lt;/secureConversationBootstrap&gt;
            &lt;/security&gt;
            &lt;textMessageEncoding messageVersion="Soap12"&gt;
              &lt;readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"
                  maxBytesPerRead="2147483647"
                  maxNameTableCharCount="2147483647" /&gt;
            &lt;/textMessageEncoding&gt;
            &lt;httpsTransport maxReceivedMessageSize="2147483647"  /&gt;
          &lt;/binding&gt;
        &lt;/customBinding&gt;
  </code></pre>
  
  <p>All right until here, the packages are in the right format (soap 1.2) when debugged via fiddler:</p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"&gt;&lt;s:Header&gt;...
  </code></pre>
  
  <p>But investigating the WSDL generated, the binding seems to be referring the soap 1.1 schema. </p>
  
  <pre><code>&lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http"/&gt;
  </code></pre>
  
  <p>There is no reference for <a href="http://www.w3.org/2003/05/soap-envelope" rel="nofollow">http://www.w3.org/2003/05/soap-envelope</a> on the WSDL. Though it's working, I guess there is something wrong since the WSDL seems not to be describing the service correctly.</p>