views:

325

answers:

4

We have a set of WCF services hosted in IIS and secured with wsHttpBinding and exposed on Internet. When I am trying to consume those services from a client I am getting an error "Request for the security token has invalid or malformed elements."

I am using

    <security mode="Message">
          <message clientCredentialType="None" negotiateServiceCredential="true"
              algorithmSuite="Default" establishSecurityContext="true" />
     </security>

Any help on this would be appreciated

A: 

Try changing the security mode to none.

Alternativily, over the internet basichttpbinding over ssl with basic authenication works well.

Shiraz Bhaiji
A: 

thanks shiraz for response, with security mode = None it work fine but my requirement is to use wshttpbinding.

But resetting the security mode to none still uses WSHttp - it just doesn't have any authentication. What are your *real* requirements? Why do you want to use WsHttp?
blowdart
A: 

dear blowdart, need x509 Certificate implementaton for the message security

A: 

Thanks everyone ,,,i solved the issue, some time later i will share how did i solve it...

Please do come back and share.
John Saunders