Re: how to get .net to wsdl fully qualified xml ?

Tech-Archive recommends: Speed Up your PC by fixing your registry



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/
.



Relevant Pages

  • Re: Force the prefix of the document element
    ... not have a prefix and i want it to have one at the end. ... represents this XSD, i can set the prefix of the namespace, but i cannot make ... "Martin Honnen" wrote: ... it does not persist in the XmlDoc so when i save the XmlDoc ...
    (microsoft.public.dotnet.xml)
  • Re: templates and xpath expr with predicate and first and last functions
    ... element has two y child elements as well as an x child element. ... You simply need to use xsl:apply-templates to filter out nodes first e.g. ... Martin Honnen --- MVP XML ...
    (microsoft.public.dotnet.xml)
  • Re: Traverse Child Nodes
    ... Thanks Martin, I also appreciate your help as well. ... I finally found and used the child nodes to get the elements, and then I iterated through them. ... and apply them on the record element nodes you have. ... Martin Honnen --- MVP XML ...
    (microsoft.public.dotnet.xml)
  • Re: templates and xpath expr with predicate and first and last functions
    ... The template does not change the type and size of the current node list. ... You simply need to use xsl:apply-templates to filter out nodes first e.g. ... Martin Honnen --- MVP XML ...
    (microsoft.public.dotnet.xml)
  • Re: Datei mit altem DOS Zeichensatz lesen
    ... ausprobieren. ... Martin Honnen --- MVP XML ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)