I have a webservice with a XmlNode parameter (also I tried with XElement) and a XmlNode return type.
The problem is, I pass a parameter without a namespace like this:
<client>
<name>Test</name>
</client>
and the server receive something like this:
<client xmlns="">
<name>Test</name>
</client>
and the return object does the same.
Normally it wouldn't be a problem, but I use a custom checksum to validate the request. Something like pass the MD5 of the xml parameter to another parameter. And when the server declare the namespace, it breaks the MD5.
Now I'm removing the declaration with a replace to make the md5 works. Someone have a better idea? (without workarounds)