From: Steve B. <Ste...@zv...> - 2004-09-13 23:26:30
|
You could (should) try using TclXML/TclDOM v3.0. The latest version is much more reliable in terms of managing document/node tokens. HTHs, Steve Ball On 14/09/2004, at 8:25 AM, Byron Whitlock wrote: > Using Tclsoap 1.6.7 tcldom/tclxml 2.6 > > I've written a server using tclsoap. > > TclSoap is blowing up when trying to deserialize .NET style arrays. > > When using dom::tcl the problem does not happen, the array is > deserialized into a tcl list correctly. > > When using the libxml2 version of tcldom, tcldom craps out: > [dom::node parent $node] > 'token "malformed node token "doc12"" is not a DOM Document' > > Has anyone seen this before? > > > ================Request============================================ > <?xml version="1.0" encoding="utf-8"?><soap:Envelope > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:tns="http://www.lyris.com/lmapi" > xmlns:types="http://www.lyris.com/lmapi/encodedTypes" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > <soap:Body > soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> > > <q1:SelectMembers xmlns:q1="lmapi"> > <ArrayOfFilterCriteria href="#id1" /> > </q1:SelectMembers> > > <soapenc:Array id="id1" soapenc:arrayType="xsd:string[2]"> > <Item>EmailAddress like %1balh% </Item> > <Item>ListName = list1 </Item> > </soapenc:Array> > </soap:Body> > > </soap:Envelope> > > > > ====================RESPONCE=============================== > <?xml version="1.0"?> > <SOAP-ENV:Envelope > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:s0="http://www.lyris.com/lmapi"><SOAP-ENV:Body><SOAP-ENV: > Fault><faultcode>NONE</faultcode><faultstring>token "malformed node > token "doc12"" is not a DOM Document</faultstring><detail><e:errorInfo > xmlns:e="urn:TclSOAP-ErrorInfo"><errorCode>NONE</ > errorCode><stackTrace>token "malformed node token "doc12"" is not a > DOM Document > while executing > "dom::node parent $node" > (procedure "getDocumentElement" line 2) > invoked from within > "getDocumentElement $parent" > (procedure "getDocumentElement" line 6) > invoked from within > "getDocumentElement $parent" > (procedure "getDocumentElement" line 6) > invoked from within > "getDocumentElement $parent" > (procedure "getDocumentElement" line 6) > invoked from within > "getDocumentElement $parent" > (procedure "getDocumentElement" line 6) > invoked from within > "getDocumentElement $parent" > (procedure "getDocumentElement" line 6) > invoked from within > "getDocumentElement $domElement" > (procedure "getElementValue" line 10) > invoked from within > "getElementValue $domElement" > (procedure "decomposeSoap" line 9) > invoked from within > "decomposeSoap > $node"</stackTrace></e:errorInfo></detail></SOAP-ENV:Fault></SOAP-ENV: > Body></SOAP-ENV:Envelope> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Tclxml-users mailing list > Tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tclxml-users > > --- Steve Ball | XSLT Standard Library | Training & Seminars Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development Ste...@zv... +---------------------------+--------------------- Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099 |