axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcaristi <jcari...@whisolutions.com>
Subject Axiom XPath Question - can't figure out how to select node
Date Thu, 25 Sep 2008 11:58:42 GMT

I am writing my own WSDL, with elements imported from an XML schema.  The
WSDL has one namespace, the schema elements have a different namespace.  The
XML that comes into my service (via the RawXMLINOutMessageReceiver) looks
like this:

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

My code looks like this:

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");
userNode = (OMNode) xpathExpression.selectSingleNode(element);

This code does not select a node.  I have also tried lot's of other XPath
expressions without success.  Can anyone see what's wrong?
		

-- 
View this message in context: http://www.nabble.com/Axiom-XPath-Question---can%27t-figure-out-how-to-select-node-tp19668035p19668035.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message