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
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.
That is only the namespace and should not affect the behavior and functionality of the XML.
What is the problem you are having?
As my understanding, the <soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
is the same as <s:Envelope xmlns:s=http://schemas.xmlsoap.org/soap/envelope/
. Because the xmlns:soap and xmlns:s has self explanation.
精彩评论