Author: mriou
Date: Wed May 14 14:56:56 2008
New Revision: 656446
URL: http://svn.apache.org/viewvc?rev=656446&view=rev
Log:
More tests for basic process-to-process scenarios. Request-only P2P with a
callback is broken right now.
Added:
ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/TestSimpleScenario.java
ode/trunk/axis2-war/src/test/resources/TestDynPartner/
ode/trunk/axis2-war/src/test/resources/TestDynPartner/DynPartnerMain.bpel
ode/trunk/axis2-war/src/test/resources/TestDynPartner/DynPartnerResponder.bpel
ode/trunk/axis2-war/src/test/resources/TestDynPartner/Main.wsdl
ode/trunk/axis2-war/src/test/resources/TestDynPartner/Responder.wsdl
ode/trunk/axis2-war/src/test/resources/TestDynPartner/deploy.xml
ode/trunk/axis2-war/src/test/resources/TestDynPartner/testRequest.soap
ode/trunk/axis2-war/src/test/resources/TestMagicSession/
ode/trunk/axis2-war/src/test/resources/TestMagicSession/Main.bpel
ode/trunk/axis2-war/src/test/resources/TestMagicSession/Main.wsdl
ode/trunk/axis2-war/src/test/resources/TestMagicSession/Responder.bpel
ode/trunk/axis2-war/src/test/resources/TestMagicSession/deploy.xml
ode/trunk/axis2-war/src/test/resources/TestMagicSession/testRequest.soap
Added:
ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/TestSimpleScenario.java
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/TestSimpleScenario.java?rev=656446&view=auto
==============================================================================
---
ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/TestSimpleScenario.java
(added)
+++
ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/TestSimpleScenario.java
Wed May 14 14:56:56 2008
@@ -0,0 +1,40 @@
+package org.apache.ode.axis2;
+
+public class TestSimpleScenario extends Axis2TestBase {
+
+ protected void setUp() throws Exception {
+ start();
+ }
+
+ public void testDynPartner() throws Exception {
+ String bundleName = "TestDynPartner";
+ if(!server._ode.getProcessStore().getPackages().contains(bundleName)){
+ server.deployProcess(bundleName);
+ }
+ try {
+ String response =
server.sendRequestFile("http://localhost:8080/ode/processes/DynMainService",
+ bundleName, "testRequest.soap");
+
+ assertTrue(response.indexOf("OK") > 0);
+ } finally {
+ server.undeployProcess(bundleName);
+ }
+
+ }
+
+ public void testMagicSession() throws Exception {
+ String bundleName = "TestMagicSession";
+ if(!server._ode.getProcessStore().getPackages().contains(bundleName)){
+ server.deployProcess(bundleName);
+ }
+ try {
+ String response =
server.sendRequestFile("http://localhost:8080/ode/processes/MSMainExecuteService",
+ bundleName, "testRequest.soap");
+
+ assertTrue(response.indexOf("OK") > 0);
+ } finally {
+ server.undeployProcess(bundleName);
+ }
+
+ }
+}
Added: ode/trunk/axis2-war/src/test/resources/TestDynPartner/DynPartnerMain.bpel
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestDynPartner/DynPartnerMain.bpel?rev=656446&view=auto
==============================================================================
--- ode/trunk/axis2-war/src/test/resources/TestDynPartner/DynPartnerMain.bpel
(added)
+++ ode/trunk/axis2-war/src/test/resources/TestDynPartner/DynPartnerMain.bpel
Wed May 14 14:56:56 2008
@@ -0,0 +1,138 @@
+<?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.
+ -->
+
+<process name="DynPartnerMain"
+ targetNamespace="http://ode/bpel/unit-test"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref"
+ xmlns:tns="http://ode/bpel/unit-test"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:test="http://ode/bpel/unit-test.wsdl"
+ xmlns:resp="http://ode/bpel/responder.wsdl"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="Main.wsdl" namespace="http://ode/bpel/unit-test.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="initiatorPartnerLink"
partnerLinkType="test:InitiatorPartnerLinkType"
+ myRole="me"/>
+ <partnerLink name="responderPartnerLink"
partnerLinkType="resp:ResponderPartnerLinkType"
+ partnerRole="responder" initializePartnerRole="yes"/>
+ </partnerLinks>
+
+ <variables>
+ <variable name="dummy" messageType="resp:DummyMessage"/>
+ <variable name="dummy2" messageType="resp:Dummy2Message"/>
+ <variable name="partnerEndpoint" messageType="resp:EndpointMessage"/>
+ <variable name="partnerAck" messageType="resp:AcknowledgementMessage"/>
+ <variable name="result" messageType="test:ResultMessage"/>
+ <!-- <variable name="wsaVar" messageType="resp:WSAEndpointMessage"/> -->
+ </variables>
+
+ <correlationSets>
+ <correlationSet name="dummyCorr" properties="test:dummyProp" />
+ </correlationSets>
+
+ <sequence>
+ <receive name="start" partnerLink="initiatorPartnerLink"
+ portType="test:DynMainPortType" operation="execute"
createInstance="yes" variable="dummy"/>
+
+ <invoke name="get-endpoint" partnerLink="responderPartnerLink"
portType="resp:DynResponderPortType"
+ operation="getDynamicEndpoint" inputVariable="dummy"
outputVariable="partnerEndpoint">
+ <correlations>
+ <correlation set="dummyCorr" initiate="yes" pattern="request"/>
+ </correlations>
+ </invoke>
+
+ <assign>
+ <copy>
+ <!-- Partner link assignment using the value returned by previous
invoke -->
+ <from>$partnerEndpoint.payload</from>
+ <to partnerLink="responderPartnerLink"/>
+ </copy>
+ <copy>
+ <!-- Just needed for correlation -->
+ <from>$dummy.payload</from>
+ <to variable="dummy2" part="payload"/>
+ </copy>
+ </assign>
+
+ <!-- Invoking the partner link service endpoint that has just been
assigned -->
+ <invoke name="dynamic-invoke" partnerLink="responderPartnerLink"
portType="resp:DynResponderPortType"
+ operation="acknowledge" inputVariable="dummy2"
outputVariable="partnerAck">
+ <correlations>
+ <correlation set="dummyCorr" initiate="no" pattern="request"/>
+ </correlations>
+ </invoke>
+
+ <!-- Playing around with epr conversion (url to wsa) -->
+ <assign>
+ <copy>
+ <from>
+
<literal>http://localhost:8080/ode/processes/DynResponderService</literal>
+ </from>
+ <to partnerLink="responderPartnerLink"/>
+ </copy>
+ <copy>
+ <from>
+ <literal>
+ <sref:service-ref>
+ <soap:address
location="http://localhost:8080/ode/processes/DynResponderService"/>
+ </sref:service-ref>
+ </literal>
+ </from>
+ <to partnerLink="responderPartnerLink"/>
+ </copy>
+<!--
+ <copy>
+ <from partnerLink="responderPartnerLink"
endpointReference="partnerRole"/>
+ <to variable="wsaVar" part="payload"/>
+ </copy>
+ <copy>
+ <from variable="wsaVar" part="payload"/>
+ <to partnerLink="responderPartnerLink"/>
+ </copy>
+-->
+ </assign>
+
+ <!-- Invoking the partner link service endpoint that has just been
explicitly assigned -->
+ <invoke name="dynamic-invoke" partnerLink="responderPartnerLink"
portType="resp:DynResponderPortType"
+ operation="acknowledge" inputVariable="dummy2"
outputVariable="partnerAck">
+ <correlations>
+ <correlation set="dummyCorr" initiate="no" pattern="request"/>
+ </correlations>
+ </invoke>
+
+ <assign>
+ <copy>
+ <from variable="partnerAck" part="payload"/>
+ <to variable="result" part="ack"/>
+ </copy>
+ </assign>
+
+ <reply name="end" partnerLink="initiatorPartnerLink"
+ portType="test:DynMainPortType" operation="execute"
variable="result">
+ </reply>
+
+ </sequence>
+</process>
\ No newline at end of file
Added:
ode/trunk/axis2-war/src/test/resources/TestDynPartner/DynPartnerResponder.bpel
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestDynPartner/DynPartnerResponder.bpel?rev=656446&view=auto
==============================================================================
---
ode/trunk/axis2-war/src/test/resources/TestDynPartner/DynPartnerResponder.bpel
(added)
+++
ode/trunk/axis2-war/src/test/resources/TestDynPartner/DynPartnerResponder.bpel
Wed May 14 14:56:56 2008
@@ -0,0 +1,88 @@
+<?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.
+ -->
+
+<process name="DynPartnerResponder"
+ targetNamespace="http://ode/bpel/responder"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:tns="http://ode/bpel/responder"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:resp="http://ode/bpel/responder.wsdl">
+
+ <import location="Responder.wsdl" namespace="http://ode/bpel/responder.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="mainPartnerLink"
partnerLinkType="resp:ResponderPartnerLinkType"
+ myRole="responder"/>
+ </partnerLinks>
+
+ <variables>
+ <variable name="dummy" messageType="resp:DummyMessage"/>
+ <variable name="dummy2" messageType="resp:Dummy2Message"/>
+ <variable name="myEndpoint" messageType="resp:EndpointMessage"/>
+ <variable name="ack" messageType="resp:AcknowledgementMessage"/>
+ </variables>
+
+ <correlationSets>
+ <correlationSet name="dummyCorr" properties="resp:dummyProp" />
+ </correlationSets>
+
+ <sequence>
+ <receive name="start" partnerLink="mainPartnerLink" variable="dummy"
+ portType="resp:DynResponderPortType"
operation="getDynamicEndpoint" createInstance="yes">
+ <correlations>
+ <correlation set="dummyCorr" initiate="yes"/>
+ </correlations>
+ </receive>
+ <assign>
+ <copy>
+ <from partnerLink="mainPartnerLink" endpointReference="myRole"/>
+ <to>$myEndpoint.payload</to>
+ </copy>
+ </assign>
+ <reply name="reply-endpoint" partnerLink="mainPartnerLink"
+ portType="resp:DynResponderPortType" operation="getDynamicEndpoint"
variable="myEndpoint"/>
+
+ <receive name="dyn-invoke" partnerLink="mainPartnerLink" variable="dummy2"
+ portType="resp:DynResponderPortType" operation="acknowledge">
+ <correlations>
+ <correlation set="dummyCorr" initiate="no"/>
+ </correlations>
+ </receive>
+ <assign>
+ <copy>
+ <from>'OK'</from>
+ <to variable="ack" part="payload"/>
+ </copy>
+ </assign>
+ <reply name="reply-ack" partnerLink="mainPartnerLink"
+ portType="resp:DynResponderPortType" operation="acknowledge"
variable="ack"/>
+
+ <receive name="dyn-invoke2" partnerLink="mainPartnerLink" variable="dummy2"
+ portType="resp:DynResponderPortType" operation="acknowledge">
+ <correlations>
+ <correlation set="dummyCorr" initiate="no"/>
+ </correlations>
+ </receive>
+ <reply name="reply-ack" partnerLink="mainPartnerLink"
+ portType="resp:DynResponderPortType" operation="acknowledge"
variable="ack"/>
+
+ </sequence>
+</process>
\ No newline at end of file
Added: ode/trunk/axis2-war/src/test/resources/TestDynPartner/Main.wsdl
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestDynPartner/Main.wsdl?rev=656446&view=auto
==============================================================================
--- ode/trunk/axis2-war/src/test/resources/TestDynPartner/Main.wsdl (added)
+++ ode/trunk/axis2-war/src/test/resources/TestDynPartner/Main.wsdl Wed May 14
14:56:56 2008
@@ -0,0 +1,80 @@
+<?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:resp="http://ode/bpel/responder.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:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+ xmlns:prop="http://docs.oasis-open.org/wsbpel/2.0/varprop">
+
+ <import namespace="http://ode/bpel/responder.wsdl"
location="Responder.wsdl"/>
+
+ <wsdl:types>
+ <xsd:schema targetNamespace="http://ode/bpel/unit-test.wsdl">
+ <xsd:element name="result" type="xsd:string"/>
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="ResultMessage">
+ <wsdl:part name="ack" element="tns:result"/>
+ </wsdl:message>
+
+ <wsdl:portType name="DynMainPortType">
+ <wsdl:operation name="execute">
+ <wsdl:input message="resp:DummyMessage" name="dummy"/>
+ <wsdl:output message="tns:ResultMessage" name="result"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="DynMainBinding" type="tns:DynMainPortType">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="execute">
+ <soap:operation soapAction="" style="document"/>
+ <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="DynMainService">
+ <wsdl:port name="DynMainPort" binding="tns:DynMainBinding">
+ <soap:address
location="http://localhost:8080/ode/processes/DynMainService"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="InitiatorPartnerLinkType">
+ <plnk:role name="me" portType="tns:DynMainPortType"/>
+ </plnk:partnerLinkType>
+
+ <prop:property name="dummyProp" type="xsd:string"/>
+ <prop:propertyAlias propertyName="tns:dummyProp"
messageType="resp:DummyMessage"
+ part="payload"/>
+ <prop:propertyAlias propertyName="tns:dummyProp"
messageType="resp:Dummy2Message"
+ part="payload"/>
+
+</wsdl:definitions>
\ No newline at end of file
Added: ode/trunk/axis2-war/src/test/resources/TestDynPartner/Responder.wsdl
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestDynPartner/Responder.wsdl?rev=656446&view=auto
==============================================================================
--- ode/trunk/axis2-war/src/test/resources/TestDynPartner/Responder.wsdl (added)
+++ ode/trunk/axis2-war/src/test/resources/TestDynPartner/Responder.wsdl Wed
May 14 14:56:56 2008
@@ -0,0 +1,112 @@
+<?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/responder.wsdl"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://ode/bpel/responder.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:wsa="http://www.w3.org/2005/08/addressing"
+ xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+ xmlns:prop="http://docs.oasis-open.org/wsbpel/2.0/varprop">
+
+ <wsdl:types>
+ <xsd:schema targetNamespace="http://ode/bpel/responder.wsdl">
+ <xsd:element name="dummy" type="xsd:string"/>
+ <xsd:element name="dummy2" type="xsd:string"/>
+ <xsd:element name="acknowledgement" type="xsd:string"/>
+ <xsd:element name="url" type="xsd:string"/>
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="DummyMessage">
+ <wsdl:part name="payload" element="tns:dummy"/>
+ </wsdl:message>
+
+ <wsdl:message name="Dummy2Message">
+ <wsdl:part name="payload" element="tns:dummy2"/>
+ </wsdl:message>
+
+ <wsdl:message name="EndpointMessage">
+ <wsdl:part name="payload" element="tns:url"/>
+ </wsdl:message>
+
+<!--
+ <wsdl:message name="WSAEndpointMessage">
+ <wsdl:part name="payload" element="wsa:EndpointReference"/>
+ </wsdl:message>
+-->
+
+ <wsdl:message name="AcknowledgementMessage">
+ <wsdl:part name="payload" element="tns:acknowledgement"/>
+ </wsdl:message>
+
+ <wsdl:portType name="DynResponderPortType">
+ <wsdl:operation name="getDynamicEndpoint">
+ <wsdl:input message="tns:DummyMessage" name="dummy"/>
+ <wsdl:output message="tns:EndpointMessage" name="endpoint"/>
+ </wsdl:operation>
+ <wsdl:operation name="acknowledge">
+ <wsdl:input message="tns:Dummy2Message" name="dummy2"/>
+ <wsdl:output message="tns:AcknowledgementMessage" name="ack"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="DynResponderBinding" type="tns:DynResponderPortType">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="getDynamicEndpoint">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input>
+ <soap:body namespace="http://ode/bpel/responder.wsdl" use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body namespace="http://ode/bpel/responder.wsdl" use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="acknowledge">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input>
+ <soap:body namespace="http://ode/bpel/responder.wsdl" use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body namespace="http://ode/bpel/responder.wsdl" use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="DynResponderService">
+ <wsdl:port name="DynResponderPort" binding="tns:DynResponderBinding">
+ <soap:address
location="http://localhost:8080/ode/processes/DynResponderService"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="ResponderPartnerLinkType">
+ <plnk:role name="responder" portType="tns:DynResponderPortType"/>
+ </plnk:partnerLinkType>
+
+ <prop:property name="dummyProp" type="xsd:string"/>
+ <prop:propertyAlias propertyName="tns:dummyProp"
messageType="tns:DummyMessage"
+ part="payload"/>
+ <prop:propertyAlias propertyName="tns:dummyProp"
messageType="tns:Dummy2Message"
+ part="payload"/>
+
+</wsdl:definitions>
\ No newline at end of file
Added: ode/trunk/axis2-war/src/test/resources/TestDynPartner/deploy.xml
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestDynPartner/deploy.xml?rev=656446&view=auto
==============================================================================
--- ode/trunk/axis2-war/src/test/resources/TestDynPartner/deploy.xml (added)
+++ ode/trunk/axis2-war/src/test/resources/TestDynPartner/deploy.xml Wed May 14
14:56:56 2008
@@ -0,0 +1,39 @@
+<!--
+ ~ 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:main="http://ode/bpel/unit-test"
+ xmlns:mws="http://ode/bpel/unit-test.wsdl"
+ xmlns:resp="http://ode/bpel/responder"
+ xmlns:rws="http://ode/bpel/responder.wsdl">
+
+ <process name="main:DynPartnerMain">
+ <provide partnerLink="initiatorPartnerLink">
+ <service name="mws:DynMainService" port="DynMainPort"/>
+ </provide>
+ <invoke partnerLink="responderPartnerLink">
+ <service name="rws:DynResponderService"
port="DynResponderPort"/>
+ </invoke>
+ </process>
+ <process name="resp:DynPartnerResponder">
+ <type>resp:DynPartnerResponder</type>
+ <provide partnerLink="mainPartnerLink">
+ <service name="rws:DynResponderService"
port="DynResponderPort"/>
+ </provide>
+ </process>
+</deploy>
Added: ode/trunk/axis2-war/src/test/resources/TestDynPartner/testRequest.soap
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestDynPartner/testRequest.soap?rev=656446&view=auto
==============================================================================
--- ode/trunk/axis2-war/src/test/resources/TestDynPartner/testRequest.soap
(added)
+++ ode/trunk/axis2-war/src/test/resources/TestDynPartner/testRequest.soap Wed
May 14 14:56:56 2008
@@ -0,0 +1,26 @@
+<?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.
+ -->
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
+ <!-- test soap message -->
+ <SOAP-ENV:Body>
+ <ns2:dummy xmlns:ns2="http://ode/bpel/responder.wsdl">fire!</ns2:dummy>
+ </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>
Added: ode/trunk/axis2-war/src/test/resources/TestMagicSession/Main.bpel
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestMagicSession/Main.bpel?rev=656446&view=auto
==============================================================================
--- ode/trunk/axis2-war/src/test/resources/TestMagicSession/Main.bpel (added)
+++ ode/trunk/axis2-war/src/test/resources/TestMagicSession/Main.bpel Wed May
14 14:56:56 2008
@@ -0,0 +1,107 @@
+<?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.
+ -->
+
+<process name="MagicSessionMain"
+ targetNamespace="http://ode/bpel/unit-test"
+ 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:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:test="http://ode/bpel/unit-test.wsdl">
+
+ <import location="Main.wsdl" namespace="http://ode/bpel/unit-test.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="responderPartnerLink"
partnerLinkType="test:ResponderPartnerLinkType"
+ myRole="main" partnerRole="responder"
initializePartnerRole="yes"/>
+ <partnerLink name="executePartnerLink"
partnerLinkType="test:ExecutePartnerLinkType"
+ myRole="executor"/>
+ </partnerLinks>
+
+ <variables>
+ <variable name="dummy" messageType="test:ExecuteMessage"/>
+ <variable name="dummy2" messageType="test:InitiateMessage"/>
+ <variable name="dummy3" messageType="test:CallbackMessage"/>
+ <variable name="dummy4" messageType="test:DoubleCallMessage"/>
+ <variable name="dummy5" messageType="test:DoubleCallbackMessage"/>
+ <variable name="eprmessage" messageType="test:TripleCallMessage"/>
+ <variable name="myepr" messageType="test:TripleCallbackMessage"/>
+ <variable name="result" messageType="test:ResultMessage"/>
+ </variables>
+
+ <sequence>
+ <!-- Start message -->
+ <receive name="start" partnerLink="executePartnerLink"
+ portType="test:MSExecutePortType" operation="execute"
createInstance="yes" variable="dummy"/>
+
+ <!-- Initializing message, starting the responder process with the magic
session
+ and expecting a callback -->
+ <assign>
+ <copy>
+ <from>123</from>
+ <to variable="dummy2" part="payload"/>
+ </copy>
+ </assign>
+ <invoke name="initiate" partnerLink="responderPartnerLink"
portType="test:MSResponderPortType"
+ operation="initiate" inputVariable="dummy2"/>
+
+ <receive name="callback" partnerLink="responderPartnerLink"
+ portType="test:MSMainPortType" operation="callback"
variable="dummy3"/>
+
+ <!-- Initializing message, calling our partner again with magic session
(double invocation) -->
+ <assign>
+ <copy>
+ <from>123</from>
+ <to variable="dummy4" part="payload"/>
+ </copy>
+ </assign>
+ <invoke name="get-endpoint" partnerLink="responderPartnerLink"
portType="test:MSResponderPortType"
+ operation="doubleCall" inputVariable="dummy4"/>
+
+ <receive name="doubleCallback" partnerLink="responderPartnerLink"
+ portType="test:MSMainPortType" operation="doubleCallback"
variable="dummy5"/>
+
+ <!-- Sending our endpoint explicitly to have our partner calling us back
using it
+ (demonstrating assignment) -->
+ <assign>
+ <copy>
+ <from partnerLink="responderPartnerLink" endpointReference="myRole"/>
+ <to variable="eprmessage" part="payload"/>
+ </copy>
+ </assign>
+ <invoke name="eprPassing" partnerLink="responderPartnerLink"
portType="test:MSResponderPortType"
+ operation="EndpointReference" inputVariable="eprmessage"/>
+
+ <receive name="tripleCallback" partnerLink="responderPartnerLink"
+ portType="test:MSMainPortType" operation="tripleCallback"
variable="myepr"/>
+
+ <!-- Done. -->
+ <assign>
+ <copy>
+ <from>'OK'</from>
+ <to variable="result" part="ack"/>
+ </copy>
+ </assign>
+ <reply name="end" partnerLink="executePartnerLink"
+ portType="test:MSExecutePortType" operation="execute"
variable="result"/>
+
+ </sequence>
+</process>
\ No newline at end of file
Added: ode/trunk/axis2-war/src/test/resources/TestMagicSession/Main.wsdl
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestMagicSession/Main.wsdl?rev=656446&view=auto
==============================================================================
--- ode/trunk/axis2-war/src/test/resources/TestMagicSession/Main.wsdl (added)
+++ ode/trunk/axis2-war/src/test/resources/TestMagicSession/Main.wsdl Wed May
14 14:56:56 2008
@@ -0,0 +1,190 @@
+<?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:wsa="http://www.w3.org/2005/08/addressing"
+ xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+ <types>
+ <xsd:element name="result" type="xsd:string"/>
+ <xsd:element name="execute" type="xsd:string"/>
+ <xsd:element name="callback" type="xsd:string"/>
+ <xsd:element name="doubleCallback" type="xsd:string"/>
+ <xsd:element name="tripleCallback" type="xsd:string"/>
+ <xsd:element name="initiate" type="xsd:string"/>
+ <xsd:element name="doubleCall" type="xsd:string"/>
+ <xsd:element name="tripleCall" type="wsa:EndpointReference"/>
+ </types>
+
+ <wsdl:message name="ExecuteMessage">
+ <wsdl:part name="payload" element="tns:execute"/>
+ </wsdl:message>
+
+ <wsdl:message name="CallbackMessage">
+ <wsdl:part name="payload" element="tns:callback"/>
+ </wsdl:message>
+
+ <wsdl:message name="DoubleCallbackMessage">
+ <wsdl:part name="payload" element="tns:doubleCallback"/>
+ </wsdl:message>
+
+ <wsdl:message name="TripleCallbackMessage">
+ <wsdl:part name="payload" element="tns:tripleCallback"/>
+ </wsdl:message>
+
+ <wsdl:message name="ResultMessage">
+ <wsdl:part name="ack" element="tns:result"/>
+ </wsdl:message>
+
+ <wsdl:message name="InitiateMessage">
+ <wsdl:part name="payload" element="tns:initiate"/>
+ </wsdl:message>
+
+ <wsdl:message name="DoubleCallMessage">
+ <wsdl:part name="payload" element="tns:doubleCall"/>
+ </wsdl:message>
+
+ <wsdl:message name="TripleCallMessage">
+ <wsdl:part name="payload" element="wsa:EndpointReference"/>
+ </wsdl:message>
+
+ <wsdl:portType name="MSExecutePortType">
+ <wsdl:operation name="execute">
+ <wsdl:input message="tns:ExecuteMessage" name="Execute"/>
+ <wsdl:output message="tns:ResultMessage" name="Result"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:portType name="MSMainPortType">
+ <wsdl:operation name="callback">
+ <wsdl:input message="tns:CallbackMessage" name="Callback"/>
+ </wsdl:operation>
+ <wsdl:operation name="doubleCallback">
+ <wsdl:input message="tns:DoubleCallbackMessage"
name="DoubleCallback"/>
+ </wsdl:operation>
+ <wsdl:operation name="tripleCallback">
+ <wsdl:input message="tns:TripleCallbackMessage"
name="TripleCallback"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:portType name="MSResponderPortType">
+ <wsdl:operation name="initiate">
+ <wsdl:input message="tns:InitiateMessage" name="Callback"/>
+ </wsdl:operation>
+ <wsdl:operation name="doubleCall">
+ <wsdl:input message="tns:DoubleCallMessage" name="DoubleCallback"/>
+ </wsdl:operation>
+ <wsdl:operation name="EndpointReference">
+ <wsdl:input message="tns:TripleCallMessage"
name="EndpointReference"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="MSExecuteBinding" type="tns:MSExecutePortType">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="execute">
+ <soap:operation soapAction="" style="document"/>
+ <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:binding name="MSMainBinding" type="tns:MSMainPortType">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="callback">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input>
+ <soap:body namespace="http://ode/bpel/unit-test.wsdl"
use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="doubleCallback">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input>
+ <soap:body namespace="http://ode/bpel/unit-test.wsdl"
use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="tripleCallback">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input>
+ <soap:body namespace="http://ode/bpel/unit-test.wsdl"
use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:binding name="MSResponderBinding" type="tns:MSResponderPortType">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="initiate">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input>
+ <soap:body namespace="http://ode/bpel/unit-test.wsdl"
use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="doubleCall">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input>
+ <soap:body namespace="http://ode/bpel/unit-test.wsdl"
use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="EndpointReference">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input>
+ <soap:body namespace="http://ode/bpel/unit-test.wsdl"
use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <!-- This service should be used to start the example. -->
+ <wsdl:service name="MSMainExecuteService">
+ <wsdl:port name="MSExecutePort" binding="tns:MSExecuteBinding">
+ <soap:address
location="http://localhost:8080/ode/processes/MSMainExecuteService"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <!-- This service is internal, only used by the responder. -->
+ <wsdl:service name="MSMainService">
+ <wsdl:port name="MSMainPort" binding="tns:MSMainBinding">
+ <soap:address
location="http://localhost:8080/ode/processes/MSMainService"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <!-- Service responding to the main service requests. -->
+ <wsdl:service name="MSResponderService">
+ <wsdl:port name="MSResponderPort" binding="tns:MSResponderBinding">
+ <soap:address
location="http://localhost:8080/ode/processes/MSResponderService"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="ResponderPartnerLinkType">
+ <plnk:role name="responder" portType="tns:MSResponderPortType"/>
+ <plnk:role name="main" portType="tns:MSMainPortType"/>
+ </plnk:partnerLinkType>
+
+ <plnk:partnerLinkType name="ExecutePartnerLinkType">
+ <plnk:role name="executor" portType="tns:MSExecutePortType"/>
+ </plnk:partnerLinkType>
+
+</wsdl:definitions>
\ No newline at end of file
Added: ode/trunk/axis2-war/src/test/resources/TestMagicSession/Responder.bpel
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestMagicSession/Responder.bpel?rev=656446&view=auto
==============================================================================
--- ode/trunk/axis2-war/src/test/resources/TestMagicSession/Responder.bpel
(added)
+++ ode/trunk/axis2-war/src/test/resources/TestMagicSession/Responder.bpel Wed
May 14 14:56:56 2008
@@ -0,0 +1,88 @@
+<?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.
+ -->
+
+<process name="MagicSessionResponder"
+ targetNamespace="http://ode/bpel/responder"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:tns="http://ode/bpel/responder"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:resp="http://ode/bpel/unit-test.wsdl">
+
+ <import location="Main.wsdl" namespace="http://ode/bpel/unit-test.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="mainPartnerLink"
partnerLinkType="resp:ResponderPartnerLinkType"
+ myRole="responder" partnerRole="main"
initializePartnerRole="yes"/>
+ </partnerLinks>
+
+ <variables>
+ <variable name="dummy2" messageType="resp:InitiateMessage"/>
+ <variable name="dummy3" messageType="resp:CallbackMessage"/>
+ <variable name="dummy4" messageType="resp:DoubleCallMessage"/>
+ <variable name="dummy5" messageType="resp:DoubleCallbackMessage"/>
+ <variable name="eprmessage" messageType="resp:TripleCallMessage"/>
+ <variable name="dummy6" messageType="resp:TripleCallbackMessage"/>
+ </variables>
+
+ <sequence>
+ <!-- Starting process and first callback -->
+ <receive name="start" partnerLink="mainPartnerLink" variable="dummy2"
+ portType="resp:MSResponderPortType" operation="initiate"
createInstance="yes"/>
+ <assign>
+ <copy>
+ <from>123</from>
+ <to variable="dummy3" part="payload"/>
+ </copy>
+ </assign>
+ <invoke name="callback" partnerLink="mainPartnerLink"
+ portType="resp:MSMainPortType" operation="callback"
inputVariable="dummy3"/>
+
+ <!-- Second callback -->
+ <receive name="doubleCall" partnerLink="mainPartnerLink" variable="dummy4"
+ portType="resp:MSResponderPortType" operation="doubleCall"/>
+ <assign>
+ <copy>
+ <from>123</from>
+ <to variable="dummy5" part="payload"/>
+ </copy>
+ </assign>
+ <invoke name="doubleCallback" partnerLink="mainPartnerLink"
+ portType="resp:MSMainPortType" operation="doubleCallback"
inputVariable="dummy5"/>
+
+ <!-- Callback on the epr explicitly provided by partner in the message
+ (demonstrating assignment) -->
+ <receive name="eprPassing" partnerLink="mainPartnerLink"
variable="eprmessage"
+ portType="resp:MSResponderPortType"
operation="EndpointReference"/>
+ <assign>
+ <copy>
+ <from variable="eprmessage" part="payload"/>
+ <to partnerLink="mainPartnerLink"/>
+ </copy>
+ <copy>
+ <from>123</from>
+ <to variable="dummy6" part="payload"/>
+ </copy>
+ </assign>
+ <invoke name="tripleCallback" partnerLink="mainPartnerLink"
+ portType="resp:MSMainPortType" operation="tripleCallback"
inputVariable="dummy6"/>
+
+ </sequence>
+</process>
\ No newline at end of file
Added: ode/trunk/axis2-war/src/test/resources/TestMagicSession/deploy.xml
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestMagicSession/deploy.xml?rev=656446&view=auto
==============================================================================
--- ode/trunk/axis2-war/src/test/resources/TestMagicSession/deploy.xml (added)
+++ ode/trunk/axis2-war/src/test/resources/TestMagicSession/deploy.xml Wed May
14 14:56:56 2008
@@ -0,0 +1,44 @@
+<!--
+ ~ 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:main="http://ode/bpel/unit-test"
+ xmlns:mws="http://ode/bpel/unit-test.wsdl"
+ xmlns:resp="http://ode/bpel/responder">
+
+ <process name="main:MagicSessionMain">
+ <provide partnerLink="executePartnerLink">
+ <service name="mws:MSMainExecuteService"
port="MSExecutePort"/>
+ </provide>
+ <provide partnerLink="responderPartnerLink">
+ <service name="mws:MSMainService" port="MSMainPort"/>
+ </provide>
+ <invoke partnerLink="responderPartnerLink">
+ <service name="mws:MSResponderService"
port="MSResponderPort"/>
+ </invoke>
+ </process>
+ <process name="resp:MagicSessionResponder">
+ <type>resp:MagicSessionResponder</type>
+ <provide partnerLink="mainPartnerLink">
+ <service name="mws:MSResponderService"
port="MSResponderPort"/>
+ </provide>
+ <invoke partnerLink="mainPartnerLink">
+ <service name="mws:MSMainService" port="MSMainPort"/>
+ </invoke>
+ </process>
+</deploy>
Added: ode/trunk/axis2-war/src/test/resources/TestMagicSession/testRequest.soap
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestMagicSession/testRequest.soap?rev=656446&view=auto
==============================================================================
--- ode/trunk/axis2-war/src/test/resources/TestMagicSession/testRequest.soap
(added)
+++ ode/trunk/axis2-war/src/test/resources/TestMagicSession/testRequest.soap
Wed May 14 14:56:56 2008
@@ -0,0 +1,26 @@
+<?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.
+ -->
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
+ <!-- test soap message -->
+ <SOAP-ENV:Body>
+ <ns1:execute
xmlns:ns1="http://ode/bpel/unit-test.wsdl">fire!</ns1:execute>
+ </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>