Bugs item #1085126, was opened at 2004-12-14 15:00 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1085126&group_id=16035
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Gerd (rg021927) Assigned to: Nobody/Anonymous (nobody) Summary: Failure on element.selectNodes(//foo) Initial Comment: Hi, I encountered the following bug: I want to select the element "userName" and "passWord" out of the following SoapEnvelope with this code: CODE: Node usersList = rootElement.selectSingleNode("//" + SoapConstants.ELEMENT_USER_NAME); if (usersList != null) { myRequest.setM_UserName(usersList.getText()); } else { log.error("processSoapRequest() no userName found"); return retVal; } List passWordsList = rootElement.selectNodes("//" + SoapConstants.ELEMENT_USER_PASSWORD); if (passWordsList.size() == 1) { myRequest.setM_Password(((Element)passWordsList.get(0)).getText()); } else { log.error("processSoapRequest() passWordsList wrong size: " + passWordsList.size()); return retVal; } SOAP: POST /TMCWebServices/inquireAll HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.2beta Host: 127.0.0.1:8089 Cache-Control: no-cache Pragma: no-cache SOAPAction: "TMCWebServices#inquireAll" Content-Length: 770 <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <inquireAll xmlns=""> <ns1:userName xmlns:ns1="http://sitraffic.siemens.com/ws/protokoll">xxx</ns1:userName> <ns2:passWord xmlns:ns2="http://sitraffic.siemens.com/ws/protokoll">xxx</ns2:passWord> <ns3:watchdog xsi:nil="true" xmlns:ns3="http://sitraffic.siemens.com/ws/protokoll"/> <ns4:objectType xmlns:ns4="http://sitraffic.siemens.com/ws/protokoll">Version</ns4:objectType> <ns5:filterList xsi:nil="true" xmlns:ns5="http://sitraffic.siemens.com/ws/protokoll"/> </inquireAll> </soapenv:Body> </soapenv:Envelope> Both fail with empty returns. The code works with a nearly equal Soapmessage except the namespaces. Regards, Gerd ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1085126&group_id=16035 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev