Web service request authentication

后端 未结 3 757
一向
一向 2021-01-15 06:19

We\'re being really stuck here so I decided to ask your help.

Yesterday I\'ve been asked to help to consume a web service, got the URL to the WSDL, and the user cred

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-15 07:00

    I had the same problem. Instead of the custom token serializer I used a MessageInspector to add the correct UsernameToken in the BeforeSendRequest method. I then used a custom behavior to apply the fix.

    The entire process is documented (with a demo project) in my blog post Supporting the WS-I Basic Profile Password Digest in a WCF client proxy. Alternatively, you can just read the PDF.

    If you want to follow my progress through to the solution, you'll find it on StackOverflow titled, "Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme":

提交回复
热议问题