This question has been on the user forum for a few days. After continued research I think there may be a bug.
Two different SOAP clients generate a similar XML request from my WSDL that looks like the following XML document inside my service (using the RawXMLINOutMessageReceiver): <q1:makesGet xmlns:q1="http://www.whisolutions.com/pss/wsdl/PartSelect-v1.0"> <makesGetParms> <q0:UserName xmlns:q0="http://www.whisolutions.com/pss/xsd/partselect/2008/09">Joe</q0:UserName> <q0:Password xmlns:q0="http://www.whisolutions.com/pss/xsd/partselect/2008/09">1</q0:Password> <q0:Year xmlns:q0="http://www.whisolutions.com/pss/xsd/partselect/2008/09">1998</q0:Year> <q0:UseConfig xmlns:q0="http://www.whisolutions.com/pss/xsd/partselect/2008/09">true</q0:UseConfig> </makesGetParms> </q1:makesGet> The following code fails to find the node (using either the "selectNodes" or the "selectSingleNode" method): AXIOMXPath xpathExpression = new AXIOMXPath ("a:makesGet/a:makesGetParms/b:UserName"); xpathExpression.addNamespace("a", "http://www.whisolutions.com/pss/wsdl/PartSelect-v1.0"); xpathExpression.addNamespace("b", "http://www.whisolutions.com/pss/xsd/partselect/2008/09"); List nodeList = xpathExpression.selectNodes(element); userNode = (OMNode) xpathExpression.selectSingleNode(element); I also tried lot's of other possible XPath expressions without success (e.g. "a:makesGet/makesGetParms/b:UserName"). If I remove the namespaces from the XML and the XPath expression and use an XPath testing tool, it works. Based on XML schema rules, I believe that the node "makesGetParms" is actually in namespace "q1", even though the element is not qualified in the document. Perhaps this is the root of the problem? Here is my WSDL and XSD: http://www.nabble.com/file/p19723540/PartSelect_v1_0.wsdl PartSelect_v1_0.wsdl http://www.nabble.com/file/p19723540/PartSelect-v1.0.0.xsd PartSelect-v1.0.0.xsd -- View this message in context: http://www.nabble.com/Is-there-a-bug-with-Axiom-XPath-and-Multiple-namespaces--tp19723540p19723540.html Sent from the Axis - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
