You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by sa...@apache.org on 2018/01/30 10:20:53 UTC

[07/14] ode git commit: Add initial BPEL REST extension activities bundle and related tests

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/TestRestExtActStatusCode.bpel
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/TestRestExtActStatusCode.bpel b/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/TestRestExtActStatusCode.bpel
new file mode 100644
index 0000000..997fe55
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/TestRestExtActStatusCode.bpel
@@ -0,0 +1,90 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<process name="TestRestExtActStatusCode"
+    targetNamespace="http://ode/bpel/unit-test"
+    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:tns="http://ode/bpel/unit-test"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:test="http://ode/bpel/unit-test.wsdl"
+    xmlns:service="http://www.example.org/restApi"
+    xmlns:bpel4RestLight="http://www.apache.org/ode/bpel/extensions/bpel4restlight"
+    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+   <import location="TestRestExtActStatusCode.wsdl"
+     namespace="http://ode/bpel/unit-test.wsdl"
+     importType="http://schemas.xmlsoap.org/wsdl/" />
+     
+   <import location="restApi.xsd"
+     namespace="http://www.example.org/restApi"
+     importType="http://www.w3.org/2001/XMLSchema"/>
+     
+   <extensions>
+     <extension mustUnderstand="yes" namespace="http://www.apache.org/ode/bpel/extensions/bpel4restlight"/>
+   </extensions>
+
+   <partnerLinks>
+      <partnerLink name="helloPartnerLink"
+         partnerLinkType="test:HelloPartnerLinkType"
+         myRole="me" />
+   </partnerLinks>
+
+   <variables>
+     <variable name="myVar" messageType="test:HelloMessage"/>
+     <variable name="restUrl" type="xsd:string"/>
+     <variable name="statusCodeVar" type="xsd:int"/>
+     <variable name="restResponse" element="service:deleteResponse"/>
+     <variable name="response" messageType="test:ResponseMessage"></variable>
+    </variables>
+
+   <sequence>
+       <receive
+          name="start"
+          partnerLink="helloPartnerLink"
+          portType="test:HelloPortType"
+          operation="hello"
+          variable="myVar"
+          createInstance="yes"/>
+
+      <assign name="assign1">
+         <copy>
+             <from><literal>http://localhost:8085/test/resource</literal></from>
+             <to variable="restUrl"/>
+         </copy>
+      </assign>
+      
+      <extensionActivity>
+         <bpel4RestLight:DELETE accept="application/xml" response="restResponse" statusCode="statusCodeVar" uri="$bpelvar[restUrl]"/>
+	  </extensionActivity>
+	  
+	  <assign name="assign2">
+	      <copy>
+	          <from variable="statusCodeVar"></from>
+	          <to part="TestPart" variable="response"></to>
+	      </copy>
+      </assign>
+      
+      <reply name="end"
+             partnerLink="helloPartnerLink"
+             portType="test:HelloPortType"
+             operation="hello"
+             variable="response"/>
+   </sequence>
+</process>

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/TestRestExtActStatusCode.wsdl
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/TestRestExtActStatusCode.wsdl b/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/TestRestExtActStatusCode.wsdl
new file mode 100644
index 0000000..2270a8b
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/TestRestExtActStatusCode.wsdl
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<wsdl:definitions
+    targetNamespace="http://ode/bpel/unit-test.wsdl"
+    xmlns="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:tns="http://ode/bpel/unit-test.wsdl"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+        
+    <wsdl:message name="HelloMessage">
+        <wsdl:part name="TestPart" type="xsd:string"/>
+    </wsdl:message>
+    
+    <wsdl:message name="ResponseMessage">
+        <wsdl:part name="TestPart" type="xsd:anyType"/>
+    </wsdl:message>
+
+    <wsdl:portType name="HelloPortType">
+        <wsdl:operation name="hello">
+            <wsdl:input message="tns:HelloMessage" name="TestIn"/>
+            <wsdl:output message="tns:ResponseMessage" name="TestOut"/>
+        </wsdl:operation>
+    </wsdl:portType>
+
+     <wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
+        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="hello">
+            <soap:operation soapAction="" style="rpc"/>
+            <wsdl:input>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl"
+                    use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl"
+                    use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="HelloService">
+        <wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
+            <soap:address location="http://localhost:8080/ode/processes/helloWorld"/>
+        </wsdl:port>
+    </wsdl:service>
+
+   <plnk:partnerLinkType name="HelloPartnerLinkType">
+       <plnk:role name="me" portType="tns:HelloPortType"/>
+       <plnk:role name="you" portType="tns:HelloPortType"/>
+   </plnk:partnerLinkType>
+</wsdl:definitions>
+

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/deploy.xml
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/deploy.xml b/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/deploy.xml
new file mode 100644
index 0000000..cdba052
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/deploy.xml
@@ -0,0 +1,30 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+    xmlns:pns="http://ode/bpel/unit-test"
+    xmlns:wns="http://ode/bpel/unit-test.wsdl">
+
+
+    <process name="pns:TestRestExtActStatusCode">
+        <active>true</active>
+        <provide partnerLink="helloPartnerLink">
+            <service name="wns:HelloService" port="HelloPort"/>
+        </provide>
+    </process>
+</deploy>

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/restApi.xsd
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/restApi.xsd b/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/restApi.xsd
new file mode 100644
index 0000000..7aa878b
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/restApi.xsd
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/restApi"
+	xmlns:tns="http://www.example.org/restApi" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+
+	<xsd:complexType name="deleteResponseType">
+		<xsd:sequence>
+			<xsd:element name="result" type="xsd:string"></xsd:element>
+		</xsd:sequence>
+	</xsd:complexType>
+
+	<xsd:element name="deleteResponse" type="tns:deleteResponseType"></xsd:element>
+</schema>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/test.properties
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/test.properties b/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/test.properties
new file mode 100644
index 0000000..b6b5750
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestExtActStatusCode/test.properties
@@ -0,0 +1,23 @@
+#
+#    Licensed to the Apache Software Foundation (ASF) under one or more
+#    contributor license agreements.  See the NOTICE file distributed with
+#    this work for additional information regarding copyright ownership.
+#    The ASF licenses this file to You under the Apache License, Version 2.0
+#    (the "License"); you may not use this file except in compliance with
+#    the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#
+
+namespace=http://ode/bpel/unit-test.wsdl
+service=HelloService
+operation=hello
+request1=<message><TestPart>Hello</TestPart></message>
+response1=.*404.*
+

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/TestRestGetExtAct.bpel
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/TestRestGetExtAct.bpel b/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/TestRestGetExtAct.bpel
new file mode 100644
index 0000000..9a4ee33
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/TestRestGetExtAct.bpel
@@ -0,0 +1,84 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<process name="TestRestGetExtAct"
+    targetNamespace="http://ode/bpel/unit-test"
+    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:tns="http://ode/bpel/unit-test"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:test="http://ode/bpel/unit-test.wsdl"
+    xmlns:bpel4RestLight="http://www.apache.org/ode/bpel/extensions/bpel4restlight"
+    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+   <import location="TestRestGetExtAct.wsdl"
+     namespace="http://ode/bpel/unit-test.wsdl"
+     importType="http://schemas.xmlsoap.org/wsdl/" />
+     
+   <extensions>
+     <extension mustUnderstand="yes" namespace="http://www.apache.org/ode/bpel/extensions/bpel4restlight"/>
+   </extensions>
+
+   <partnerLinks>
+      <partnerLink name="helloPartnerLink"
+         partnerLinkType="test:HelloPartnerLinkType"
+         myRole="me" />
+   </partnerLinks>
+
+   <variables>
+     <variable name="myVar" messageType="test:HelloMessage"/>
+     <variable name="restUrl" type="xsd:string"/>
+     <variable name="restResponse" type="xsd:anyType"/>
+     <variable name="response" messageType="test:ResponseMessage"></variable>
+    </variables>
+
+   <sequence>
+       <receive
+          name="start"
+          partnerLink="helloPartnerLink"
+          portType="test:HelloPortType"
+          operation="hello"
+          variable="myVar"
+          createInstance="yes"/>
+
+      <assign name="assign1">
+         <copy>
+             <from><literal>http://localhost:8085/test</literal></from>
+             <to variable="restUrl"/>
+         </copy>
+      </assign>
+      
+      <extensionActivity>
+         <bpel4RestLight:GET accept="application/xml" response="restResponse" uri="$bpelvar[restUrl]"/>
+	  </extensionActivity>
+	  
+	  <assign name="assign2">
+	      <copy>
+	          <from variable="restResponse"></from>
+	          <to part="TestPart" variable="response"></to>
+	      </copy>
+      </assign>
+      
+      <reply name="end"
+             partnerLink="helloPartnerLink"
+             portType="test:HelloPortType"
+             operation="hello"
+             variable="response"/>
+   </sequence>
+</process>

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/TestRestGetExtAct.wsdl
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/TestRestGetExtAct.wsdl b/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/TestRestGetExtAct.wsdl
new file mode 100644
index 0000000..3769221
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/TestRestGetExtAct.wsdl
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<wsdl:definitions
+    targetNamespace="http://ode/bpel/unit-test.wsdl"
+    xmlns="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:tns="http://ode/bpel/unit-test.wsdl"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+    <wsdl:message name="HelloMessage">
+        <wsdl:part name="TestPart" type="xsd:string"/>
+    </wsdl:message>
+    
+    <wsdl:message name="ResponseMessage">
+        <wsdl:part name="TestPart" type="xsd:anyType"/>
+    </wsdl:message>
+
+    <wsdl:portType name="HelloPortType">
+        <wsdl:operation name="hello">
+            <wsdl:input message="tns:HelloMessage" name="TestIn"/>
+            <wsdl:output message="tns:ResponseMessage" name="TestOut"/>
+        </wsdl:operation>
+    </wsdl:portType>
+
+     <wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
+        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="hello">
+            <soap:operation soapAction="" style="rpc"/>
+            <wsdl:input>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl"
+                    use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl"
+                    use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="HelloService">
+        <wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
+            <soap:address location="http://localhost:8080/ode/processes/helloWorld"/>
+        </wsdl:port>
+    </wsdl:service>
+
+   <plnk:partnerLinkType name="HelloPartnerLinkType">
+       <plnk:role name="me" portType="tns:HelloPortType"/>
+       <plnk:role name="you" portType="tns:HelloPortType"/>
+   </plnk:partnerLinkType>
+</wsdl:definitions>
+

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/deploy.xml
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/deploy.xml b/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/deploy.xml
new file mode 100644
index 0000000..541742a
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/deploy.xml
@@ -0,0 +1,30 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+    xmlns:pns="http://ode/bpel/unit-test"
+    xmlns:wns="http://ode/bpel/unit-test.wsdl">
+
+
+    <process name="pns:TestRestGetExtAct">
+        <active>true</active>
+        <provide partnerLink="helloPartnerLink">
+            <service name="wns:HelloService" port="HelloPort"/>
+        </provide>
+    </process>
+</deploy>

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/test.properties
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/test.properties b/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/test.properties
new file mode 100644
index 0000000..558675c
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestGetExtAct/test.properties
@@ -0,0 +1,23 @@
+#
+#    Licensed to the Apache Software Foundation (ASF) under one or more
+#    contributor license agreements.  See the NOTICE file distributed with
+#    this work for additional information regarding copyright ownership.
+#    The ASF licenses this file to You under the Apache License, Version 2.0
+#    (the "License"); you may not use this file except in compliance with
+#    the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#
+
+namespace=http://ode/bpel/unit-test.wsdl
+service=HelloService
+operation=hello
+request1=<message><TestPart>Hello</TestPart></message>
+response1=.*GET response data.*
+

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/TestRestPostExtAct.bpel
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/TestRestPostExtAct.bpel b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/TestRestPostExtAct.bpel
new file mode 100644
index 0000000..5a12cb3
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/TestRestPostExtAct.bpel
@@ -0,0 +1,100 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<process name="TestRestPostExtAct"
+    targetNamespace="http://ode/bpel/unit-test"
+    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:tns="http://ode/bpel/unit-test"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:test="http://ode/bpel/unit-test.wsdl"
+    xmlns:service="http://www.example.org/restApi"
+    xmlns:bpel4RestLight="http://www.apache.org/ode/bpel/extensions/bpel4restlight"
+    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+   <import location="TestRestPostExtAct.wsdl"
+     namespace="http://ode/bpel/unit-test.wsdl"
+     importType="http://schemas.xmlsoap.org/wsdl/" />
+     
+   <import location="restApi.xsd"
+     namespace="http://www.example.org/restApi"
+     importType="http://www.w3.org/2001/XMLSchema"/>
+     
+   <extensions>
+     <extension mustUnderstand="yes" namespace="http://www.apache.org/ode/bpel/extensions/bpel4restlight"/>
+   </extensions>
+
+   <partnerLinks>
+      <partnerLink name="helloPartnerLink"
+         partnerLinkType="test:HelloPartnerLinkType"
+         myRole="me" />
+   </partnerLinks>
+
+   <variables>
+     <variable name="myVar" messageType="test:HelloMessage"/>
+     <variable name="restUrl" type="xsd:string"/>
+     <variable name="restRequest" element="service:postRequest"/>
+     <variable name="restResponse" element="service:postResponse"/>
+     <variable name="response" messageType="test:ResponseMessage"></variable>
+    </variables>
+
+   <sequence>
+       <receive
+          name="start"
+          partnerLink="helloPartnerLink"
+          portType="test:HelloPortType"
+          operation="hello"
+          variable="myVar"
+          createInstance="yes"/>
+
+      <assign name="assign1">
+         <copy>
+             <from><literal>http://localhost:8085/test</literal></from>
+             <to variable="restUrl"/>
+         </copy>
+         <copy>
+             <from>
+             	<literal>
+                    <service:postRequest xmlns:service="http://www.example.org/restApi">
+                        <service:value>POST Method Test</service:value>
+                    </service:postRequest>
+                </literal>
+             </from>
+             <to variable="restRequest"/>
+         </copy>
+      </assign>
+      
+      <extensionActivity>
+         <bpel4RestLight:POST accept="application/xml" request="restRequest" response="restResponse" uri="$bpelvar[restUrl]"/>
+	  </extensionActivity>
+	  
+	  <assign name="assign2">
+	      <copy>
+	          <from variable="restResponse"></from>
+	          <to part="TestPart" variable="response"></to>
+	      </copy>
+      </assign>
+      
+      <reply name="end"
+             partnerLink="helloPartnerLink"
+             portType="test:HelloPortType"
+             operation="hello"
+             variable="response"/>
+   </sequence>
+</process>

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/TestRestPostExtAct.wsdl
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/TestRestPostExtAct.wsdl b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/TestRestPostExtAct.wsdl
new file mode 100644
index 0000000..2270a8b
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/TestRestPostExtAct.wsdl
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<wsdl:definitions
+    targetNamespace="http://ode/bpel/unit-test.wsdl"
+    xmlns="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:tns="http://ode/bpel/unit-test.wsdl"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+        
+    <wsdl:message name="HelloMessage">
+        <wsdl:part name="TestPart" type="xsd:string"/>
+    </wsdl:message>
+    
+    <wsdl:message name="ResponseMessage">
+        <wsdl:part name="TestPart" type="xsd:anyType"/>
+    </wsdl:message>
+
+    <wsdl:portType name="HelloPortType">
+        <wsdl:operation name="hello">
+            <wsdl:input message="tns:HelloMessage" name="TestIn"/>
+            <wsdl:output message="tns:ResponseMessage" name="TestOut"/>
+        </wsdl:operation>
+    </wsdl:portType>
+
+     <wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
+        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="hello">
+            <soap:operation soapAction="" style="rpc"/>
+            <wsdl:input>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl"
+                    use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl"
+                    use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="HelloService">
+        <wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
+            <soap:address location="http://localhost:8080/ode/processes/helloWorld"/>
+        </wsdl:port>
+    </wsdl:service>
+
+   <plnk:partnerLinkType name="HelloPartnerLinkType">
+       <plnk:role name="me" portType="tns:HelloPortType"/>
+       <plnk:role name="you" portType="tns:HelloPortType"/>
+   </plnk:partnerLinkType>
+</wsdl:definitions>
+

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/deploy.xml
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/deploy.xml b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/deploy.xml
new file mode 100644
index 0000000..08ace8f
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/deploy.xml
@@ -0,0 +1,30 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+    xmlns:pns="http://ode/bpel/unit-test"
+    xmlns:wns="http://ode/bpel/unit-test.wsdl">
+
+
+    <process name="pns:TestRestPostExtAct">
+        <active>true</active>
+        <provide partnerLink="helloPartnerLink">
+            <service name="wns:HelloService" port="HelloPort"/>
+        </provide>
+    </process>
+</deploy>

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/restApi.xsd
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/restApi.xsd b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/restApi.xsd
new file mode 100644
index 0000000..b521dc7
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/restApi.xsd
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/restApi"
+	xmlns:tns="http://www.example.org/restApi" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+
+	<xsd:complexType name="postRequestType">
+		<xsd:sequence>
+			<xsd:element name="value" type="xsd:string"></xsd:element>
+		</xsd:sequence>
+	</xsd:complexType>
+	
+	<xsd:complexType name="postResponseType">
+		<xsd:sequence>
+			<xsd:element name="result" type="xsd:string"></xsd:element>
+		</xsd:sequence>
+	</xsd:complexType>
+
+	<xsd:element name="postRequest" type="tns:postRequestType"></xsd:element>
+	<xsd:element name="postResponse" type="tns:postResponseType"></xsd:element>
+</schema>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/test.properties
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/test.properties b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/test.properties
new file mode 100644
index 0000000..1c966aa
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct/test.properties
@@ -0,0 +1,23 @@
+#
+#    Licensed to the Apache Software Foundation (ASF) under one or more
+#    contributor license agreements.  See the NOTICE file distributed with
+#    this work for additional information regarding copyright ownership.
+#    The ASF licenses this file to You under the Apache License, Version 2.0
+#    (the "License"); you may not use this file except in compliance with
+#    the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#
+
+namespace=http://ode/bpel/unit-test.wsdl
+service=HelloService
+operation=hello
+request1=<message><TestPart>Hello</TestPart></message>
+response1=.*POST Method Test Result.*
+

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/TestRestPostExtAct.bpel
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/TestRestPostExtAct.bpel b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/TestRestPostExtAct.bpel
new file mode 100644
index 0000000..2503543
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/TestRestPostExtAct.bpel
@@ -0,0 +1,94 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<process name="TestRestPostExtAct"
+    targetNamespace="http://ode/bpel/unit-test"
+    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:tns="http://ode/bpel/unit-test"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:test="http://ode/bpel/unit-test.wsdl"
+    xmlns:service="http://www.example.org/restApi"
+    xmlns:bpel4RestLight="http://www.apache.org/ode/bpel/extensions/bpel4restlight"
+    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+   <import location="TestRestPostExtAct.wsdl"
+     namespace="http://ode/bpel/unit-test.wsdl"
+     importType="http://schemas.xmlsoap.org/wsdl/" />
+     
+   <import location="restApi.xsd"
+     namespace="http://www.example.org/restApi"
+     importType="http://www.w3.org/2001/XMLSchema"/>
+     
+   <extensions>
+     <extension mustUnderstand="yes" namespace="http://www.apache.org/ode/bpel/extensions/bpel4restlight"/>
+   </extensions>
+
+   <partnerLinks>
+      <partnerLink name="helloPartnerLink"
+         partnerLinkType="test:HelloPartnerLinkType"
+         myRole="me" />
+   </partnerLinks>
+
+   <variables>
+     <variable name="myVar" messageType="test:HelloMessage"/>
+     <variable name="restUrl" type="xsd:string"/>
+     <variable name="restRequest" element="service:postRequest"/>
+     <variable name="restResponse" element="service:postResponse"/>
+     <variable name="response" messageType="test:ResponseMessage"></variable>
+    </variables>
+
+   <sequence>
+       <receive
+          name="start"
+          partnerLink="helloPartnerLink"
+          portType="test:HelloPortType"
+          operation="hello"
+          variable="myVar"
+          createInstance="yes"/>
+
+      <assign name="assign1">
+         <copy>
+             <from><literal>http://localhost:8085/test</literal></from>
+             <to variable="restUrl"/>
+         </copy>
+      </assign>
+      
+      <extensionActivity>
+         <bpel4RestLight:POST accept="application/xml" request="restRequest" response="restResponse" uri="$bpelvar[restUrl]">
+   			<service:postRequest xmlns:service="http://www.example.org/restApi">
+                <service:value>POST Method Test</service:value>
+            </service:postRequest>
+         </bpel4RestLight:POST>   
+	  </extensionActivity>
+	  
+	  <assign name="assign2">
+	      <copy>
+	          <from variable="restResponse"></from>
+	          <to part="TestPart" variable="response"></to>
+	      </copy>
+      </assign>
+      
+      <reply name="end"
+             partnerLink="helloPartnerLink"
+             portType="test:HelloPortType"
+             operation="hello"
+             variable="response"/>
+   </sequence>
+</process>

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/TestRestPostExtAct.wsdl
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/TestRestPostExtAct.wsdl b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/TestRestPostExtAct.wsdl
new file mode 100644
index 0000000..2270a8b
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/TestRestPostExtAct.wsdl
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<wsdl:definitions
+    targetNamespace="http://ode/bpel/unit-test.wsdl"
+    xmlns="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:tns="http://ode/bpel/unit-test.wsdl"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+        
+    <wsdl:message name="HelloMessage">
+        <wsdl:part name="TestPart" type="xsd:string"/>
+    </wsdl:message>
+    
+    <wsdl:message name="ResponseMessage">
+        <wsdl:part name="TestPart" type="xsd:anyType"/>
+    </wsdl:message>
+
+    <wsdl:portType name="HelloPortType">
+        <wsdl:operation name="hello">
+            <wsdl:input message="tns:HelloMessage" name="TestIn"/>
+            <wsdl:output message="tns:ResponseMessage" name="TestOut"/>
+        </wsdl:operation>
+    </wsdl:portType>
+
+     <wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
+        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="hello">
+            <soap:operation soapAction="" style="rpc"/>
+            <wsdl:input>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl"
+                    use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl"
+                    use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="HelloService">
+        <wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
+            <soap:address location="http://localhost:8080/ode/processes/helloWorld"/>
+        </wsdl:port>
+    </wsdl:service>
+
+   <plnk:partnerLinkType name="HelloPartnerLinkType">
+       <plnk:role name="me" portType="tns:HelloPortType"/>
+       <plnk:role name="you" portType="tns:HelloPortType"/>
+   </plnk:partnerLinkType>
+</wsdl:definitions>
+

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/deploy.xml
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/deploy.xml b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/deploy.xml
new file mode 100644
index 0000000..08ace8f
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/deploy.xml
@@ -0,0 +1,30 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+    xmlns:pns="http://ode/bpel/unit-test"
+    xmlns:wns="http://ode/bpel/unit-test.wsdl">
+
+
+    <process name="pns:TestRestPostExtAct">
+        <active>true</active>
+        <provide partnerLink="helloPartnerLink">
+            <service name="wns:HelloService" port="HelloPort"/>
+        </provide>
+    </process>
+</deploy>

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/restApi.xsd
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/restApi.xsd b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/restApi.xsd
new file mode 100644
index 0000000..b521dc7
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/restApi.xsd
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/restApi"
+	xmlns:tns="http://www.example.org/restApi" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+
+	<xsd:complexType name="postRequestType">
+		<xsd:sequence>
+			<xsd:element name="value" type="xsd:string"></xsd:element>
+		</xsd:sequence>
+	</xsd:complexType>
+	
+	<xsd:complexType name="postResponseType">
+		<xsd:sequence>
+			<xsd:element name="result" type="xsd:string"></xsd:element>
+		</xsd:sequence>
+	</xsd:complexType>
+
+	<xsd:element name="postRequest" type="tns:postRequestType"></xsd:element>
+	<xsd:element name="postResponse" type="tns:postResponseType"></xsd:element>
+</schema>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/test.properties
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/test.properties b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/test.properties
new file mode 100644
index 0000000..1c966aa
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPostExtAct2/test.properties
@@ -0,0 +1,23 @@
+#
+#    Licensed to the Apache Software Foundation (ASF) under one or more
+#    contributor license agreements.  See the NOTICE file distributed with
+#    this work for additional information regarding copyright ownership.
+#    The ASF licenses this file to You under the Apache License, Version 2.0
+#    (the "License"); you may not use this file except in compliance with
+#    the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#
+
+namespace=http://ode/bpel/unit-test.wsdl
+service=HelloService
+operation=hello
+request1=<message><TestPart>Hello</TestPart></message>
+response1=.*POST Method Test Result.*
+

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/TestRestPutExtAct.bpel
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/TestRestPutExtAct.bpel b/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/TestRestPutExtAct.bpel
new file mode 100644
index 0000000..02c24d9
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/TestRestPutExtAct.bpel
@@ -0,0 +1,100 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<process name="TestRestPutExtAct"
+    targetNamespace="http://ode/bpel/unit-test"
+    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:tns="http://ode/bpel/unit-test"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:test="http://ode/bpel/unit-test.wsdl"
+    xmlns:service="http://www.example.org/restApi"
+    xmlns:bpel4RestLight="http://www.apache.org/ode/bpel/extensions/bpel4restlight"
+    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+   <import location="TestRestPutExtAct.wsdl"
+     namespace="http://ode/bpel/unit-test.wsdl"
+     importType="http://schemas.xmlsoap.org/wsdl/" />
+     
+   <import location="restApi.xsd"
+     namespace="http://www.example.org/restApi"
+     importType="http://www.w3.org/2001/XMLSchema"/>
+     
+   <extensions>
+     <extension mustUnderstand="yes" namespace="http://www.apache.org/ode/bpel/extensions/bpel4restlight"/>
+   </extensions>
+
+   <partnerLinks>
+      <partnerLink name="helloPartnerLink"
+         partnerLinkType="test:HelloPartnerLinkType"
+         myRole="me" />
+   </partnerLinks>
+
+   <variables>
+     <variable name="myVar" messageType="test:HelloMessage"/>
+     <variable name="restUrl" type="xsd:string"/>
+     <variable name="restRequest" element="service:putRequest"/>
+     <variable name="restResponse" element="service:putResponse"/>
+     <variable name="response" messageType="test:ResponseMessage"></variable>
+    </variables>
+
+   <sequence>
+       <receive
+          name="start"
+          partnerLink="helloPartnerLink"
+          portType="test:HelloPortType"
+          operation="hello"
+          variable="myVar"
+          createInstance="yes"/>
+
+      <assign name="assign1">
+         <copy>
+             <from><literal>http://localhost:8085/test</literal></from>
+             <to variable="restUrl"/>
+         </copy>
+         <copy>
+             <from>
+             	<literal>
+                    <service:putRequest xmlns:service="http://www.example.org/restApi">
+                        <service:value>PUT Method Test</service:value>
+                    </service:putRequest>
+                </literal>
+             </from>
+             <to variable="restRequest"/>
+         </copy>
+      </assign>
+      
+      <extensionActivity>
+         <bpel4RestLight:PUT accept="application/xml" request="restRequest" response="restResponse" uri="$bpelvar[restUrl]"/>
+	  </extensionActivity>
+	  
+	  <assign name="assign2">
+	      <copy>
+	          <from variable="restResponse"></from>
+	          <to part="TestPart" variable="response"></to>
+	      </copy>
+      </assign>
+      
+      <reply name="end"
+             partnerLink="helloPartnerLink"
+             portType="test:HelloPortType"
+             operation="hello"
+             variable="response"/>
+   </sequence>
+</process>

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/TestRestPutExtAct.wsdl
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/TestRestPutExtAct.wsdl b/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/TestRestPutExtAct.wsdl
new file mode 100644
index 0000000..2270a8b
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/TestRestPutExtAct.wsdl
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<wsdl:definitions
+    targetNamespace="http://ode/bpel/unit-test.wsdl"
+    xmlns="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:tns="http://ode/bpel/unit-test.wsdl"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+        
+    <wsdl:message name="HelloMessage">
+        <wsdl:part name="TestPart" type="xsd:string"/>
+    </wsdl:message>
+    
+    <wsdl:message name="ResponseMessage">
+        <wsdl:part name="TestPart" type="xsd:anyType"/>
+    </wsdl:message>
+
+    <wsdl:portType name="HelloPortType">
+        <wsdl:operation name="hello">
+            <wsdl:input message="tns:HelloMessage" name="TestIn"/>
+            <wsdl:output message="tns:ResponseMessage" name="TestOut"/>
+        </wsdl:operation>
+    </wsdl:portType>
+
+     <wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
+        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="hello">
+            <soap:operation soapAction="" style="rpc"/>
+            <wsdl:input>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl"
+                    use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl"
+                    use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="HelloService">
+        <wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
+            <soap:address location="http://localhost:8080/ode/processes/helloWorld"/>
+        </wsdl:port>
+    </wsdl:service>
+
+   <plnk:partnerLinkType name="HelloPartnerLinkType">
+       <plnk:role name="me" portType="tns:HelloPortType"/>
+       <plnk:role name="you" portType="tns:HelloPortType"/>
+   </plnk:partnerLinkType>
+</wsdl:definitions>
+

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/deploy.xml
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/deploy.xml b/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/deploy.xml
new file mode 100644
index 0000000..914b8dc
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/deploy.xml
@@ -0,0 +1,30 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+    xmlns:pns="http://ode/bpel/unit-test"
+    xmlns:wns="http://ode/bpel/unit-test.wsdl">
+
+
+    <process name="pns:TestRestPutExtAct">
+        <active>true</active>
+        <provide partnerLink="helloPartnerLink">
+            <service name="wns:HelloService" port="HelloPort"/>
+        </provide>
+    </process>
+</deploy>

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/restApi.xsd
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/restApi.xsd b/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/restApi.xsd
new file mode 100644
index 0000000..752ea24
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/restApi.xsd
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/restApi"
+	xmlns:tns="http://www.example.org/restApi" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+
+	<xsd:complexType name="putRequestType">
+		<xsd:sequence>
+			<xsd:element name="value" type="xsd:string"></xsd:element>
+		</xsd:sequence>
+	</xsd:complexType>
+	
+	<xsd:complexType name="putResponseType">
+		<xsd:sequence>
+			<xsd:element name="result" type="xsd:string"></xsd:element>
+		</xsd:sequence>
+	</xsd:complexType>
+
+	<xsd:element name="putRequest" type="tns:putRequestType"></xsd:element>
+	<xsd:element name="putResponse" type="tns:putResponseType"></xsd:element>
+</schema>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ode/blob/f6ab51fe/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/test.properties
----------------------------------------------------------------------
diff --git a/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/test.properties b/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/test.properties
new file mode 100644
index 0000000..ab2f52d
--- /dev/null
+++ b/bpel-test/src/test/resources/bpel/2.0/TestRestPutExtAct/test.properties
@@ -0,0 +1,23 @@
+#
+#    Licensed to the Apache Software Foundation (ASF) under one or more
+#    contributor license agreements.  See the NOTICE file distributed with
+#    this work for additional information regarding copyright ownership.
+#    The ASF licenses this file to You under the Apache License, Version 2.0
+#    (the "License"); you may not use this file except in compliance with
+#    the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#
+
+namespace=http://ode/bpel/unit-test.wsdl
+service=HelloService
+operation=hello
+request1=<message><TestPart>Hello</TestPart></message>
+response1=.*PUT Method Test Result.*
+