You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2007/08/01 20:33:51 UTC
svn commit: r561899 [2/2] - in /ode/trunk: ./ distro-axis2/ distro-jbi/
distro/ distro/src/ distro/src/examples-jbi/
distro/src/examples-jbi/HelloWorld2-RPC/
distro/src/examples-jbi/HelloWorld2-RPC/HelloWorld2-RPC-http/
distro/src/examples-jbi/HelloWor...
Added: ode/trunk/distro/src/examples-jbi/base.xml
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-jbi/base.xml?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-jbi/base.xml (added)
+++ ode/trunk/distro/src/examples-jbi/base.xml Wed Aug 1 11:33:43 2007
@@ -0,0 +1,136 @@
+<!--
+ ~ 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.
+ -->
+
+<!-- ANT Build File used for building JBI examples. This file
+ is imported from each example directory, and should not
+ be used directly. -->
+
+<project name="base" >
+ <property environment="env"/>
+
+ <!-- Use ODE_HOME environment variable if available, otherwise assume $basedir/../.. -->
+ <condition property="ode.home" value="${env.ODE_HOME}" else="${basedir}/../../">
+ <isset property="env.ODE_HOME"/>
+ </condition>
+
+ <property file="${basedir}/../example.properties"/>
+
+ <!-- pick up environmental ode.xxx properties -->
+ <property file="${ode.home}/etc/ode.properties"/>
+
+ <property name="lib.dir" location="${ode.home}/lib"/>
+ <property name="etc.dir" location="${ode.home}/etc" />
+
+ <property name="build.dir" location="${basedir}/build" />
+
+ <target name="clean" description="Clean intermediate artifacts.">
+ <delete dir="${build.dir}"/>
+ </target>
+
+
+ <target name="init-extensions">
+ <condition property="ode.script.extension" value=".bat">
+ <os family="windows"/>
+ </condition>
+ <condition property="ode.script.extension" value=".sh">
+ <os family="unix"/>
+ </condition>
+ <condition property="ode.exe.extension" value=".exe">
+ <os family="windows"/>
+ </condition>
+ <condition property="ode.exe.extension" value="">
+ <os family="unix"/>
+ </condition>
+ </target>
+
+ <!-- if example.properties has ode.java.home assigned it has highest priority
+ and overrides the system environment JAVA_HOME
+
+ if ode.java.home not set in example.properties and system environment
+ JAVA_HOME is set then ode.java.home becomes JAVA_HOME -->
+
+ <target name="try-ENV-java-underscore-home" if="Env-JAVA_HOME" unless="ode.java.home">
+ <echo message="'ode.java.home' not set trying 'Env-JAVA_HOME'"/>
+ <property name="ode.java.home" value="${Env-JAVA_HOME}"/>
+ </target>
+
+ <target name="try-jdk-dot-home" if="jdk.home" unless="ode.java.home">
+ <echo message="'ode.java.home' not set trying 'jdk.home'"/>
+ <property name="ode.java.home" value="${jdk.home}"/>
+ </target>
+
+ <target name="try-java-dot-home" if="java.home" unless="ode.java.home">
+ <echo message="'ode.java.home' not set trying 'java.home'"/>
+ <property name="ode.java.home" value="${java.home}"/>
+ </target>
+
+ <target name="fail-no-ode-java-home" depends="try-ENV-java-underscore-home,try-jdk-dot-home,try-java-dot-home" unless="ode.java.home">
+ <fail message="property 'ode.java.home' is not set (try sys env JAVA_HOME or setting ode.java.home in example.properties)"/>
+ </target>
+
+ <target name="validate-ode-java-home" depends="init-extensions,fail-no-ode-java-home" if="ode.java.home">
+ <available file="${ode.java.home}/bin/java${ode.exe.extension}" property="ode.java.home.good"/>
+ </target>
+
+ <target name="fail-invalid-ode-java-home" depends="validate-ode-java-home" unless="ode.java.home.good">
+ <fail message="Java Home invalid: 'ode.java.home'=${ode.java.home}"/>
+ </target>
+
+ <target name="validate-ode-home">
+ <available file="${lib.dir}/ode-bpel-compiler.jar" property="ode.home.good"/>
+ </target>
+
+ <target name="fail-invalid-ode-home" depends="validate-ode-home" unless="ode.home.good">
+ <fail message="Invalid property 'ode.home'=${ode.home}"/>
+ </target>
+
+ <target name="init" depends="init-extensions,fail-invalid-ode-home,fail-invalid-ode-java-home">
+ <echo message="ode.home = ${ode.home}"/>
+ <echo message="ode.java.home = ${ode.java.home}"/>
+
+ <!-- Ant Env Takes gets first crack at basic ode properties override -->
+ <!-- example.properties gets second crack at basic ode properties override -->
+ <!-- ode.properties is default authority -->
+ <property file="${ode.home}/etc/ode.properties"/>
+
+ <property name="ode.default.javaopts"
+ value=""/>
+
+ <path id="cpath.ode">
+ <fileset dir="${lib.dir}" includes="**/*.jar" />
+ <pathelement location="${ode.home}/etc" />
+ </path>
+
+ <taskdef classpathref="cpath.ode" resource="org/apache/ode/tools/anttasks.properties"
+ onerror="ignore" />
+
+ <mkdir dir="${build.dir}"/>
+ </target>
+
+ <target name="_sendsoap" depends="init">
+ <echo message="ode.sendsoap.url=${ode.sendsoap.url}"/>
+ <echo message="ode.sendsoap.filename=${ode.sendsoap.filename}"/>
+ <exec executable="${ode.home}/bin/sendsoap${ode.script.extension}" dir="${ode.home}">
+ <env key="JAVA_HOME" value="${ode.java.home}"/>
+ <arg value="${ode.sendsoap.url}"/>
+ <arg value="${ode.sendsoap.filename}"/>
+ </exec>
+ </target>
+
+</project>
Added: ode/trunk/distro/src/examples-jbi/example.properties
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-jbi/example.properties?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-jbi/example.properties (added)
+++ ode/trunk/distro/src/examples-jbi/example.properties Wed Aug 1 11:33:43 2007
@@ -0,0 +1,27 @@
+#
+# 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.
+#
+
+#
+# customize any properties for your environment
+#
+ode.start.args=-v -console
+ode.javaopts.env=
+
+ode.default.http.port=8080
+ode.http.port=8080
+
+ode.home=../../bin
\ No newline at end of file
Added: ode/trunk/distro/src/examples-war/DynPartner/DynPartnerMain.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/DynPartner/DynPartnerMain.bpel?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/DynPartner/DynPartnerMain.bpel (added)
+++ ode/trunk/distro/src/examples-war/DynPartner/DynPartnerMain.bpel Wed Aug 1 11:33:43 2007
@@ -0,0 +1,139 @@
+<?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:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ 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/distro/src/examples-war/DynPartner/DynPartnerResponder.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/DynPartner/DynPartnerResponder.bpel?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/DynPartner/DynPartnerResponder.bpel (added)
+++ ode/trunk/distro/src/examples-war/DynPartner/DynPartnerResponder.bpel Wed Aug 1 11:33:43 2007
@@ -0,0 +1,89 @@
+<?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:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:tns="http://ode/bpel/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/distro/src/examples-war/DynPartner/Main.wsdl
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/DynPartner/Main.wsdl?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/DynPartner/Main.wsdl (added)
+++ ode/trunk/distro/src/examples-war/DynPartner/Main.wsdl Wed Aug 1 11:33:43 2007
@@ -0,0 +1,81 @@
+<?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:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ 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/distro/src/examples-war/DynPartner/Responder.wsdl
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/DynPartner/Responder.wsdl?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/DynPartner/Responder.wsdl (added)
+++ ode/trunk/distro/src/examples-war/DynPartner/Responder.wsdl Wed Aug 1 11:33:43 2007
@@ -0,0 +1,113 @@
+<?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:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ 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/distro/src/examples-war/DynPartner/deploy.xml
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/DynPartner/deploy.xml?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/DynPartner/deploy.xml (added)
+++ ode/trunk/distro/src/examples-war/DynPartner/deploy.xml Wed Aug 1 11:33:43 2007
@@ -0,0 +1,40 @@
+<!--
+ ~ 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">
+ <in-memory>true</in-memory>
+ <type>resp:DynPartnerResponder</type>
+ <provide partnerLink="mainPartnerLink">
+ <service name="rws:DynResponderService" port="DynResponderPort"/>
+ </provide>
+ </process>
+</deploy>
Added: ode/trunk/distro/src/examples-war/DynPartner/testRequest.soap
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/DynPartner/testRequest.soap?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/DynPartner/testRequest.soap (added)
+++ ode/trunk/distro/src/examples-war/DynPartner/testRequest.soap Wed Aug 1 11:33:43 2007
@@ -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/distro/src/examples-war/HelloWorld2/HelloWorld2.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/HelloWorld2/HelloWorld2.bpel?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/HelloWorld2/HelloWorld2.bpel (added)
+++ ode/trunk/distro/src/examples-war/HelloWorld2/HelloWorld2.bpel Wed Aug 1 11:33:43 2007
@@ -0,0 +1,69 @@
+<!--
+ ~ 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="HelloWorld2"
+ targetNamespace="http://ode/bpel/unit-test"
+ xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ xmlns:tns="http://ode/bpel/unit-test"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:test="http://ode/bpel/unit-test.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="HelloWorld2.wsdl"
+ namespace="http://ode/bpel/unit-test.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="helloPartnerLink"
+ partnerLinkType="test:HelloPartnerLinkType"
+ myRole="me" />
+ </partnerLinks>
+
+ <variables>
+ <variable name="myVar" messageType="test:HelloMessage"/>
+ <variable name="tmpVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="start"
+ partnerLink="helloPartnerLink"
+ portType="test:HelloPortType"
+ operation="hello"
+ variable="myVar"
+ createInstance="yes"/>
+
+ <assign name="assign1">
+ <copy>
+ <from variable="myVar" part="TestPart"/>
+ <to variable="tmpVar"/>
+ </copy>
+ <copy>
+ <from>concat($tmpVar,' World')</from>
+ <to variable="myVar" part="TestPart"/>
+ </copy>
+ </assign>
+ <reply name="end"
+ partnerLink="helloPartnerLink"
+ portType="test:HelloPortType"
+ operation="hello"
+ variable="myVar"/>
+ </sequence>
+</process>
Added: ode/trunk/distro/src/examples-war/HelloWorld2/HelloWorld2.wsdl
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/HelloWorld2/HelloWorld2.wsdl?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/HelloWorld2/HelloWorld2.wsdl (added)
+++ ode/trunk/distro/src/examples-war/HelloWorld2/HelloWorld2.wsdl Wed Aug 1 11:33:43 2007
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<wsdl:definitions
+ targetNamespace="http://ode/bpel/unit-test.wsdl"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://ode/bpel/unit-test.wsdl"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/">
+
+ <wsdl:message name="HelloMessage">
+ <wsdl:part name="TestPart" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloPortType">
+ <wsdl:operation name="hello">
+ <wsdl:input message="tns:HelloMessage" name="TestIn"/>
+ <wsdl:output message="tns:HelloMessage" name="TestOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="hello">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+ namespace="http://ode/bpel/unit-test.wsdl"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+ namespace="http://ode/bpel/unit-test.wsdl"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="HelloService">
+ <wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
+ <soap:address location="http://localhost:8080/ode/processes/helloWorld"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="HelloPartnerLinkType">
+ <plnk:role name="me" portType="tns:HelloPortType"/>
+ <plnk:role name="you" portType="tns:HelloPortType"/>
+ </plnk:partnerLinkType>
+</wsdl:definitions>
+
Added: ode/trunk/distro/src/examples-war/HelloWorld2/deploy.xml
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/HelloWorld2/deploy.xml?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/HelloWorld2/deploy.xml (added)
+++ ode/trunk/distro/src/examples-war/HelloWorld2/deploy.xml Wed Aug 1 11:33:43 2007
@@ -0,0 +1,30 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+ xmlns:pns="http://ode/bpel/unit-test"
+ xmlns:wns="http://ode/bpel/unit-test.wsdl">
+
+
+ <process name="pns:HelloWorld2">
+ <active>true</active>
+ <provide partnerLink="helloPartnerLink">
+ <service name="wns:HelloService" port="HelloPort"/>
+ </provide>
+ </process>
+</deploy>
Added: ode/trunk/distro/src/examples-war/HelloWorld2/testRequest.soap
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/HelloWorld2/testRequest.soap?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/HelloWorld2/testRequest.soap (added)
+++ ode/trunk/distro/src/examples-war/HelloWorld2/testRequest.soap Wed Aug 1 11:33:43 2007
@@ -0,0 +1,28 @@
+<?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:hello xmlns:ns1="http://ode/bpel/unit-test.wsdl">
+ <TestPart xmlns="">Hello</TestPart>
+ </ns1:hello>
+ </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>
Added: ode/trunk/distro/src/examples-war/MagicSession/Main.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/MagicSession/Main.bpel?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/MagicSession/Main.bpel (added)
+++ ode/trunk/distro/src/examples-war/MagicSession/Main.bpel Wed Aug 1 11:33:43 2007
@@ -0,0 +1,108 @@
+<?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:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ 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/distro/src/examples-war/MagicSession/Main.wsdl
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/MagicSession/Main.wsdl?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/MagicSession/Main.wsdl (added)
+++ ode/trunk/distro/src/examples-war/MagicSession/Main.wsdl Wed Aug 1 11:33:43 2007
@@ -0,0 +1,191 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<wsdl:definitions
+ targetNamespace="http://ode/bpel/unit-test.wsdl"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://ode/bpel/unit-test.wsdl"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ xmlns:wsa="http://www.w3.org/2005/08/addressing"
+ xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/">
+
+ <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/distro/src/examples-war/MagicSession/Responder.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/MagicSession/Responder.bpel?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/MagicSession/Responder.bpel (added)
+++ ode/trunk/distro/src/examples-war/MagicSession/Responder.bpel Wed Aug 1 11:33:43 2007
@@ -0,0 +1,89 @@
+<?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:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ 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/distro/src/examples-war/MagicSession/deploy.xml
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/MagicSession/deploy.xml?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/MagicSession/deploy.xml (added)
+++ ode/trunk/distro/src/examples-war/MagicSession/deploy.xml Wed Aug 1 11:33:43 2007
@@ -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/distro/src/examples-war/MagicSession/testRequest.soap
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/MagicSession/testRequest.soap?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/MagicSession/testRequest.soap (added)
+++ ode/trunk/distro/src/examples-war/MagicSession/testRequest.soap Wed Aug 1 11:33:43 2007
@@ -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>
Added: ode/trunk/distro/src/examples-war/readme.txt
URL: http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-war/readme.txt?view=auto&rev=561899
==============================================================================
--- ode/trunk/distro/src/examples-war/readme.txt (added)
+++ ode/trunk/distro/src/examples-war/readme.txt Wed Aug 1 11:33:43 2007
@@ -0,0 +1,59 @@
+To deploy any example in Ode just copy its whole directory to the
+WEB-INF/processes directory of your deployed exploded webapp. To
+be able to easily send messages put the bin directory or Ode's
+distribution in your path:
+
+Windows
+set PATH=%PATH%;PATH_TO_ODE\bin
+
+Linux
+export PATH=$PATH:PATH_TO_ODE/bin
+
+The sendsoap command can either be executed using sendsoap.bat under
+Windows or sendsoap.sh with Linux (replace accordingly in the
+following command line examples).
+
+Hello World 2
+=============
+Demonstrates a simple service invocation that synchronously replies to
+a message. Built using WS-BPEL 2.0 syntax. After deployment, start a
+process with the command:
+
+sendsoap http://localhost:8080/ode/processes/helloWorld testRequest.soap
+
+Please make sure that you execute the command from the HelloWorld2
+example directory. The response should be a SOAP message containing the
+'hello world' string.
+
+Dynamic Partner
+===============
+Demonstrates dynamic partner assignment. The main process asks for the
+responder process endpoint. The responder process gives its endpoint by
+assigning it to a message (assign my role) and replying this message to
+the main process. The main process invokes again the responder process
+but this time using the endpoint it just receives instead of the
+default one.
+
+After deployment, start a process with the command:
+
+sendsoap http://localhost:8080/ode/processes/DynMainService testRequest.soap
+
+Please make sure that you execute the command from the HelloWorld2
+example directory. The response should be an 'OK' SOAP message, showing
+that all invocations have been successful.
+
+Magic Session
+=============
+Demonstrates the usage of "magic sessions" or implicit correlation. Ode
+supports implicit correlation between two processes or with other
+services using a session-based protocol. So you don't need to provide
+any correlation mechanism to establish a stateful interaction (see Ode's
+website for more information).
+
+After deployment, start a process with the command:
+
+sendsoap http://localhost:8080/ode/processes/MSMainExecuteService testRequest.soap
+
+Please make sure that you execute the command from the HelloWorld2
+example directory. The response should be an 'OK' SOAP message, showing
+that all invocations have been successful.