Search code examples
c#.netwcfsoap-clientconnected-services

Signing a Soap Message, but can't reference the Body with a u-id attribute


I'm using a generated Connected Service ( Soap) to generate the signature.

The server only expects the message to be signed on the body. So I need to provide reference with an Id of the Body.

There doesn't seem to be a way to change the <s:body> xml element. Using an endpointbehavior and replacing the Message using Message.CreateMessage appends the newly created <s:body ( with an id) to the original <s:body>.

How should I do this, if it's not supported by an EndPointBehavior.

  • Tried using EndpointBehavior
  • Tried fine-tuning WsHttpBinding and BasicHttpBinding
  • This doesn't seem to work, perhaps too little details?

Solution

  • I'm not using the original flow of a connected service anymore. I just send the request now and sign the body "manually".