ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cwik, Jan" <Jan.C...@sabre-holdings.com>
Subject RE: Unable to access wsdl part from the variable defined by wsdl
Date Mon, 08 Oct 2007 16:25:07 GMT
Thanks !


-----Original Message-----
From: Alex Boisvert [mailto:boisvert@intalio.com] 
Sent: Monday, October 08, 2007 4:36 PM
To: user@ode.apache.org
Subject: Re: Unable to access wsdl part from the variable defined by

On 10/8/07, Cwik, Jan <Jan.Cwik@sabre-holdings.com> wrote:
> However, when the above xml is copied to SabreCommandRequest (
> variable="SabreCommandRequest" part="body"/> ) the variable gets the
> following form :
> <?xmlversion="1.0" encoding="UTF-8"?>
> <message><body><SabreCommandLLSRQ Version="2003A.TsabreXML1.5.1"
> xmlns="http://webservices.sabre.com/sabreXML/2003/07"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <Request Output="SCREEN">
>       <HostCommand>N*(TEST)(SABRE_END_ITEM)NM</HostCommand>
>    </Request>
> </SabreCommandLLSRQ></body></message>'

The format of the above is the internal message representation where
<message> is the root element used to wrap all message parts and <body>
is a
named part with its content.

Now, I want to verify that $SabreCommandRequest is created successfully,
> simply I'm trying to check if SabreCommandLLSRQ node exists. When I
> create XPath "$SabreCommandRequest.body/xsd1:SabreCommandLLSRQ" I see
> the XPath expression returns false. I tried with xsd1 namespace and
> without namespace, and all the time it's false.
> DEBUG - XPath20ExpressionRuntime       - Expression
> boolean($SabreCommandRequest
> .body/xsd1:SabreCommandLLSRQ)} generated result false -
> type=java.lang.Boolean
> What I'm doing wrong ? I see that afer performing copy the variables
> encapsuleted by <message> and <body>. In case of a similar variable
> I'm getting from the <receive> activity the variable does not contain
> the <message> and <body> and $Variable.body works well.

The $message.part notation selects the top-level part element (if the
is an element) or an element wrapper (if the part is a schema type), so
you want to select the xsd1:SabreCommendLLSRQ element, you would simply
write "$SabreCommandRequest.body".


View raw message