You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by rr...@apache.org on 2010/04/12 18:39:32 UTC
svn commit: r933315 - in /ode/branches/APACHE_ODE_1.X/axis2-war/src/test:
java/org/apache/ode/axis2/correlation/ resources/TestCorrelationUnicity/
webapp/WEB-INF/conf.hib-derby/
Author: rr
Date: Mon Apr 12 16:39:31 2010
New Revision: 933315
URL: http://svn.apache.org/viewvc?rev=933315&view=rev
Log:
ODE-804: Correlation unicity test
Added:
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationUnicityTest.java (with props)
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/CorrelationMultiTest.bpel (with props)
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/CorrelationMultiTest.wsdl (with props)
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/deploy.xml (with props)
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/dummy-service.wsdl (with props)
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/testRequest.soap
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/testRequest2.soap
Modified:
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/webapp/WEB-INF/conf.hib-derby/ode-axis2.properties
Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationUnicityTest.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationUnicityTest.java?rev=933315&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationUnicityTest.java (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationUnicityTest.java Mon Apr 12 16:39:31 2010
@@ -0,0 +1,62 @@
+/*
+ * 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.
+ */
+
+package org.apache.ode.axis2;
+
+import org.testng.annotations.Test;
+import static org.testng.AssertJUnit.assertTrue;
+
+/**
+ * Tests that timeouts set in the *.endpoint files are applied.
+ * The test is designed so a fault must be received.
+ *
+ * Actually, the process invokes a 3-sec long operation (see the process request).
+ * The specified timeouts are lesser than 3-sec, so if properly applied, a fault should be trown.
+ * If not applied, the default 120-sec timeouts will be used. 5sec < 120sec, so the request will succeed.
+ *
+ */
+public class CorrelationUnicityTest extends Axis2TestBase implements ODEConfigDirAware {
+ @Test(dataProvider="configs")
+ public void test() throws Exception {
+ String bundleName = "TestCorrelationUnicity";
+ if (server.isDeployed(bundleName)) server.undeployProcess(bundleName);
+ server.deployProcess(bundleName);
+ try {
+ {
+ String response = server.sendRequestFile("http://localhost:8888/processes/correlationMultiTest",
+ bundleName, "testRequest.soap");
+ System.out.println(response);
+ assertTrue(response.contains("correlationUnicity1"));
+ }
+
+ {
+ String response = server.sendRequestFile("http://localhost:8888/processes/correlationMultiTest",
+ bundleName, "testRequest.soap");
+ System.out.println(response);
+ assertTrue(response.contains("correlationUnicity1"));
+ }
+ } finally {
+ server.undeployProcess(bundleName);
+ }
+ }
+
+ public String getODEConfigDir() {
+ return HIB_DERBY_CONF_DIR;
+ }
+}
Propchange: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationUnicityTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/CorrelationMultiTest.bpel
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/CorrelationMultiTest.bpel?rev=933315&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/CorrelationMultiTest.bpel (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/CorrelationMultiTest.bpel Mon Apr 12 16:39:31 2010
@@ -0,0 +1,86 @@
+<!--
+ ~ 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="HeaderTest"
+ 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:test="http://ode/bpel/unit-test.wsdl"
+ xmlns:dummy="http://axis2.ode.apache.org"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="CorrelationMultiTest.wsdl"
+ namespace="http://ode/bpel/unit-test.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="helloPartnerLink"
+ partnerLinkType="test:HeaderTestPartnerLinkType" myRole="me" />
+ <partnerLink name="dummyPartnerLink"
+ partnerLinkType="test:DummyPartnerLinkType" partnerRole="you" />
+ </partnerLinks>
+
+ <variables>
+ <variable name="myInVar" messageType="test:HeaderTestMessage"/>
+ <variable name="myOutVar" messageType="test:HeaderTestMessage"/>
+ <variable name="input" messageType="dummy:longOperationRequest"/>
+ <variable name="output" messageType="dummy:longOperationResponse"/>
+ </variables>
+ <correlationSets>
+ <correlationSet name="testCorr1" properties="test:testCorrelationID1"/>
+ <correlationSet name="testCorr2" properties="test:testCorrelationID2"/>
+ <correlationSet name="testCorr3" properties="test:testCorrelationID3"/>
+ <correlationSet name="testCorr4" properties="test:testCorrelationID4"/>
+ </correlationSets>
+ <sequence>
+ <receive name="start" partnerLink="helloPartnerLink" portType="test:HeaderTestPortType"
+ operation="hello" variable="myInVar" createInstance="yes">
+ <correlations>
+ <correlation set="testCorr1" initiate="yes"/>
+ </correlations>
+ </receive>
+
+ <assign>
+ <copy>
+ <from>'correlationUnicity1'</from>
+ <to>$myOutVar.TestPart</to>
+ </copy>
+ </assign>
+
+ <reply name="end" partnerLink="helloPartnerLink" portType="test:HeaderTestPortType"
+ operation="hello" variable="myOutVar"/>
+
+ <receive name="receive2" partnerLink="helloPartnerLink" portType="test:HeaderTestPortType"
+ operation="continue" variable="myInVar">
+ <correlations>
+ <correlation set="testCorr1" initiate="no"/>
+ </correlations>
+ </receive>
+ <assign>
+ <copy>
+ <from>
+ concat($myOutVar.TestPart, $myInVar.TestPart/requestText)
+ </from>
+ <to>$myOutVar.TestPart</to>
+ </copy>
+ </assign>
+
+ </sequence>
+</process>
Propchange: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/CorrelationMultiTest.bpel
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/CorrelationMultiTest.wsdl
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/CorrelationMultiTest.wsdl?rev=933315&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/CorrelationMultiTest.wsdl (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/CorrelationMultiTest.wsdl Mon Apr 12 16:39:31 2010
@@ -0,0 +1,125 @@
+<?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:typens="http://ode/bpel/unit-test/testCorrelation.wsdl.types"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:dummy="http://axis2.ode.apache.org"
+ xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+ xmlns:prop="http://docs.oasis-open.org/wsbpel/2.0/varprop">
+
+ <wsdl:import namespace="http://axis2.ode.apache.org" location="dummy-service.wsdl"/>
+
+ <wsdl:types>
+ <xsd:schema
+ targetNamespace="http://ode/bpel/unit-test/testCorrelation.wsdl.types"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:complexType name="testMessage">
+ <xsd:sequence>
+ <xsd:element name="correlationID1" type="xsd:string"/>
+ <xsd:element name="correlationID2" type="xsd:string"/>
+ <xsd:element name="correlationID3" type="xsd:string"/>
+ <xsd:element name="correlationID4" type="xsd:string"/>
+ <xsd:element name="requestText" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="HeaderTestMessage">
+ <wsdl:part name="TestPart" type="typens:testMessage"/>
+ </wsdl:message>
+
+ <wsdl:portType name="HeaderTestPortType">
+ <wsdl:operation name="hello">
+ <wsdl:input message="tns:HeaderTestMessage" name="TestIn"/>
+ <wsdl:output message="tns:HeaderTestMessage" name="TestOut"/>
+ </wsdl:operation>
+ <wsdl:operation name="continue">
+ <wsdl:input message="tns:HeaderTestMessage" name="TestIn"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="HeaderTestSoapBinding" type="tns:HeaderTestPortType">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="hello">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body namespace="http://ode/bpel/unit-test.wsdl" use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body namespace="http://ode/bpel/unit-test.wsdl" use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="continue">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body namespace="http://ode/bpel/unit-test.wsdl" use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="HeaderTestService">
+ <wsdl:port name="HeaderTestPort" binding="tns:HeaderTestSoapBinding">
+ <soap:address location="http://localhost:8888/ode/processes/correlationMultiTest"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="HeaderTestPartnerLinkType">
+ <plnk:role name="me" portType="tns:HeaderTestPortType"/>
+ <plnk:role name="you" portType="tns:HeaderTestPortType"/>
+ </plnk:partnerLinkType>
+ <plnk:partnerLinkType name="DummyPartnerLinkType">
+ <plnk:role name="you" portType="dummy:DummyServicePortType"/>
+ </plnk:partnerLinkType>
+
+ <prop:property name="testCorrelationID1" type="xsd:string"/>
+ <prop:propertyAlias propertyName="tns:testCorrelationID1" messageType="tns:HeaderTestMessage" part="TestPart">
+ <prop:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+ correlationID1
+ </prop:query>
+ </prop:propertyAlias>
+
+ <prop:property name="testCorrelationID2" type="xsd:string"/>
+ <prop:propertyAlias propertyName="tns:testCorrelationID2" messageType="tns:HeaderTestMessage" part="TestPart">
+ <prop:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+ correlationID2
+ </prop:query>
+ </prop:propertyAlias>
+
+ <prop:property name="testCorrelationID3" type="xsd:string"/>
+ <prop:propertyAlias propertyName="tns:testCorrelationID3" messageType="tns:HeaderTestMessage" part="TestPart">
+ <prop:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+ correlationID3
+ </prop:query>
+ </prop:propertyAlias>
+
+ <prop:property name="testCorrelationID4" type="xsd:string"/>
+ <prop:propertyAlias propertyName="tns:testCorrelationID4" messageType="tns:HeaderTestMessage" part="TestPart">
+ <prop:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+ correlationID4
+ </prop:query>
+ </prop:propertyAlias>
+</wsdl:definitions>
\ No newline at end of file
Propchange: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/CorrelationMultiTest.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/deploy.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/deploy.xml?rev=933315&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/deploy.xml (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/deploy.xml Mon Apr 12 16:39:31 2010
@@ -0,0 +1,33 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+ xmlns:pns="http://ode/bpel/unit-test"
+ xmlns:wns="http://ode/bpel/unit-test.wsdl" xmlns:dns="http://axis2.ode.apache.org">
+
+
+ <process name="pns:HeaderTest">
+ <active>true</active>
+ <provide partnerLink="helloPartnerLink">
+ <service name="wns:HeaderTestService" port="HeaderTestPort"/>
+ </provide>
+ <invoke partnerLink="dummyPartnerLink">
+ <service name="dns:DummyService" port="DummyServiceSOAP11port_http"/>
+ </invoke>
+ </process>
+</deploy>
Propchange: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/deploy.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/dummy-service.wsdl
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/dummy-service.wsdl?rev=933315&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/dummy-service.wsdl (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/dummy-service.wsdl Mon Apr 12 16:39:31 2010
@@ -0,0 +1,229 @@
+<?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 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
+ xmlns:ns0="http://axis2.ode.apache.org/xsd"
+ xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+ xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+ xmlns:ns1="http://axis2.ode.apache.org"
+ xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ targetNamespace="http://axis2.ode.apache.org">
+ <wsdl:types>
+ <xs:schema xmlns:ns="http://axis2.ode.apache.org" attributeFormDefault="qualified"
+ elementFormDefault="unqualified" targetNamespace="http://axis2.ode.apache.org">
+
+ <xs:element name="DummyException">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="reason" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="faultTest">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="in" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="faultTestResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="hello">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="in" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="helloResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="longOperation">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="in" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="longOperationResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="faultTestRequest">
+ <wsdl:part name="parameters" element="ns1:faultTest"/>
+ </wsdl:message>
+ <wsdl:message name="faultTestResponse">
+ <wsdl:part name="parameters" element="ns1:faultTestResponse"/>
+ </wsdl:message>
+ <wsdl:message name="DummyExceptionType">
+ <wsdl:part name="parameters" element="ns1:DummyException"/>
+ </wsdl:message>
+ <wsdl:message name="helloRequest">
+ <wsdl:part name="parameters" element="ns1:hello"/>
+ </wsdl:message>
+ <wsdl:message name="helloResponse">
+ <wsdl:part name="parameters" element="ns1:helloResponse"/>
+ </wsdl:message>
+ <wsdl:message name="longOperationRequest">
+ <wsdl:part name="parameters" element="ns1:longOperation"/>
+ </wsdl:message>
+ <wsdl:message name="longOperationResponse">
+ <wsdl:part name="parameters" element="ns1:longOperationResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="DummyServicePortType">
+ <wsdl:operation name="faultTest">
+ <wsdl:input message="ns1:faultTestRequest" wsaw:Action="urn:faultTest"/>
+ <wsdl:output message="ns1:faultTestResponse" wsaw:Action="urn:faultTestResponse"/>
+ <wsdl:fault message="ns1:DummyExceptionType" name="DummyException"
+ wsaw:Action="urn:faultTestDummyException"/>
+ </wsdl:operation>
+ <wsdl:operation name="hello">
+ <wsdl:input message="ns1:helloRequest" wsaw:Action="urn:hello"/>
+ <wsdl:output message="ns1:helloResponse" wsaw:Action="urn:helloResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="longOperation">
+ <wsdl:input message="ns1:longOperationRequest" wsaw:Action="urn:longOperation"/>
+ <wsdl:output message="ns1:longOperationResponse" wsaw:Action="urn:longOperationResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="DummyServiceSOAP11Binding" type="ns1:DummyServicePortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="faultTest">
+ <soap:operation soapAction="urn:faultTest" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="DummyException">
+ <soap:fault use="literal" name="DummyException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="hello">
+ <soap:operation soapAction="urn:hello" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="longOperation">
+ <soap:operation soapAction="urn:longOperation" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="DummyServiceSOAP12Binding" type="ns1:DummyServicePortType">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="faultTest">
+ <soap12:operation soapAction="urn:faultTest" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="DummyException">
+ <soap12:fault use="literal" name="DummyException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="hello">
+ <soap12:operation soapAction="urn:hello" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="longOperation">
+ <soap12:operation soapAction="urn:hello" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="DummyServiceHttpBinding" type="ns1:DummyServicePortType">
+ <http:binding verb="POST"/>
+ <wsdl:operation name="faultTest">
+ <http:operation location="DummyService/faultTest"/>
+ <wsdl:input>
+ <mime:content type="text/xml" part="faultTest"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="text/xml" part="faultTest"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="hello">
+ <http:operation location="DummyService/hello"/>
+ <wsdl:input>
+ <mime:content type="text/xml" part="hello"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="text/xml" part="hello"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="longOperation">
+ <http:operation location="DummyService/hello"/>
+ <wsdl:input>
+ <mime:content type="text/xml" part="hello"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="text/xml" part="hello"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="DummyService">
+ <wsdl:port name="DummyServiceSOAP11port_http" binding="ns1:DummyServiceSOAP11Binding">
+ <soap:address location="http://localhost:8888/processes/DummyService"/>
+ </wsdl:port>
+ <wsdl:port name="DummyServiceSOAP12port_http" binding="ns1:DummyServiceSOAP12Binding">
+ <soap12:address location="http://localhost:8888/processes/DummyService"/>
+ </wsdl:port>
+ <wsdl:port name="DummyServiceHttpport" binding="ns1:DummyServiceHttpBinding">
+ <http:address location="http://localhost:8888/processes/DummyService"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file
Propchange: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/dummy-service.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/testRequest.soap
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/testRequest.soap?rev=933315&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/testRequest.soap (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/testRequest.soap Mon Apr 12 16:39:31 2010
@@ -0,0 +1,31 @@
+<?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/">
+ <SOAP-ENV:Header>
+ <myns:ConversationId xmlns:myns="http://my.company/super/protocol">ZZZXYZ</myns:ConversationId>
+ </SOAP-ENV:Header>
+ <!-- test soap message -->
+ <SOAP-ENV:Body>
+ <ns1:hello xmlns:ns1="http://ode/bpel/unit-test.wsdl">
+ <TestPart xmlns=""><correlationID1>CORR1</correlationID1><correlationID2>CORR2</correlationID2><correlationID3>CORR3</correlationID3><correlationID4>CORR4</correlationID4><requestText>1;</requestText></TestPart>
+ </ns1:hello>
+ </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>
Added: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/testRequest2.soap
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/testRequest2.soap?rev=933315&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/testRequest2.soap (added)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestCorrelationUnicity/testRequest2.soap Mon Apr 12 16:39:31 2010
@@ -0,0 +1,31 @@
+<?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/">
+ <SOAP-ENV:Header>
+ <myns:ConversationId xmlns:myns="http://my.company/super/protocol">ZZZXYZ</myns:ConversationId>
+ </SOAP-ENV:Header>
+ <!-- test soap message -->
+ <SOAP-ENV:Body>
+ <ns1:continue xmlns:ns1="http://ode/bpel/unit-test.wsdl">
+ <TestPart xmlns=""><correlationID1>CORR1</correlationID1><correlationID2>CORR2</correlationID2><correlationID3>CORR3</correlationID3><correlationID4>CORR4</correlationID4><requestText>2;</requestText></TestPart>
+ </ns1:continue>
+ </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>
Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/webapp/WEB-INF/conf.hib-derby/ode-axis2.properties
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/webapp/WEB-INF/conf.hib-derby/ode-axis2.properties?rev=933315&r1=933314&r2=933315&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/webapp/WEB-INF/conf.hib-derby/ode-axis2.properties (original)
+++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/webapp/WEB-INF/conf.hib-derby/ode-axis2.properties Mon Apr 12 16:39:31 2010
@@ -20,4 +20,4 @@ ode-axis2.db.emb.name=hibdb
ode-axis2.db.mode=EMBEDDED
ode-axis2.cluster.localRoute.targets=http://doesntexist:8080/ode/processes/
ode-axis2.cluster.localRoute.base=http://localhost:8888/ode/processes/
-
+ode-axis2.event.listeners=org.apache.ode.bpel.common.evt.DebugBpelEventListener