diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-22 15:35:58 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-22 15:35:58 +0000 |
commit | 48209b6ab2d93ec394128ff1a9f1312a8f06e602 (patch) | |
tree | 7fd827d3505cd3a8b46b3cb30cd9754d407550cb /sca-java-2.x/trunk/samples/helloworld-bpel | |
parent | 8b024d5fdb70835617c1545019417fceec35f5c1 (diff) |
Update the bpel sample bpel script and wsdl to match the bpel itest, and comment out the message processing and hard code the response while its not working
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@926137 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples/helloworld-bpel')
-rw-r--r-- | sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.bpel | 45 | ||||
-rw-r--r-- | sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.wsdl | 24 |
2 files changed, 41 insertions, 28 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>
diff --git a/sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.wsdl b/sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.wsdl index 46cf381577..cf966264ef 100644 --- a/sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.wsdl +++ b/sca-java-2.x/trunk/samples/helloworld-bpel/src/main/resources/helloworld.wsdl @@ -18,10 +18,10 @@ ~ under the License. --> -<wsdl:definitions - targetNamespace="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl" +<wsdl:definitions name="helloworld" + targetNamespace="http://testing/" xmlns="http://schemas.xmlsoap.org/wsdl/" - xmlns:tns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl" + xmlns:tns="http://testing/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" @@ -31,7 +31,7 @@ <wsdl:types> <schema elementFormDefault="qualified" - targetNamespace="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl" + targetNamespace="http://testing/" xmlns="http://www.w3.org/2001/XMLSchema"> <element name="hello"> @@ -40,7 +40,15 @@ <element name="message" type="xsd:string"/> </sequence> </complexType> - </element> + </element> + + <element name="helloResponse"> + <complexType> + <sequence> + <element name="messageResponse" type="xsd:string"/> + </sequence> + </complexType> + </element> </schema> </wsdl:types> @@ -48,10 +56,14 @@ <wsdl:part element="tns:hello" name="TestPart"/> </wsdl:message> + <wsdl:message name="HelloMessageResponse"> + <wsdl:part element="tns:helloResponse" name="TestResponse"/> + </wsdl:message> + <wsdl:portType name="HelloPortType"> <wsdl:operation name="hello"> <wsdl:input message="tns:HelloMessage" name="TestIn"/> - <wsdl:output message="tns:HelloMessage" name="TestOut"/> + <wsdl:output message="tns:HelloMessageResponse" name="TestOut"/> </wsdl:operation> </wsdl:portType> |