Is it possible to configure a .NET 2.0 ASMX Web service to accept namespace
qualified messages?
For instance, instead of:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<HelloRequest xmlns="http://foo/services/Test/HelloService">
<message>Wave</ns0:message>
<x>0</x>
<y>0</y>
<flag>none</flag>
</HelloRequest>
</soap:Body>
</soap:Envelope>
can an ASMX 2.0 Web service support:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns0="http://foo/services/Test/HelloService">
<soap:Body>
<ns0:HelloRequest>
<ns0:message>Wave</ns0:message>
<ns0:x>0</ns0:x>
<ns0:y>0</ns0:y>
<ns0:flag>none</ns0:flag>
</ns0:HelloRequest>
</soap:Body>
</soap:Envelope>
I know this is possible when working directly with the XmlSerializer, but
something isn't working in the Web service definition. I've even tried using
XmlElementAttribute(Form = XmlSchemaForm.Qualified) but that doesn't seem to
take.
I guess I could build an extension that performs the
serialization/deserialization instead of the default built-in code.
Thank you in advance,
Joel