Author: objectiser
Date: 2010-10-12 12:49:52 -0400 (Tue, 12 Oct 2010)
New Revision: 1035
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw299PeerTestCase.java
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw299WSTestCase.java
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Goodbye.bpel
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Goodbye.wsdl
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Hello.bpel
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Hello.wsdl
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/deploy.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/build.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/messages/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/messages/hello_request1.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/messages/hello_response1.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Goodbye.bpel
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Goodbye.wsdl
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Hello.bpel
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Hello.wsdl
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/deploy.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/build.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/messages/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/messages/hello_request1.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/messages/hello_response1.xml
Modified:
branches/RiftSaw-2.1.x/integration-tests/build.xml
Log:
Added tests for RIFTSAW-299 - a peer to peer version and one that uses the web service
stack between the two BPEL processes.
Modified: branches/RiftSaw-2.1.x/integration-tests/build.xml
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/build.xml 2010-10-12 12:34:16 UTC (rev 1034)
+++ branches/RiftSaw-2.1.x/integration-tests/build.xml 2010-10-12 16:49:52 UTC (rev 1035)
@@ -191,6 +191,8 @@
<ant antfile="src/test/resources/testcases/RiftSaw_279/build.xml" />
<ant antfile="src/test/resources/testcases/RiftSaw_285/build.xml" />
<ant antfile="src/test/resources/testcases/RiftSaw_296/build.xml" />
+ <ant antfile="src/test/resources/testcases/RiftSaw_299_peer/build.xml"
/>
+ <ant antfile="src/test/resources/testcases/RiftSaw_299_ws/build.xml"
/>
<ant antfile="src/test/resources/tutorials/BluePrint1/build.xml" />
<ant antfile="src/test/resources/tutorials/BluePrint2/build.xml" />
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw299PeerTestCase.java
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw299PeerTestCase.java
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw299PeerTestCase.java 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,53 @@
+/*
+ * 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 RiftSaw_299
+ */
+public class RiftSaw299PeerTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "RiftSaw_299_peer";
+
+ public RiftSaw299PeerTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(RiftSaw299PeerTestCase.class,
+ TEST_NAME, "RiftSaw_299_peer-1.jar"));
+ }
+
+ public void testSendHello() throws Exception {
+ String result1=sendSOAPMessage("hello_request1.xml",
+ "http://localhost:8080/RiftSaw_299_helloWS");
+
+ result1 = processResult(result1);
+
+ assertMessageFromFile(result1, "hello_response1.xml");
+ }
+}
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw299WSTestCase.java
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw299WSTestCase.java
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw299WSTestCase.java 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,53 @@
+/*
+ * 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 RiftSaw_299
+ */
+public class RiftSaw299WSTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "RiftSaw_299_ws";
+
+ public RiftSaw299WSTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(RiftSaw299WSTestCase.class,
+ TEST_NAME, "RiftSaw_299_ws-1.jar"));
+ }
+
+ public void testSendHello() throws Exception {
+ String result1=sendSOAPMessage("hello_request1.xml",
+ "http://localhost:8080/RiftSaw_299_helloWS");
+
+ result1 = processResult(result1);
+
+ assertMessageFromFile(result1, "hello_response1.xml");
+ }
+}
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Goodbye.bpel
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Goodbye.bpel
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Goodbye.bpel 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,119 @@
+<!--
+ ~ 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="Goodbye"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns:intf2="http://www.jboss.org/bpel/examples/wsdl2"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="Hello.wsdl"
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <import location="Goodbye.wsdl"
+
namespace="http://www.jboss.org/bpel/examples/wsdl2"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="goodbyePartnerLink"
+ partnerLinkType="intf2:GoodbyePartnerLinkType"
+ myRole="me" />
+ <partnerLink name="helloCallbackPartnerLink"
+ partnerLinkType="intf:HelloCallbackPartnerLinkType"
+ partnerRole="you"
+ initializePartnerRole="yes"/>
+ </partnerLinks>
+
+ <correlationSets
xmlns:cor="http://example.com/supplyCorrelation">
+ <correlationSet name="Session"
+ properties="intf2:SessionID" />
+ </correlationSets>
+
+ <variables>
+ <variable name="myGoodbyeVar"
messageType="intf2:GoodbyeMessage"/>
+ <variable name="mesgVar" type="xsd:string"/>
+ <variable name="myHelloVar"
messageType="intf:HelloMessage"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="start"
+ partnerLink="goodbyePartnerLink"
+ portType="intf2:GoodbyePortType"
+ operation="goodbye"
+ variable="myGoodbyeVar"
+ createInstance="yes">
+ <correlations>
+ <correlation set="Session" initiate="yes" />
+ </correlations>
+ </receive>
+
+ <assign name="assignGoodbyeMesg">
+ <copy>
+ <from variable="myGoodbyeVar" part="Message"/>
+ <to variable="mesgVar"/>
+ </copy>
+ <copy>
+ <from>concat($mesgVar,' World')</from>
+ <to variable="myGoodbyeVar" part="Message"/>
+ </copy>
+ </assign>
+ <reply name="end"
+ partnerLink="goodbyePartnerLink"
+ portType="intf2:GoodbyePortType"
+ operation="goodbye"
+ variable="myGoodbyeVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </reply>
+
+ <assign name="assignGoodbyeMesg">
+ <copy>
+ <from variable="myGoodbyeVar" part="Message"/>
+ <to variable="mesgVar"/>
+ </copy>
+ <copy>
+ <from>concat($mesgVar,' Callback')</from>
+ <to variable="myHelloVar" part="Message"/>
+ </copy>
+ </assign>
+ <assign name="assignGoodbyeMesg2">
+ <copy>
+ <from variable="myGoodbyeVar" part="ID"/>
+ <to variable="myHelloVar" part="ID" />
+ </copy>
+ </assign>
+
+ <invoke name="ICallTheCallbackService"
+ partnerLink="helloCallbackPartnerLink"
+ portType="intf:HelloCallbackPortType"
+ operation="helloCallback"
+ inputVariable="myHelloVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </invoke>
+
+ </sequence>
+</process>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Goodbye.wsdl
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Goodbye.wsdl
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Goodbye.wsdl 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,95 @@
+<?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://www.jboss.org/bpel/examples/wsdl2"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:tns="http://www.jboss.org/bpel/examples/wsdl2"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns:types="http://www.jboss.org/bpel/examples/xsd"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
+
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+ <wsdl:types>
+ <xsd:schema
targetNamespace="http://www.jboss.org/bpel/examples/xsd">
+ <xsd:complexType name="SessionIdentity">
+ <xsd:sequence>
+ <xsd:element name="id" type="xsd:int" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="GoodbyeMessage">
+ <wsdl:part name="ID" type="types:SessionIdentity"/>
+ <wsdl:part name="Message" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="GoodbyePortType">
+ <wsdl:operation name="goodbye">
+ <wsdl:input message="tns:GoodbyeMessage"
name="GoodbyeIn"/>
+ <wsdl:output message="tns:GoodbyeMessage"
name="GoodbyeOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="GoodbyeSoapBinding"
type="tns:GoodbyePortType">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="goodbye">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl2"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl2"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="GoodbyeService">
+ <wsdl:port name="GoodbyePort"
binding="tns:GoodbyeSoapBinding">
+ <soap:address
location="http://localhost:8080/RiftSaw_299_goodbyeWS"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="GoodbyePartnerLinkType">
+ <plnk:role name="me" portType="tns:GoodbyePortType"/>
+ <plnk:role name="you" portType="tns:GoodbyePortType"/>
+ </plnk:partnerLinkType>
+
+ <vprop:property name="SessionID" type="xsd:int" />
+
+ <vprop:propertyAlias propertyName="tns:SessionID"
+ messageType="tns:GoodbyeMessage"
part="ID">
+ <vprop:query>id</vprop:query>
+ </vprop:propertyAlias>
+
+ <vprop:propertyAlias propertyName="tns:SessionID"
+ messageType="intf:HelloMessage" part="ID">
+ <vprop:query>id</vprop:query>
+ </vprop:propertyAlias>
+
+
+</wsdl:definitions>
+
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Hello.bpel
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Hello.bpel
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Hello.bpel 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,129 @@
+<!--
+ ~ 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="Hello"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns:intf2="http://www.jboss.org/bpel/examples/wsdl2"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="Hello.wsdl"
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <import location="Goodbye.wsdl"
+
namespace="http://www.jboss.org/bpel/examples/wsdl2"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="helloPartnerLink"
+ partnerLinkType="intf:HelloPartnerLinkType"
+ myRole="me" />
+ <partnerLink name="helloCallbackPartnerLink"
+ partnerLinkType="intf:HelloCallbackPartnerLinkType"
+ myRole="me" />
+ <partnerLink name="goodbyePartnerLink"
+ partnerLinkType="intf2:GoodbyePartnerLinkType"
+ partnerRole="you"
+ initializePartnerRole="yes"/>
+ </partnerLinks>
+
+ <correlationSets
xmlns:cor="http://example.com/supplyCorrelation">
+ <correlationSet name="Session"
+ properties="intf:SessionID" />
+ </correlationSets>
+
+ <variables>
+ <variable name="myHelloVar"
messageType="intf:HelloMessage"/>
+ <variable name="inVar"
messageType="intf2:GoodbyeMessage"/>
+ <variable name="outVar"
messageType="intf2:GoodbyeMessage"/>
+ <variable name="callbackVar"
messageType="intf:HelloMessage"/>
+ <variable name="mesgVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="start"
+ partnerLink="helloPartnerLink"
+ portType="intf:HelloPortType"
+ operation="hello"
+ variable="myHelloVar"
+ createInstance="yes">
+ <correlations>
+ <correlation set="Session" initiate="yes" />
+ </correlations>
+ </receive>
+
+ <assign name="assignHelloMesg">
+ <copy>
+ <from variable="myHelloVar" part="Message"/>
+ <to variable="inVar" part="Message" />
+ </copy>
+ <copy>
+ <from variable="myHelloVar" part="ID"/>
+ <to variable="inVar" part="ID" />
+ </copy>
+ </assign>
+
+ <invoke name="ICallTheExternalService"
+ partnerLink="goodbyePartnerLink"
+ portType="intf2:GoodbyePortType"
+ operation="goodbye"
+ inputVariable="inVar" outputVariable="outVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </invoke>
+
+ <receive
+ name="callback"
+ partnerLink="helloCallbackPartnerLink"
+ portType="intf:HelloCallbackPortType"
+ operation="helloCallback"
+ variable="callbackVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </receive>
+
+ <assign name="assignHelloMesg">
+ <copy>
+ <from variable="myHelloVar" part="Message"/>
+ <to variable="mesgVar"/>
+ </copy>
+ <copy>
+ <from>concat($mesgVar,' World')</from>
+ <to variable="myHelloVar" part="Message"/>
+ </copy>
+ </assign>
+
+ <reply name="end"
+ partnerLink="helloPartnerLink"
+ portType="intf:HelloPortType"
+ operation="hello"
+ variable="myHelloVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </reply>
+ </sequence>
+</process>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Hello.wsdl
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Hello.wsdl
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/Hello.wsdl 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,114 @@
+<?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://www.jboss.org/bpel/examples/wsdl"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:tns="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns:types="http://www.jboss.org/bpel/examples/xsd"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
+
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+ <wsdl:types>
+ <xsd:schema
targetNamespace="http://www.jboss.org/bpel/examples/xsd">
+ <xsd:complexType name="SessionIdentity">
+ <xsd:sequence>
+ <xsd:element name="id" type="xsd:int" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="HelloMessage">
+ <wsdl:part name="ID" type="types:SessionIdentity"/>
+ <wsdl:part name="Message" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloPortType">
+ <wsdl:operation name="hello">
+ <wsdl:input message="tns:HelloMessage" name="HelloIn"/>
+ <wsdl:output message="tns:HelloMessage"
name="HelloOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:portType name="HelloCallbackPortType">
+ <wsdl:operation name="helloCallback">
+ <wsdl:input message="tns:HelloMessage"
name="HelloCallbackIn"/>
+ </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://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="HelloCallbackSoapBinding"
type="tns:HelloCallbackPortType">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="helloCallback">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="HelloService">
+ <wsdl:port name="HelloPort"
binding="tns:HelloSoapBinding">
+ <soap:address
location="http://localhost:8080/RiftSaw_299_helloWS"/>
+ </wsdl:port>
+ <wsdl:port name="HelloCallbackPort"
binding="tns:HelloCallbackSoapBinding">
+ <soap:address
location="http://localhost:8080/RiftSaw_299_helloCallbackWS"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="HelloPartnerLinkType">
+ <plnk:role name="me" portType="tns:HelloPortType"/>
+ <plnk:role name="you" portType="tns:HelloPortType"/>
+ </plnk:partnerLinkType>
+
+ <plnk:partnerLinkType name="HelloCallbackPartnerLinkType">
+ <plnk:role name="me"
portType="tns:HelloCallbackPortType"/>
+ <plnk:role name="you"
portType="tns:HelloCallbackPortType"/>
+ </plnk:partnerLinkType>
+
+ <vprop:property name="SessionID" type="xsd:int" />
+
+ <vprop:propertyAlias propertyName="tns:SessionID"
+ messageType="tns:HelloMessage" part="ID">
+ <vprop:query>id</vprop:query>
+ </vprop:propertyAlias>
+
+
+</wsdl:definitions>
+
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/deploy.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/deploy.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/bpel/deploy.xml 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,46 @@
+<!--
+ ~ 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:bpl="http://www.jboss.org/bpel/examples"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns:intf2="http://www.jboss.org/bpel/examples/wsdl2">
+
+ <process name="bpl:Hello">
+ <active>true</active>
+ <provide partnerLink="helloPartnerLink">
+ <service name="intf:HelloService" port="HelloPort"/>
+ </provide>
+ <provide partnerLink="helloCallbackPartnerLink">
+ <service name="intf:HelloService"
port="HelloCallbackPort"/>
+ </provide>
+ <invoke partnerLink="goodbyePartnerLink" >
+ <service name="intf2:GoodbyeService" port="GoodbyePort" />
+ </invoke>
+ </process>
+
+ <process name="bpl:Goodbye">
+ <active>true</active>
+ <provide partnerLink="goodbyePartnerLink">
+ <service name="intf2:GoodbyeService" port="GoodbyePort"/>
+ </provide>
+ <invoke partnerLink="helloCallbackPartnerLink" >
+ <service name="intf:HelloService" port="HelloCallbackPort"
/>
+ </invoke>
+ </process>
+</deploy>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/build.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/build.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/build.xml 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,29 @@
+<project name="RiftSaw_299_peer" 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="sample.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}/${sample.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}/${sample.jar.name}" />
+ </target>
+</project>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/messages/hello_request1.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/messages/hello_request1.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/messages/hello_request1.xml 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,11 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:hello>
+ <ID>
+ <id>1</id>
+ </ID>
+ <Message>Hello</Message>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/messages/hello_response1.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/messages/hello_response1.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_peer/messages/hello_response1.xml 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,3 @@
+<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:...
xmlns:odens='http://www.jboss.org/bpel/examples/wsdl'><ID>
+ <id>1</id>
+ </ID><Message>Hello
World</Message></odens:helloResponse></env:Body></env:Envelope>
\ No newline at end of file
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Goodbye.bpel
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Goodbye.bpel
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Goodbye.bpel 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,119 @@
+<!--
+ ~ 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="Goodbye"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns:intf2="http://www.jboss.org/bpel/examples/wsdl2"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="Hello.wsdl"
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <import location="Goodbye.wsdl"
+
namespace="http://www.jboss.org/bpel/examples/wsdl2"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="goodbyePartnerLink"
+ partnerLinkType="intf2:GoodbyePartnerLinkType"
+ myRole="me" />
+ <partnerLink name="helloCallbackPartnerLink"
+ partnerLinkType="intf:HelloCallbackPartnerLinkType"
+ partnerRole="you"
+ initializePartnerRole="yes"/>
+ </partnerLinks>
+
+ <correlationSets
xmlns:cor="http://example.com/supplyCorrelation">
+ <correlationSet name="Session"
+ properties="intf2:SessionID" />
+ </correlationSets>
+
+ <variables>
+ <variable name="myGoodbyeVar"
messageType="intf2:GoodbyeMessage"/>
+ <variable name="mesgVar" type="xsd:string"/>
+ <variable name="myHelloVar"
messageType="intf:HelloMessage"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="start"
+ partnerLink="goodbyePartnerLink"
+ portType="intf2:GoodbyePortType"
+ operation="goodbye"
+ variable="myGoodbyeVar"
+ createInstance="yes">
+ <correlations>
+ <correlation set="Session" initiate="yes" />
+ </correlations>
+ </receive>
+
+ <assign name="assignGoodbyeMesg">
+ <copy>
+ <from variable="myGoodbyeVar" part="Message"/>
+ <to variable="mesgVar"/>
+ </copy>
+ <copy>
+ <from>concat($mesgVar,' World')</from>
+ <to variable="myGoodbyeVar" part="Message"/>
+ </copy>
+ </assign>
+ <reply name="end"
+ partnerLink="goodbyePartnerLink"
+ portType="intf2:GoodbyePortType"
+ operation="goodbye"
+ variable="myGoodbyeVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </reply>
+
+ <assign name="assignGoodbyeMesg">
+ <copy>
+ <from variable="myGoodbyeVar" part="Message"/>
+ <to variable="mesgVar"/>
+ </copy>
+ <copy>
+ <from>concat($mesgVar,' Callback')</from>
+ <to variable="myHelloVar" part="Message"/>
+ </copy>
+ </assign>
+ <assign name="assignGoodbyeMesg2">
+ <copy>
+ <from variable="myGoodbyeVar" part="ID"/>
+ <to variable="myHelloVar" part="ID" />
+ </copy>
+ </assign>
+
+ <invoke name="ICallTheCallbackService"
+ partnerLink="helloCallbackPartnerLink"
+ portType="intf:HelloCallbackPortType"
+ operation="helloCallback"
+ inputVariable="myHelloVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </invoke>
+
+ </sequence>
+</process>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Goodbye.wsdl
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Goodbye.wsdl
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Goodbye.wsdl 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,95 @@
+<?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://www.jboss.org/bpel/examples/wsdl2"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:tns="http://www.jboss.org/bpel/examples/wsdl2"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns:types="http://www.jboss.org/bpel/examples/xsd"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
+
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+ <wsdl:types>
+ <xsd:schema
targetNamespace="http://www.jboss.org/bpel/examples/xsd">
+ <xsd:complexType name="SessionIdentity">
+ <xsd:sequence>
+ <xsd:element name="id" type="xsd:int" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="GoodbyeMessage">
+ <wsdl:part name="ID" type="types:SessionIdentity"/>
+ <wsdl:part name="Message" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="GoodbyePortType">
+ <wsdl:operation name="goodbye">
+ <wsdl:input message="tns:GoodbyeMessage"
name="GoodbyeIn"/>
+ <wsdl:output message="tns:GoodbyeMessage"
name="GoodbyeOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="GoodbyeSoapBinding"
type="tns:GoodbyePortType">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="goodbye">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl2"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl2"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="GoodbyeService">
+ <wsdl:port name="GoodbyePort"
binding="tns:GoodbyeSoapBinding">
+ <soap:address
location="http://localhost:8080/RiftSaw_299_goodbyeWS"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="GoodbyePartnerLinkType">
+ <plnk:role name="me" portType="tns:GoodbyePortType"/>
+ <plnk:role name="you" portType="tns:GoodbyePortType"/>
+ </plnk:partnerLinkType>
+
+ <vprop:property name="SessionID" type="xsd:int" />
+
+ <vprop:propertyAlias propertyName="tns:SessionID"
+ messageType="tns:GoodbyeMessage"
part="ID">
+ <vprop:query>id</vprop:query>
+ </vprop:propertyAlias>
+
+ <vprop:propertyAlias propertyName="tns:SessionID"
+ messageType="intf:HelloMessage" part="ID">
+ <vprop:query>id</vprop:query>
+ </vprop:propertyAlias>
+
+
+</wsdl:definitions>
+
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Hello.bpel
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Hello.bpel
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Hello.bpel 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,129 @@
+<!--
+ ~ 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="Hello"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns:intf2="http://www.jboss.org/bpel/examples/wsdl2"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="Hello.wsdl"
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <import location="Goodbye.wsdl"
+
namespace="http://www.jboss.org/bpel/examples/wsdl2"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="helloPartnerLink"
+ partnerLinkType="intf:HelloPartnerLinkType"
+ myRole="me" />
+ <partnerLink name="helloCallbackPartnerLink"
+ partnerLinkType="intf:HelloCallbackPartnerLinkType"
+ myRole="me" />
+ <partnerLink name="goodbyePartnerLink"
+ partnerLinkType="intf2:GoodbyePartnerLinkType"
+ partnerRole="you"
+ initializePartnerRole="yes"/>
+ </partnerLinks>
+
+ <correlationSets
xmlns:cor="http://example.com/supplyCorrelation">
+ <correlationSet name="Session"
+ properties="intf:SessionID" />
+ </correlationSets>
+
+ <variables>
+ <variable name="myHelloVar"
messageType="intf:HelloMessage"/>
+ <variable name="inVar"
messageType="intf2:GoodbyeMessage"/>
+ <variable name="outVar"
messageType="intf2:GoodbyeMessage"/>
+ <variable name="callbackVar"
messageType="intf:HelloMessage"/>
+ <variable name="mesgVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="start"
+ partnerLink="helloPartnerLink"
+ portType="intf:HelloPortType"
+ operation="hello"
+ variable="myHelloVar"
+ createInstance="yes">
+ <correlations>
+ <correlation set="Session" initiate="yes" />
+ </correlations>
+ </receive>
+
+ <assign name="assignHelloMesg">
+ <copy>
+ <from variable="myHelloVar" part="Message"/>
+ <to variable="inVar" part="Message" />
+ </copy>
+ <copy>
+ <from variable="myHelloVar" part="ID"/>
+ <to variable="inVar" part="ID" />
+ </copy>
+ </assign>
+
+ <invoke name="ICallTheExternalService"
+ partnerLink="goodbyePartnerLink"
+ portType="intf2:GoodbyePortType"
+ operation="goodbye"
+ inputVariable="inVar" outputVariable="outVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </invoke>
+
+ <receive
+ name="callback"
+ partnerLink="helloCallbackPartnerLink"
+ portType="intf:HelloCallbackPortType"
+ operation="helloCallback"
+ variable="callbackVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </receive>
+
+ <assign name="assignHelloMesg">
+ <copy>
+ <from variable="myHelloVar" part="Message"/>
+ <to variable="mesgVar"/>
+ </copy>
+ <copy>
+ <from>concat($mesgVar,' World')</from>
+ <to variable="myHelloVar" part="Message"/>
+ </copy>
+ </assign>
+
+ <reply name="end"
+ partnerLink="helloPartnerLink"
+ portType="intf:HelloPortType"
+ operation="hello"
+ variable="myHelloVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </reply>
+ </sequence>
+</process>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Hello.wsdl
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Hello.wsdl
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/Hello.wsdl 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,114 @@
+<?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://www.jboss.org/bpel/examples/wsdl"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:tns="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns:types="http://www.jboss.org/bpel/examples/xsd"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
+
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+ <wsdl:types>
+ <xsd:schema
targetNamespace="http://www.jboss.org/bpel/examples/xsd">
+ <xsd:complexType name="SessionIdentity">
+ <xsd:sequence>
+ <xsd:element name="id" type="xsd:int" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="HelloMessage">
+ <wsdl:part name="ID" type="types:SessionIdentity"/>
+ <wsdl:part name="Message" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloPortType">
+ <wsdl:operation name="hello">
+ <wsdl:input message="tns:HelloMessage" name="HelloIn"/>
+ <wsdl:output message="tns:HelloMessage"
name="HelloOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:portType name="HelloCallbackPortType">
+ <wsdl:operation name="helloCallback">
+ <wsdl:input message="tns:HelloMessage"
name="HelloCallbackIn"/>
+ </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://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="HelloCallbackSoapBinding"
type="tns:HelloCallbackPortType">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="helloCallback">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="HelloService">
+ <wsdl:port name="HelloPort"
binding="tns:HelloSoapBinding">
+ <soap:address
location="http://localhost:8080/RiftSaw_299_helloWS"/>
+ </wsdl:port>
+ <wsdl:port name="HelloCallbackPort"
binding="tns:HelloCallbackSoapBinding">
+ <soap:address
location="http://localhost:8080/RiftSaw_299_helloCallbackWS"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="HelloPartnerLinkType">
+ <plnk:role name="me" portType="tns:HelloPortType"/>
+ <plnk:role name="you" portType="tns:HelloPortType"/>
+ </plnk:partnerLinkType>
+
+ <plnk:partnerLinkType name="HelloCallbackPartnerLinkType">
+ <plnk:role name="me"
portType="tns:HelloCallbackPortType"/>
+ <plnk:role name="you"
portType="tns:HelloCallbackPortType"/>
+ </plnk:partnerLinkType>
+
+ <vprop:property name="SessionID" type="xsd:int" />
+
+ <vprop:propertyAlias propertyName="tns:SessionID"
+ messageType="tns:HelloMessage" part="ID">
+ <vprop:query>id</vprop:query>
+ </vprop:propertyAlias>
+
+
+</wsdl:definitions>
+
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/deploy.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/deploy.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/bpel/deploy.xml 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,46 @@
+<!--
+ ~ 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:bpl="http://www.jboss.org/bpel/examples"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns:intf2="http://www.jboss.org/bpel/examples/wsdl2">
+
+ <process name="bpl:Hello">
+ <active>true</active>
+ <provide partnerLink="helloPartnerLink">
+ <service name="intf:HelloService" port="HelloPort"/>
+ </provide>
+ <provide partnerLink="helloCallbackPartnerLink">
+ <service name="intf:HelloService"
port="HelloCallbackPort"/>
+ </provide>
+ <invoke partnerLink="goodbyePartnerLink"
usePeer2Peer="false">
+ <service name="intf2:GoodbyeService" port="GoodbyePort" />
+ </invoke>
+ </process>
+
+ <process name="bpl:Goodbye">
+ <active>true</active>
+ <provide partnerLink="goodbyePartnerLink">
+ <service name="intf2:GoodbyeService" port="GoodbyePort"/>
+ </provide>
+ <invoke partnerLink="helloCallbackPartnerLink"
usePeer2Peer="false" >
+ <service name="intf:HelloService" port="HelloCallbackPort"
/>
+ </invoke>
+ </process>
+</deploy>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/build.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/build.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/build.xml 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,29 @@
+<project name="RiftSaw_299_ws" 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="sample.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}/${sample.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}/${sample.jar.name}" />
+ </target>
+</project>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/messages/hello_request1.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/messages/hello_request1.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/messages/hello_request1.xml 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,11 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:hello>
+ <ID>
+ <id>1</id>
+ </ID>
+ <Message>Hello</Message>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/messages/hello_response1.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/messages/hello_response1.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/testcases/RiftSaw_299_ws/messages/hello_response1.xml 2010-10-12
16:49:52 UTC (rev 1035)
@@ -0,0 +1,3 @@
+<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:...
xmlns:odens='http://www.jboss.org/bpel/examples/wsdl'><ID>
+ <id>1</id>
+ </ID><Message>Hello
World</Message></odens:helloResponse></env:Body></env:Envelope>
\ No newline at end of file