Re: how to get .net to wsdl fully qualified xml ?
- From: Martin Honnen <mahotrash@xxxxxxxx>
- Date: Wed, 30 Jan 2008 18:05:05 +0100
Martin wrote:
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?
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.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
.
- Prev by Date: Re: Serializing an entity. I want a string property to come out as XML
- Next by Date: About xml namespace.
- Previous by thread: Re: Serializing an entity. I want a string property to come out as XML
- Next by thread: About xml namespace.
- Index(es):
Relevant Pages
|