title: WCF Service configuration HTTPS with CustomBinding
body: <p>I needed a custombinding on a WCF Service to allow me to pass raw content to WCFRest service. Works great, but I can't get it to accept transport level security. I want https and basicauthentication as I use elsewhere. Endpoint looks like this:</p>
  
  <pre><code>   &lt;endpoint address="" behaviorConfiguration="web" contract="SmsService.ISmsReceive" binding="customBinding" bindingConfiguration="RawReceiveCapable"&gt;&lt;/endpoint&gt;
  </code></pre>
  
  <p>customBinding looks like this:</p>
  
  <pre><code>  &lt;customBinding&gt;
      &lt;binding name="RawReceiveCapable"&gt;
        &lt;security mode="Transport"&gt;
          &lt;transport clientCredentialType="Basic"/&gt;
        &lt;/security&gt;
        &lt;webMessageEncoding webContentTypeMapperType="SmsService.RawContentTypeMapper, SmsService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" /&gt;
        &lt;httpTransport manualAddressing="true" maxReceivedMessageSize="524288000" transferMode="Streamed" /&gt;
      &lt;/binding&gt;
    &lt;/customBinding&gt;
  </code></pre>
  
  <p>but system complains that mode attribute is not allowed in the security node. Without the security node all works great but it's not https.</p>
  
  <p>Thanks</p>
  
  <p>Ray</p>