implementing Ws-security within WCF proxy

前端 未结 2 1187
清酒与你
清酒与你 2021-02-06 15:59

I have imported an axis based wsdl into a VS 2008 project as a service reference.

I need to be able to pass security details such as username/password and nonce values t

2条回答
  •  伪装坚强ぢ
    2021-02-06 16:56

    The WCF client proxy doesn't support the password digest option. The only way to do this is to build the UsernameToken yourself and then inject it into the SOAP headers before the message is sent.

    I had a similar problem which is described here, which should be enough to help you solve your same issue.

    I ended up using the old WSE3.0 library for the UsernameToken, rather than coding the hashing algorithm myself and then using a custom behavior to alter the SOAP headers.

提交回复
热议问题