0

I need to create a SOAP wrapper of the form

<SOAP-ENV:Envelope xmnls=........><SOAP-ENV:Body></SOAP-ENV:Body></SOAP-ENV:Envelope>

My C# code to do this is as follows

XmlElement soapEnvelope = document.CreateElement("SOAPENV", "Envelope", "http://schemas.xmlsoap.org/soap/envelope");
XmlElement soapBody = document.CreateElement("SOAPENV", "Body", "http://schemas.xmlsoap.org/soap/envelope");

This works fine for the Envelope part but then adds a spurious xmnls attribute to the Body part. How do I stop this from happening?

Many thanks.

2
Contributors
1
Reply
3
Views
7 Years
Discussion Span
Last Post by __avd
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.