Unable to use basic authentication to access WCF web service
I am trying to configure a WCF service to allow for both Windows/NTLM and Basic Authentication. Unfortunately, given this configuration only Windows/NTLM works and basic authentication fails with an [http status code of 401 Unauthorized][1].

Our IIS 7.5 server is configured to allow for both of these types of authentication.
![enter image description here][2]

What is wrong with the below configuration that is preventing basic authentication from working?

    <wsHttpBinding>
      <binding name="webBinding">
        <security mode="Transport">
          <transport clientCredentialType="Windows" />
          <transport clientCredentialType="Basic" realm="XXX.YYY.com" />
        </security>
      </binding>
    </wsHttpBinding>

I have also tried using `basicHttpBinding`, as a forum post indicated that [`wsHttpBinding` might prevent basic authentication][3] if WCF felt the password was being passed in clear text.


  [1]: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#401
  [2]: http://i.stack.imgur.com/tFzBp.jpg
  [3]: http://stackoverflow.com/questions/877322/is-it-possible-to-get-through-a-basic-authentication-proxy-using-wshttpbinding/878720#878720
Unable to use basic authentication to access WCF web service
===

I am trying to configure a WCF service to allow for both Windows/NTLM and Basic Authentication. Unfortunately, given this configuration only Windows/NTLM works and basic authentication fails with an [http status code of 401 Unauthorized][1].

Our IIS 7.5 server is configured to allow for both of these types of authentication.
![enter image description here][2]

What is wrong with the below configuration that is preventing basic authentication from working?

    <wsHttpBinding>
      <binding name="webBinding">
        <security mode="Transport">
          <transport clientCredentialType="Windows" />
          <transport clientCredentialType="Basic" realm="XXX.YYY.com" />
        </security>
      </binding>
    </wsHttpBinding>

I have also tried using `basicHttpBinding`, as a forum post indicated that [`wsHttpBinding` might prevent basic authentication][3] if WCF felt the password was being passed in clear text.


  [1]: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#401
  [2]: http://i.stack.imgur.com/tFzBp.jpg
  [3]: http://stackoverflow.com/questions/877322/is-it-possible-to-get-through-a-basic-authentication-proxy-using-wshttpbinding/878720#878720