Hi,
The following code snippet invoke a service specified in
InvokeMultiplierService2. And the result is assigned to the input variable
of the next <invoke/> which is InvokeSquareService.
<invoke name="InvokeMultiplierService2" partnerLink="MultiplierPartnerLink"
operation="multiply" portType="ns1:MultiplierServicePortType"
inputVariable="MultiplyInput1" outputVariable="MultiplyOutput1"/>
<assign name="Assign3">
<copy>
<from>
<literal xml:space="preserve">
<tns:square xmlns:tns="http://ws.apache.org/axis2" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<tns:param0></tns:param0>
</tns:square>
</literal>
</from>
<to part="parameters" variable="SquareInput">
</to>
</copy>
<copy>
<from>$MultiplyOutput1.parameters/ns4:return</from>
<to>$SquareInput.parameters/ns4:param0</to>
</copy>
</assign>
<invoke name="InvokeSquareService" partnerLink="SquarePartnerLink"
operation="square" xmlns:ns2="http://SquareService.wsdl"
portType="ns2:SquareServicePortType" inputVariable="SquareInput"
outputVariable="SquareOutput"/>
I think this will help you.
Cheers,
Denis Weerasiri.
http://ddweerasiri.blogspot.com/
On Mon, Jul 6, 2009 at 10:12 PM, phan le sang <[email protected]> wrote:
> Hi Everyone,
> I'm trying to find an example of BPEL process in which we taking the result
> from one web service and using it to invoke another web service. Would you
> please give me some links or some sources. I've tried to find it in the
> documentation page but still not see.
>
> Thanks for any help!
> Sang
>