Re: WSDL ElementForm Unqualified

From: Dilip Krishnan (dkrishnan_at_NOSPAM.geniant.com)
Date: 03/02/05


Date: Wed, 02 Mar 2005 09:42:19 -0800

Hello Simon,
   No there is not. Also, its probably not the right thing to do however
to have it set to unqualified... That seems to deviate from the design principle
that wsdl is a contract and clients need to adhere to it. What that essentially
means is you're letting clients send any xml that 'looks' like what the server
expects and the service is having to deal with the various clients.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

> Hi -
>
> I have a webservice with WSDL specifying 'elementFormDefault' set to
> 'unqualified'. I find when I try to process the incoming XML the raw
> XML either looks like this:
>
> <s0:rootelement xmlns:s0="myns">
> <ChildElement></ChildElement>
> </s0:rootelement >
> or like this:
>
> <rootelement xmlns="http://tempuri.org/">
> <ChildElement></ChildElement>
> </rootelement >
> So far the only way I can deal with it which works consistently is
> like this:
>
> XmlNode node = nodeInput.SelectSingleNode("/element");
> if (node == null) {
> XmlNamespaceManager mgr = new XmlNamespaceManager(node
> .OwnerDocument.NameTable);
> mgr.AddNamespace("ns", "myns");
> node = nodeInput.SelectSingleNode("/ns:element", mgr);
> }
> which seems wrong. Is there a way of reading the nodes from an XPath
> which doesn't require the 'if'?
>
> Thanks,
>
> Simon
>



Relevant Pages

  • Re: Lessen und Schreiben sehr =?iso-8859-1?Q?gro=DFer?= XML-Dateien
    ... >> das gibt es schon und nennt sich Datenbank. ... Warum überhaupt xml (ausser zum Datentransfer auf die Clients)? ... Next by Date: ...
    (de.comp.lang.java)
  • Re: Incremental population stops
    ... I got some information from one of the clients to answer your questions. ... John ... > whether or not this is a bug or a PRB. ... >> users search for could meet with an XML element tag). ...
    (microsoft.public.sqlserver.fulltext)
  • Re: Joining Office documents programatically
    ... Basically I am building a sharepoint based ... and infopath and don't have alot of experience in XML or XSLT). ... Citrix to deploy the system to these clients. ...
    (microsoft.public.office.developer.automation)
  • Re: Database->python->Xml->Xslt->Client
    ... Not any more verbose, typically, than HTML doing the presentation of ... whatever data the XML is encoding, which I take is the alternative John ... performance compared to having the server prepare and send all HTML. ... clients, and that carries its own set of issues. ...
    (comp.lang.python)