we have a java webservice which requires the xml in the soap body to include
the ad: bit
<ad:ArrivalsDeparturesQuery xmlns:ad='http://www......">
but the wsdl generated class in .net produces it with out the ad: part
><ArrivalsDeparturesQuery xmlns="http://www....."><....
How do you tell .net to generate the xml as fully qualified?
Martin Honnen - 30 Jan 2008 17:05 GMT
> we have a java webservice which requires the xml in the soap body to include
> the ad: bit
[quoted text clipped - 5 lines]
>
> How do you tell .net to generate the xml as fully qualified?
Both versions are semantically equivalent, it should not make any
difference whether you use a default namespace declaration or use a prefix.
As for enforcing a certain style, with XmlSerializer you can use an
XmlSerializerNamespaces class to control the prefixes used. Not sure
whether that applies to web service clients as well, you might want to
ask in microsoft.public.dotnet.framework.aspnet.webservices.

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/