How to sign a SOAP request with WCF

前端 未结 3 1517
一生所求
一生所求 2021-01-03 02:34

I have an 3rd party SOAP web service. I need to make a call to one of its methods. The request needs to be signed. How can I sign the request?

3条回答
  •  不知归路
    2021-01-03 03:20

    The following is a question that was asked about using WCF to use the Amazon SOAP service which requires signing. I think the answer gives a great example, which might help with your situation.

    How to sign an Amazon web service request in .NET with SOAP and without WSE

    Edit: There was evidently some confusion about the link to this other StackOverflow question. I would like to point out the highest voted chosen answer. It is most definitely a WCF solution. You will notice the class SigningMessageInspector which inherits from IClientMessageInspector (a WCF interface). I think this section might help you.

提交回复
热议问题