Author: mriou
Date: Fri Sep  1 14:24:59 2006
New Revision: 439487

URL: http://svn.apache.org/viewvc?rev=439487&view=rev
Log:
Some comments and a readme to explain examples usage.

Added:
    incubator/ode/trunk/axis2-examples/src/examples/readme.txt
Modified:
    incubator/ode/trunk/axis2-examples/src/examples/MagicSession/Main.wsdl

Modified: incubator/ode/trunk/axis2-examples/src/examples/MagicSession/Main.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/axis2-examples/src/examples/MagicSession/Main.wsdl?rev=439487&r1=439486&r2=439487&view=diff
==============================================================================
--- incubator/ode/trunk/axis2-examples/src/examples/MagicSession/Main.wsdl 
(original)
+++ incubator/ode/trunk/axis2-examples/src/examples/MagicSession/Main.wsdl Fri 
Sep  1 14:24:59 2006
@@ -1,170 +1,173 @@
 <?xml version="1.0" encoding="utf-8" ?>
 
 <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>
-
-  <wsdl:service name="MSMainService">
-    <wsdl:port name="MSMainPort" binding="tns:MSMainBinding">
-      <soap:address 
location="http://localhost:8080/ode/processes/MSMainService"/>
-    </wsdl:port>
-  </wsdl:service>
-
-  <wsdl:service name="MSMainExecuteService">
-    <wsdl:port name="MSExecutePort" binding="tns:MSExecuteBinding">
-      <soap:address 
location="http://localhost:8080/ode/processes/MSMainExecuteService"/>
-    </wsdl:port>
-  </wsdl:service>
-
-  <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>
+        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>

Added: incubator/ode/trunk/axis2-examples/src/examples/readme.txt
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/axis2-examples/src/examples/readme.txt?rev=439487&view=auto
==============================================================================
--- incubator/ode/trunk/axis2-examples/src/examples/readme.txt (added)
+++ incubator/ode/trunk/axis2-examples/src/examples/readme.txt Fri Sep  1 
14:24:59 2006
@@ -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.


Reply via email to