ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Riou" <matth...@offthelip.org>
Subject Re: Wrong element in ODE response
Date Mon, 01 Dec 2008 15:39:02 GMT
On Sun, Nov 30, 2008 at 10:32 PM, Julio Cesar Damasceno <xjulio@jheat.org>wrote:

> The correct response from process is the second, but I'm receiving the
> first, wsdl and bpel files are attacheds.
>
> ########## WRONG ####################
> <!-- [ODEService] Response message -->
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> ">
>     <soapenv:Body>
>         <CalculadoraResponse xmlns="
> http://www.umbrelacorp.org/calculadora.wsdl">
>             <return xmlns="http://divisor.sample.mosc.umbrelacorp.org
> ">275</return>
>         </CalculadoraResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
>
> ########## CORRECT ####################
> <!-- [ODEService] Response message -->
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> ">
>     <soapenv:Body>
>         <CalculadoraResponse xmlns="
> http://www.umbrelacorp.org/calculadora.wsdl">
>             <result>275</result>
>         </CalculadoraResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
>

First you should use BPEL 2.0, that would make your assignments a little
easier (specifically you shouldn't repeat the part name in the query
attribute, just use a relative query). You also need to initialize all
variables before using them (see [1]), you don't get any assignment failures
because your elements are directly under the part but still, with the
semantic of "replace content" in BPEL assigments you don't get the expected
result without initialization.

So your last assignment should look similar to:

<assign name="Assign">
<copy>
   <from><literal><CalculadoraResponse xmlns="
http://www.umbrelacorp.org/calculadora.wsdl
"><result/></CalculadoraResponse></literal><from>
   <to>$serviceResponse.payload</to>
</copy>
<copy>
  <from>$divisaoResponse.parameters/@div:return</from>
  <to>$serviceResponse.payload/tns:result"/>
</copy>
</assign>

Matthieu


>
> --
> Thanks.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message