title: WCF Service - Mixed security bindings?
body: <p>I currently have the following bindings on a WCF service:</p>
  
  <blockquote>
  <pre><code>  &lt;basicHttpBinding&gt;
      &lt;binding name="BasicHttpEndpointBinding"&gt;
        &lt;security mode="TransportCredentialOnly"&gt;
          &lt;transport clientCredentialType="Ntlm" /&gt;
          &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/basicHttpBinding&gt;
  </code></pre>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
  <pre><code>  &lt;webHttpBinding&gt;
      &lt;binding name="WebHttpEndpointBinding"&gt;
        &lt;security mode="None" /&gt;
      &lt;/binding&gt;
    &lt;/webHttpBinding&gt;
  </code></pre>
  </blockquote>
  
  <p>With the corresponding endpoints: </p>
  
  <blockquote>
  <pre><code>    &lt;endpoint address=""
                binding="basicHttpBinding"
                bindingConfiguration="BasicHttpEndpointBinding"
                bindingNamespace="http://services.company.net/MyWcfService"
                contract="MyWcfService.Interface.IMyWcfService"&gt;
      &lt;/endpoint&gt;
      &lt;endpoint address="RestService"
                behaviorConfiguration="restServiceBehavior"
                binding="webHttpBinding"
                bindingConfiguration="WebHttpEndpointBinding"
                contract="MyWcfService.Interface.IMyWcfService" /&gt;
    &lt;/service&gt;
  </code></pre>
  </blockquote>
  
  <p>The idea is to have clients invoking the 'BasicHttpEndpointBinding' binding to require NTLM authentication, and the clients that are invoking the 'WebHttpEndpointBinding' to be able to do so anonymously (RESTful calls via jQuery).</p>
  
  <p>While this seems to work on my machine, does this seem possible in an IIS 7.5 hosted environment?</p>
  
  <p>Thanks.</p>