axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Moez Benmbarka <moez.benmba...@cryptolog.com>
Subject Re: Axiom XPath Question - can't figure out how to select node
Date Thu, 25 Sep 2008 12:12:10 GMT
Hi,

I believe that no element was selected because the "makesGetParam" 
element is not in the 
"http://www.whisolutions.com/pss/wsdl/PartSelect-v1.0" namespace as 
expected by your XPath expression.

Moez BM,

jcaristi wrote:
> 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?
> 		
>
>   


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