Consume Soap web Services with ws-security(signature and timestamp) in .Net

259 Views Asked by At

Hi1!

I am consuming a Soap web service, it must include the ws-security header with the signature and timestamp entries. This is my configuration in SoapUI and it works great:

SoapUI COnfig

I need to do the same with C# in .NET 7 or .NET 6, but I don't know how to create the header and specify these same configuration. I have tried several examples(some very old) but I can't get an answer like in SoapUI and i only get this error:

System.ServiceModel.FaultException: 'WSDoAllReceiver: Request does not contain required Security header'

Thank you for any suggestions.

Send the signed request in the same way as in SoapUI

0

There are 0 best solutions below