Search code examples
.netwcfsoap

How can I change <s:Envelope to <SOAP-ENV:Envelope if I use wcf?


I have a problem with wcf and the soap xml response of my service. How can I change <s:Envelope to <SOAP-ENV:Envelope? I guess that must be controllable with a property?

I use .NET 4.0, c#, basicHttpBinding and messagecontracts


Solution

  • Why do you need this? By XML definition it has absolutely same meaning and I'm affraid it is not possible unless you create your own message encoder.

    Edit: Here is a blog post describing how to replace prefix in custom encoding.