summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.bpel
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.bpel')
-rw-r--r--sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.bpel45
1 files changed, 23 insertions, 22 deletions
diff --git a/sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.bpel b/sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.bpel
index 19afe61fd3..112b730cd5 100644
--- a/sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.bpel
+++ b/sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.bpel
@@ -18,23 +18,24 @@
-->
<process name="HelloWorld"
targetNamespace="http://tuscany.apache.org/implementation/bpel/example/helloworld"
- xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
- xmlns:tns="http://tuscany.apache.org/implementation/bpel/example/helloworld"
+ xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ xmlns:tns="http://tuscany.apache.org/implementation/bpel/example/helloworld"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:test="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"
+ xmlns:test="http://testing/"
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
- expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable">
<import location="helloworld.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"
- namespace="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"/>
+ namespace="http://testing/"/>
<partnerLinks>
<partnerLink name="helloPartnerLink" partnerLinkType="test:HelloPartnerLinkType" myRole="me" />
</partnerLinks>
-
+
<variables>
- <variable name="myVar" messageType="test:HelloMessage"/>
+ <variable name="helloMessage" messageType="test:HelloMessage"/>
+ <variable name="helloMessageResponse" messageType="test:HelloMessageResponse"/>
<variable name="tmpVar" type="xsd:string"/>
</variables>
@@ -44,35 +45,35 @@
partnerLink="helloPartnerLink"
portType="test:HelloPortType"
operation="hello"
- variable="myVar"
+ variable="helloMessage"
createInstance="yes"/>
<assign name="assign1">
<copy>
- <from>concat($myVar.TestPart/test:message/text(), ' World')</from>
+ <!-- from>concat($helloMessage.TestPart/test:message/text(), ' World')</from -->
+ <from>concat('Hello ', 'world')</from>
<to variable="tmpVar"/>
</copy>
- <!--
+ <!-- Initialize the response -->
<copy>
<from>
<literal>
- <test:hello>
- <test:message>$tmpVar</test:message>
- </test:hello>
- </literal>
+ <test:helloResponse>
+ <test:messageResponse>Dummy</test:messageResponse>
+ </test:helloResponse>
+ </literal>
</from>
- <to variable="myVar" part="TestPart"/>
- </copy>
- -->
+ <to variable="helloMessageResponse" part="TestResponse"/>
+ </copy>
<copy>
- <from>$tmpVar</from>
- <to>$myVar.TestPart/test:message</to>
+ <from variable="tmpVar"/>
+ <to>$helloMessageResponse.TestResponse/test:messageResponse</to>
</copy>
</assign>
- <reply name="end"
+ <reply name="end"
partnerLink="helloPartnerLink"
- portType="test:HelloPortType"
+ portType="test:HelloPortType"
operation="hello"
- variable="myVar"/>
+ variable="helloMessageResponse"/>
</sequence>
</process>