To change the addressing headers on the envelope you should the Addressing
property of the envelope's SoapContext property, otherwise the pipeline will
overwrite it when it's processed. So instead of accessing the headers
directly, try something like this:
env.Context.Addressing.Action =
"http://schemas.microsoft.com/wse/2003/06/RequestDescription";
HTH.
Nathan Anderson [MSFT]
> Hi,
> I am trying to create a SOAP Envelop in C# . The output of the SOPA Envelop
[quoted text clipped - 25 lines]
>
> env.Header.InnerXml = String.Format("<wsa:Action
xmlns:wsa='urn:MyReceiver'>http://schemas.microsoft.com/wse/2003/06/RequestD
escription</wsa:Action>");
> return env;
>
[quoted text clipped - 7 lines]
>
> Naveed.