Author: jeff.yuchang
Date: 2010-06-18 09:33:39 -0400 (Fri, 18 Jun 2010)
New Revision: 758
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw209TestCase.java
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/Customer.xsd
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/Customer1.xsd
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/CustomerManagement.wsdl
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/bpel-deploy.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/sop_hw.bpel
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/sop_hwArtifacts.wsdl
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/build.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/messages/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/messages/hello_request1.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/messages/hello_response1.xml
Modified:
branches/RiftSaw-2.1.x/integration-tests/build.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTestSetup.java
Log:
* update the delay time to 20 sec for integration test.
* add integration test for activity recovery feature.
Modified: branches/RiftSaw-2.1.x/integration-tests/build.xml
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/build.xml 2010-06-18 07:52:57 UTC (rev 757)
+++ branches/RiftSaw-2.1.x/integration-tests/build.xml 2010-06-18 13:33:39 UTC (rev 758)
@@ -151,6 +151,7 @@
<ant antfile="src/test/resources/testcases/RiftSaw_154/build.xml" />
<ant antfile="src/test/resources/testcases/RiftSaw_163/build.xml" />
<ant antfile="src/test/resources/testcases/RiftSaw_70/build.xml" />
+ <ant antfile="src/test/resources/testcases/RiftSaw_209/build.xml" />
<ant antfile="src/test/resources/tutorials/BluePrint1/build.xml" />
<ant antfile="src/test/resources/tutorials/BluePrint2/build.xml" />
Modified:
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTestSetup.java
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTestSetup.java 2010-06-18
07:52:57 UTC (rev 757)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTestSetup.java 2010-06-18
13:33:39 UTC (rev 758)
@@ -133,7 +133,7 @@
// Temporary wait until able to sync detect deployed ok
try {
synchronized(this) {
- wait(10000);
+ wait(20* 1000);
}
} catch(Exception e) {
e.printStackTrace();
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw209TestCase.java
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw209TestCase.java
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw209TestCase.java 2010-06-18
13:33:39 UTC (rev 758)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.tests.testcases;
+
+import org.jboss.soa.bpel.tests.RiftSawTest;
+import org.jboss.soa.bpel.tests.RiftSawTestSetup;
+
+import junit.framework.Test;
+
+/**
+ * Test case for running the RiftSaw_10_doclit testcase.
+ */
+public class RiftSaw209TestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "RiftSaw_209";
+
+ public RiftSaw209TestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(RiftSaw209TestCase.class,
+ TEST_NAME, "RiftSaw_209-1.jar"));
+ }
+
+ public void testSendHello() throws Exception {
+ String result=sendSOAPMessage("hello_request1.xml",
+ "http://localhost:8080/RiftSaw_209WS");
+
+ // If testing against cxf, then result is presented slightly differently
+ if (result.indexOf("SOAP-ENV") != -1) {
+ result = result.replaceAll("SOAP-ENV", "env");
+ result = result.replaceAll(" xmlns=\"\"","");
+ result = result.replaceAll("\"","'");
+ result = result.replaceAll("<env:Header
/>","<env:Header></env:Header>");
+ }
+
+ assertMessageFromFile(result, "hello_response1.xml");
+ }
+}
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/Customer.xsd
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/Customer.xsd
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/Customer.xsd 2010-06-18
13:33:39 UTC (rev 758)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns="http://sop/hw"
+ targetNamespace="http://sop/hw"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ id="CustomerSchema">
+
+
+<xs:complexType name="CustomerType">
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1"
name="CustomerID" nillable="false" type="xs:string"/>
+ <xs:element minOccurs="1" maxOccurs="1"
name="Name" nillable="false" type="xs:string"/>
+ <xs:element minOccurs="1" maxOccurs="1"
name="Address" nillable="false" type="xs:string"/>
+ <xs:element minOccurs="1" maxOccurs="1"
name="City" nillable="false" type="xs:string"/>
+ <xs:element minOccurs="1" maxOccurs="1"
name="Country" nillable="false" type="xs:string"/>
+ <xs:element minOccurs="1" maxOccurs="1"
name="PostalCode" nillable="false" type="xs:string"/>
+ <xs:element minOccurs="1" maxOccurs="1"
name="Phone" nillable="false" type="xs:int"/>
+ <xs:element minOccurs="1" maxOccurs="1"
name="DOB" nillable="false" type="xs:date"/>
+ <xs:element minOccurs="1" maxOccurs="1"
name="Occupation" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="1" maxOccurs="1"
name="EmployerName" nillable="true" type="xs:string"/>
+ </xs:sequence>
+</xs:complexType>
+
+
+<xs:element name="Customer" type="CustomerType"
nillable="false"/>
+
+
+</xs:schema>
\ No newline at end of file
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/Customer1.xsd
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/Customer1.xsd
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/Customer1.xsd 2010-06-18
13:33:39 UTC (rev 758)
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<xs:schema attributeFormDefault="unqualified"
+ elementFormDefault="qualified" id="CustomerSchema"
+ targetNamespace="http://pg/demo/crm/customerschema"
+ xmlns="http://pg/demo/crm/customerschema"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:complexType name="CustomerType1">
+ <xs:sequence>
+ <xs:element maxOccurs="1" minOccurs="1"
name="CustomerID"
+ nillable="false" type="xs:string"/>
+ <xs:element maxOccurs="1" minOccurs="1"
name="Name"
+ nillable="false" type="xs:string"/>
+ <xs:element maxOccurs="1" minOccurs="1"
name="Address"
+ nillable="false" type="xs:string"/>
+ <xs:element maxOccurs="1" minOccurs="1"
name="City"
+ nillable="false" type="xs:string"/>
+ <xs:element maxOccurs="1" minOccurs="1"
name="Country"
+ nillable="false" type="xs:string"/>
+ <xs:element maxOccurs="1" minOccurs="1"
name="PostalCode"
+ nillable="false" type="xs:string"/>
+ <xs:element maxOccurs="1" minOccurs="1"
name="Phone"
+ nillable="false" type="xs:int"/>
+ <xs:element maxOccurs="1" minOccurs="1"
name="DOB"
+ nillable="false" type="xs:date"/>
+ <xs:element maxOccurs="1" minOccurs="1"
name="Occupation"
+ nillable="true" type="xs:string"/>
+ <xs:element maxOccurs="1" minOccurs="1"
name="EmployerName"
+ nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="Customer1" nillable="false"
type="CustomerType1"/>
+</xs:schema>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/CustomerManagement.wsdl
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/CustomerManagement.wsdl
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/CustomerManagement.wsdl 2010-06-18
13:33:39 UTC (rev 758)
@@ -0,0 +1,51 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<s0:definitions name="CustomerManagementDefinitions"
targetNamespace="http://pg.demo.crm.CustomerManagement" xmlns=""
xmlns:s0="http://schemas.xmlsoap.org/wsdl/"
xmlns:s1="http://pg/demo/crm/customerservice/schema"
xmlns:s2="http://pg.demo.crm.CustomerManagement"
xmlns:s3="http://schemas.xmlsoap.org/wsdl/soap/">
+ <s0:types>
+ <xs:schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://pg/demo/crm/customerservice/schema"
xmlns:s0="http://pg.demo.crm.CustomerManagement"
xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:serviceschema="http://pg/demo/crm/customerservice/schema"
xmlns:ss="http://pg/demo/crm/customerschema"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:import namespace="http://pg/demo/crm/customerschema"
schemaLocation="Customer1.xsd"/>
+ <xs:element name="getCustomerInfo">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Customer_ID" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="getCustomerInfoResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="CustomerInfo"
type="ss:CustomerType1"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:schema>
+ </s0:types>
+ <s0:message name="getCustomerInfo">
+ <s0:part element="s1:getCustomerInfo" name="parameters"/>
+ </s0:message>
+ <s0:message name="getCustomerInfoResponse">
+ <s0:part element="s1:getCustomerInfoResponse"
name="parameters"/>
+ </s0:message>
+ <s0:portType name="CustomerManagementPortType">
+ <s0:operation name="getCustomerInfo"
parameterOrder="parameters">
+ <s0:input message="s2:getCustomerInfo"/>
+ <s0:output message="s2:getCustomerInfoResponse"/>
+ </s0:operation>
+ </s0:portType>
+ <s0:binding name="CustomerManagementSoapBinding"
type="s2:CustomerManagementPortType">
+ <s3:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <s0:operation name="getCustomerInfo">
+ <s3:operation style="document"/>
+ <s0:input>
+ <s3:body parts="parameters" use="literal"/>
+ </s0:input>
+ <s0:output>
+ <s3:body parts="parameters" use="literal"/>
+ </s0:output>
+ </s0:operation>
+ </s0:binding>
+ <s0:service name="CustomerManagement">
+ <s0:port binding="s2:CustomerManagementSoapBinding"
name="CustomerManagementSoapPort">
+ <s3:address
location="http://localhost:7001/Customer/2_0/CustomerManagement"/>
+ </s0:port>
+ </s0:service>
+</s0:definitions>
\ No newline at end of file
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/bpel-deploy.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/bpel-deploy.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/bpel-deploy.xml 2010-06-18
13:33:39 UTC (rev 758)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:hw="http://sop/hw"
xmlns:pg.demo.crm.CustomerManagement="http://pg.demo.crm.CustomerManagement">
+ <process name="hw:sop_hw">
+ <active>true</active>
+ <retired>false</retired>
+ <process-events generate="all"/>
+ <provide partnerLink="client">
+ <service name="hw:sop_hw" port="sop_hwPort"/>
+ </provide>
+ <invoke partnerLink="PL_GetCustomer">
+ <service name="pg.demo.crm.CustomerManagement:CustomerManagement"
port="CustomerManagementSoapPort"/>
+ </invoke>
+ </process>
+</deploy>
\ No newline at end of file
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/sop_hw.bpel
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/sop_hw.bpel
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/sop_hw.bpel 2010-06-18
13:33:39 UTC (rev 758)
@@ -0,0 +1,204 @@
+<!-- sop_hw BPEL Process [Generated by the Eclipse BPEL Designer] -->
+<bpel:process name="sop_hw"
+ targetNamespace="http://sop/hw"
+ suppressJoinFailure="yes"
+ xmlns:tns="http://sop/hw"
+
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable...
+
xmlns:ns1="http://www.w3.org/2001/XMLSchema"
xmlns:ns2="http://pg/demo/crm/customerschema"
xmlns:ns3="http://pg.demo.crm.CustomerManagement"
xmlns:ns="http://pg/demo/crm/customerservice/schema">
+
+<!--
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+
+ -->
+ <!-- Import the client WSDL -->
+ <bpel:import namespace="http://pg.demo.crm.CustomerManagement"
location="CustomerManagement.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"></bpel:impo...
+ <bpel:import location="sop_hwArtifacts.wsdl"
namespace="http://sop/hw"
+
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.
-->
+ <bpel:partnerLink name="client"
+ partnerLinkType="tns:sop_hw"
+ myRole="sop_hwProvider"
+ />
+
+ <bpel:partnerLink name="PL_GetCustomer"
partnerLinkType="tns:GetCustomer"
partnerRole="getcustomer"></bpel:partnerLink>
+ </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:sop_hwRequestMessage"/>
+
+ <!--
+ Reference to the message that will be returned to the requester
+ -->
+ <bpel:variable name="output"
+ messageType="tns:sop_hwResponseMessage"/>
+ <bpel:variable name="temp"
type="ns1:string"></bpel:variable>
+ <bpel:variable name="gc_input"
messageType="ns3:getCustomerInfo"></bpel:variable>
+ <bpel:variable name="gc_output"
messageType="ns3:getCustomerInfoResponse"></bpel:variable>
+
+
+ <bpel:variable name="l_custfullname"
type="ns1:string"></bpel:variable>
+ <bpel:variable name="temp2"
type="ns1:string"></bpel:variable>
+ </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 requester.
+ Note: This maps to operation defined in sop_hw.wsdl
+ -->
+
+
+
+ <!-- Generate reply to synchronous request -->
+
+ <bpel:receive name="receiveInput" partnerLink="client"
portType="tns:sop_hw" operation="process" variable="input"
createInstance="yes" />
+ <bpel:sequence name="Sequence">
+ <bpel:assign validate="no" name="AssignName">
+ <bpel:copy>
+ <bpel:from><bpel:literal><tns:sop_hwResponse
xmlns:tns="http://sop/hw"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:result></tns:result>
+</tns:sop_hwResponse>
+</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/tns:Name]]></bpel:query>
+ </bpel:from>
+ <bpel:to variable="temp"></bpel:to>
+
+ </bpel:copy>
+ <bpel:copy>
+ <bpel:from>
+
+ <![CDATA[concat($temp, ' Hello sujatha !!')]]>
+ </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:assign validate="no" name="init_gc_input">
+ <bpel:copy>
+
<bpel:from><bpel:literal><serviceschema:getCustomerInfo
xmlns:p="http://pg/demo/crm/customerschema"
xmlns:serviceschema="http://pg/demo/crm/customerservice/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <serviceschema:Customer_ID></serviceschema:Customer_ID>
+</serviceschema:getCustomerInfo>
+</bpel:literal></bpel:from>
+ <bpel:to variable="gc_input"
part="parameters"></bpel:to>
+ </bpel:copy>
+
+ <bpel:copy>
+ <bpel:from variable="temp"></bpel:from>
+ <bpel:to part="parameters"
variable="gc_input">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[ns:Customer_ID]]></bpel:query>
+ </bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ <bpel:invoke name="Invoke"
partnerLink="PL_GetCustomer"
+ operation="getCustomerInfo"
+ portType="ns3:CustomerManagementPortType"
+ inputVariable="gc_input"
+ outputVariable="gc_output"
+ >
+
+ <ext:failureHandling
xmlns:ext="http://ode.apache.org/activityRecovery">
+ <ext:faultOnFailure>true</ext:faultOnFailure>
+ <ext:retryFor>0</ext:retryFor>
+ <ext:retryDelay>30</ext:retryDelay>
+ </ext:failureHandling>
+
+ <bpel:catchAll><bpel:sequence><bpel:reply
name="ReplyOutput" partnerLink="client"
portType="tns:sop_hw" operation="process" variable="output"
/></bpel:sequence></bpel:catchAll></bpel:invoke>
+ <bpel:assign validate="no" name="getFullName">
+ <bpel:copy>
+ <bpel:from><bpel:literal><ns2:sop_hwResponse
xmlns:ns2="http://sop/hw"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <ns2:result></ns2:result>
+</ns2:sop_hwResponse>
+</bpel:literal></bpel:from>
+ <bpel:to variable="output"
part="payload"></bpel:to>
+ </bpel:copy>
+ <bpel:copy>
+ <bpel:from part="parameters"
variable="gc_output">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[ns:CustomerInfo/ns2:Name]]></bpel:query>
+ </bpel:from>
+ <bpel:to variable="l_custfullname"></bpel:to>
+ </bpel:copy>
+ <bpel:copy>
+ <bpel:from
variable="l_custfullname"></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:if name="CheckNameSujatha">
+ <bpel:condition><![CDATA[$l_custfullname='Sujatha
Kuppuraju' ]]></bpel:condition>
+ <bpel:assign validate="no" name="Assign">
+ <bpel:copy>
+ <bpel:from><bpel:literal><ns2:sop_hwResponse
xmlns:ns2="http://sop/hw"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <ns2:result></ns2:result>
+</ns2:sop_hwResponse>
+</bpel:literal></bpel:from>
+ <bpel:to variable="output"
part="payload"></bpel:to>
+ </bpel:copy>
+ <bpel:copy>
+ <bpel:from>
+ <bpel:literal xml:space="preserve">YOU ARE
SUJATHA KUPPURAJU</bpel:literal>
+ </bpel:from>
+ <bpel:to variable="temp">
+ </bpel:to>
+ </bpel:copy>
+
+ <bpel:copy><bpel:from
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
+ <![CDATA[concat($temp, ' U R Office in ',
$gc_output.parameters/ns:CustomerInfo/ns2:Address)]]>
+ </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:else>
+ <bpel:assign validate="no" name="Assign1">
+ <bpel:copy>
+ <bpel:from>
+ <bpel:literal xml:space="preserve">YOU
ARE NOT SUJATHA</bpel:literal>
+ </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:else>
+ </bpel:if>
+ </bpel:sequence>
+
+ <bpel:reply name="replyOutput"
+ partnerLink="client"
+ portType="tns:sop_hw"
+ operation="process"
+ variable="output"
+ />
+ </bpel:sequence>
+</bpel:process>
+
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/sop_hwArtifacts.wsdl
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/sop_hwArtifacts.wsdl
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/bpel/sop_hwArtifacts.wsdl 2010-06-18
13:33:39 UTC (rev 758)
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"
standalone="no"?>
+<definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://sop/hw"
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
xmlns:wsdl="http://pg.demo.crm.CustomerManagement" name="sop_hw"
targetNamespace="http://sop/hw">
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ TYPE DEFINITION - List of types participating in this BPEL process
+ The BPEL Designer will generate default request and response types
+ but you can define or import any XML Schema type and use them as part
+ of the message types.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+ <plnk:partnerLinkType name="GetCustomer">
+ <plnk:role name="getcustomer"
portType="wsdl:CustomerManagementPortType"/>
+ </plnk:partnerLinkType>
+ <import location="CustomerManagement.wsdl"
namespace="http://pg.demo.crm.CustomerManagement"/>
+ <types>
+ <schema
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ns2="http://sop/hw" attributeFormDefault="unqualified"
elementFormDefault="qualified" targetNamespace="http://sop/hw">
+
+ <include schemaLocation="Customer.xsd">
+ </include>
+
+ <element name="sop_hwRequest">
+ <complexType>
+ <sequence>
+ <element name="input"
type="ns2:CustomerType"/>
+ </sequence>
+ </complexType>
+ </element>
+
+ <element name="sop_hwResponse">
+ <complexType>
+ <sequence>
+ <element name="result" type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </types>
+
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ MESSAGE TYPE DEFINITION - Definition of the message types used as
+ part of the port type defintions
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+ <message name="sop_hwRequestMessage">
+ <part element="tns:sop_hwRequest" name="payload"/>
+ </message>
+ <message name="sop_hwResponseMessage">
+ <part element="tns:sop_hwResponse" name="payload"/>
+ </message>
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ PORT TYPE DEFINITION - A port type groups a set of operations into
+ a logical service unit.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+
+ <!-- portType implemented by the sop_hw BPEL process -->
+ <portType name="sop_hw">
+ <operation name="process">
+ <input message="tns:sop_hwRequestMessage"/>
+ <output message="tns:sop_hwResponseMessage"/>
+ </operation>
+ </portType>
+
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ PARTNER LINK TYPE DEFINITION
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+ <plnk:partnerLinkType name="sop_hw">
+ <plnk:role name="sop_hwProvider"
portType="tns:sop_hw"/>
+ </plnk:partnerLinkType>
+
+ <binding name="sop_hwBinding" type="tns:sop_hw">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="process">
+ <soap:operation soapAction="http://sop/hw/process"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="sop_hw">
+ <port binding="tns:sop_hwBinding" name="sop_hwPort">
+ <soap:address location="http://localhost:8080/RiftSaw_209WS"/>
+ </port>
+ </service>
+</definitions>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/build.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/build.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/build.xml 2010-06-18
13:33:39 UTC (rev 758)
@@ -0,0 +1,30 @@
+<project name="RiftSaw_209" default="deploy"
basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <property name="version" value="1" />
+
+ <property name="deploy.dir" value="${basedir}/target/tests"/>
+ <property name="test.dir"
value="${basedir}/src/test/resources/testcases/${ant.project.name}" />
+
+ <property name="jar.name"
value="${ant.project.name}-${version}.jar" />
+
+ <target name="deploy">
+ <echo>Deploy ${ant.project.name}</echo>
+ <mkdir dir="${deploy.dir}/${ant.project.name}" />
+ <jar basedir="${test.dir}/bpel"
destfile="${deploy.dir}/${ant.project.name}/${jar.name}" />
+
+ <copy todir="${deploy.dir}/${ant.project.name}">
+ <fileset dir="${test.dir}/messages"/>
+ </copy>
+ </target>
+
+ <target name="undeploy">
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${jar.name}" />
+ </target>
+
+</project>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/messages/hello_request1.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/messages/hello_request1.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/messages/hello_request1.xml 2010-06-18
13:33:39 UTC (rev 758)
@@ -0,0 +1,19 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:hw="http://sop/hw">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <hw:sop_hwRequest>
+ <hw:input>
+ <hw:CustomerID>1</hw:CustomerID>
+ <hw:Name>test</hw:Name>
+ <hw:Address>test address</hw:Address>
+ <hw:City>city</hw:City>
+ <hw:Country>country</hw:Country>
+ <hw:PostalCode>2</hw:PostalCode>
+ <hw:Phone>7</hw:Phone>
+ <hw:DOB>12</hw:DOB>
+ <hw:Occupation>23</hw:Occupation>
+ <hw:EmployerName>65</hw:EmployerName>
+ </hw:input>
+ </hw:sop_hwRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/messages/hello_response1.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/messages/hello_response1.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_209/messages/hello_response1.xml 2010-06-18
13:33:39 UTC (rev 758)
@@ -0,0 +1,3 @@
+<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:...
xmlns='http://sop/hw'>
+ <tns:result xmlns:tns='http://sop/hw'>test Hello sujatha
!!</tns:result>
+</sop_hwResponse></env:Body></env:Envelope>