Consuming secured WCF service through basicHTTPbinding

Posted by Jason M on Stack Overflow See other posts from Stack Overflow or by Jason M
Published on 2010-02-26T18:18:23Z Indexed on 2010/03/23 21:53 UTC
Read the original article Hit count: 493

I am consuming an secured service hosted over basicHttpBinding I have to pass credentials to the service for authenticatioon

Here’s the config setting for the client

<security mode="TransportWithMessageCredential">
        <transport clientCredentialType="None" proxyCredentialType="None"
          realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>

While calling the service, I am getting following exception message

An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. Message = "An invalid security token was provided (Bad UsernameToken Values)”

I not sure how to get it working I am curious if somebody can help me out or provide me any url where I could find the solution

© Stack Overflow or respective owner

Related posts about wcfservice

Related posts about c#3.0