I have web service method that returns XML similar to what is shown below.
The actual return value from the web service method is an XmlDocument:

<?xml version="1.0" encoding="utf-8" ?>
<RESPONSE>
<STATUS Code="Completed">
</RESPONSE>

If using SOAP, I notice that when I examine the actual content that is
returned on the client, the XML declaration is removed and it will actually
add a xmlns attribute to the root element resulting in what follows:

<RESPONSE xmlns="">
<STATUS Code="Completed">
</RESPONSE>

Yet, if I use HTTP POST the response is exactly as it should be. If so, why
would it be different for POST instead of SOAP?

Why would this be happening? Is this something that the XmlSerializer is
doing?


--
Message posted via [url]http://www.dotnetmonster.com[/url]