<!-- Test BPEL Process
[Generated by the Eclipse BPEL Designer] -->
<!-- Date: Wed Apr 22
19:50:03 CAT 2009 -->
<
bpel:process name="Test"
targetNamespace="http://test"
suppressJoinFailure="yes"
xmlns:tns="http://test"
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>
<!-- Import the client WSDL -->
<bpel:import location="TestArtifacts.wsdl" namespace="http://test"
importType="http://schemas.xmlsoap.org/wsdl/" />
<!--
=================================================================
-->
<!-- PARTNERLINKS -->
<!-- List of services participating in this BPEL process
-->
<!--
=================================================================
-->
<bpel:partnerLinks>
<!--
The 'client' role represents the
requester of this service. It is
used for callback. The
location and correlation information associated
with the client role are
automatically set using WS-Addressing.
-->
<bpel:partnerLink name="client"
partnerLinkType="tns:Test"
myRole="TestProvider"
partnerRole="TestRequester"
/>
</bpel:partnerLinks>
<!--
=================================================================
-->
<!-- VARIABLES -->
<!-- List of messages and XML documents used within this BPEL process
-->
<!--
=================================================================
-->
<bpel:variables>
<!-- Reference to the message passed as input during initiation
-->
<bpel:variable name="input"
messageType="tns:TestRequestMessage"/>
<!-- Reference to the message that will be sent back to the
requester during
callback
-->
<bpel:variable name="output"
messageType="tns:TestResponseMessage"/>
</bpel:variables>
<!--
=================================================================
-->
<!-- ORCHESTRATION LOGIC -->
<!-- Set of activities coordinating the flow of messages across the
-->
<!-- services integrated within this business process
-->
<!--
=================================================================
-->
<bpel:sequence name="main">
<!-- Receive input from requestor.
Note: This maps to operation
defined in Test.wsdl
-->
<bpel:receive name="receiveInput" partnerLink="client"
portType="tns:Test"
operation="initiate" variable="input"
createInstance="yes"/>
<!-- Asynchronous callback to the requester.
Note: the callback
location and correlation id is transparently handled
using WS-addressing.
-->
<bpel:assign validate="no" name="Assign">
<bpel:copy>
<bpel:from>
<bpel:literal xml:space="preserve"><tns:TestResponse xmlns:tns="http://test" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tns:result></tns:result>
</tns:TestResponse>
</bpel:literal>
</bpel:from>
<bpel:to variable="output" part="payload"></bpel:to>
</bpel:copy>
<bpel:copy>
<bpel:from part="payload" variable="input">
<bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:input]]></bpel:query>
</bpel:from>
<bpel:to part="payload" variable="output">
<bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
</bpel:to>
</bpel:copy>
</bpel:assign>
<bpel:invoke name="callbackClient"
partnerLink="client"
portType="tns:TestCallback"
operation="onResult"
inputVariable="output"
/>
</bpel:sequence>
</bpel:process>
Any ideas?