Author: boisvert
Date: Tue Jul 18 09:57:02 2006
New Revision: 423131

URL: http://svn.apache.org/viewvc?rev=423131&view=rev
Log:
Add new "PingPong" JBI example

Added:
    incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/
    incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/assembly/
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/assembly/META-INF/
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/assembly/META-INF/jbi.xml
    incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/build.xml
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/message.soap
    incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/
    incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping-http/
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping-http/Ping.wsdl
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping-http/build.xml
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.bpel
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.dd
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.wsdl
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Pong.wsdl
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/build.xml
    incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.bpel
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.dd
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.wsdl
    
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/build.xml

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/assembly/META-INF/jbi.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/assembly/META-INF/jbi.xml?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/assembly/META-INF/jbi.xml
 (added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/assembly/META-INF/jbi.xml
 Tue Jul 18 09:57:02 2006
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<jbi version="1.0" xmlns="http://java.sun.com/xml/ns/jbi";>
+  <service-assembly>
+    <identification>
+       <name>PingPong-SA</name>
+       <description>PingPong Service Assembly</description>
+    </identification>
+
+    <service-unit>
+       <identification>
+         <name>Ping-HTTP</name>
+         <description>Ping HTTP Binding</description>
+       </identification>
+
+      <target>
+         <artifacts-zip>Ping-HTTP.zip</artifacts-zip>
+         <component-name>servicemix-http</component-name>
+      </target>
+    </service-unit>
+
+    <service-unit>
+       <identification>
+         <name>Ping-process</name>
+         <description>Ping BPEL Service Unit</description>
+       </identification>
+       <target>
+         <artifacts-zip>Ping-Process.zip</artifacts-zip>
+         <component-name>PxeBpelEngine</component-name>
+       </target>
+    </service-unit>
+
+    <service-unit>
+       <identification>
+         <name>Pong-process</name>
+         <description>Pong BPEL Service Unit</description>
+       </identification>
+       <target>
+         <artifacts-zip>Pong-Process.zip</artifacts-zip>
+         <component-name>PxeBpelEngine</component-name>
+       </target>
+    </service-unit>
+  </service-assembly>
+</jbi>
+

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/build.xml?rev=423131&view=auto
==============================================================================
--- incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/build.xml 
(added)
+++ incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/build.xml 
Tue Jul 18 09:57:02 2006
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="PingPong" default="assembly">
+
+    <import file="../example-build.xml" />
+
+    <target name="test" depends="init">
+        <antcall target="_sendsoap">
+            <param name="pxe.sendsoap.url" 
value="http://localhost:${pxe.http.port}/ping/"/>
+            <param name="pxe.sendsoap.filename" location="message.soap"/>
+        </antcall>
+    </target>
+
+    <target name="_clean">
+        <delete dir="build" />
+    </target>
+
+    <target name="clean" depends="_clean">
+        <subant target="clean">
+            <fileset dir="." includes="*/build.xml"/>
+        </subant>
+    </target>
+
+
+    <target name="build-ping">
+        <subant target="">
+            <fileset dir="." includes="ping/build.xml"/>
+        </subant>
+    </target>
+
+    <target name="build-pong">
+        <subant target="">
+            <fileset dir="." includes="pong/build.xml"/>
+        </subant>
+    </target>
+
+    <target name="build-ping-http">
+        <subant target="">
+            <fileset dir="." includes="ping-http/build.xml"/>
+        </subant>
+    </target>
+
+    <target name="assembly" 
depends="_clean,build-ping,build-pong,build-ping-http">
+        <mkdir dir="build" />
+        <zip destfile="build/PingPong-Assembly.zip">
+            <fileset dir="ping/build" includes="Ping-Process.zip"/>
+            <fileset dir="ping-http/build" includes="Ping-HTTP.zip"/>
+            <fileset dir="pong/build" includes="Pong-Process.zip"/>
+            <fileset dir="assembly" includes="META-INF/*"/>
+        </zip>
+    </target>
+    
+</project>

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/message.soap
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/message.soap?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/message.soap 
(added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/message.soap 
Tue Jul 18 09:57:02 2006
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
+  <SOAP-ENV:Body>
+       <PingRequest xmlns="uri:/Ping.wsdl">
+        <text>hello</text>
+    </PingRequest>
+  </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping-http/Ping.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping-http/Ping.wsdl?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping-http/Ping.wsdl
 (added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping-http/Ping.wsdl
 Tue Jul 18 09:57:02 2006
@@ -0,0 +1,76 @@
+<?xml version="1.0"?>
+<definitions name="Ping"
+        targetNamespace="urn:/Ping.wsdl"
+        xmlns:tns="urn:/Ping.wsdl"
+        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
+        xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/";
+        xmlns:smix="http://servicemix.org/wsdl/jbi/";
+        xmlns="http://schemas.xmlsoap.org/wsdl/";>
+
+    <types>
+        <schema targetNamespace="urn:/Ping.wsdl"
+                xmlns="http://www.w3.org/2000/10/XMLSchema";>
+            <element name="PingRequest">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+            <element name="PingResponse">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+        </schema>
+    </types>
+
+    <message name="PingRequest">
+        <part name="body" element="tns:PingRequest"/>
+    </message>
+
+    <message name="PingResponse">
+        <part name="body" element="tns:PingResponse"/>
+    </message>
+
+    <portType name="PingPortType">
+        <operation name="Ping">
+            <input message="tns:PingRequest"/>
+            <output message="tns:PingResponse"/>
+        </operation>
+    </portType>
+
+    <plnk:partnerLinkType name="PingPartnerLinkType">
+        <plnk:role name="Provider" portType="tns:PingPortType"/>
+    </plnk:partnerLinkType>
+
+    <binding name="PingSoapBinding" type="tns:PingPortType">
+        <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+        <operation name="Ping">
+            <!--soap:operation soapAction="urn:Ping"/-->
+            <input>
+                <soap:body use="literal"/>
+            </input>
+            <output>
+                <soap:body use="literal"/>
+            </output>
+        </operation>
+    </binding>
+
+    <service name="PingService">
+        <port name="PingPort" binding="tns:PingSoapBinding">
+            <soap:address location="http://localhost:8080/ping"/>
+
+            <!-- Connect this external HTTP endpoint to the process internal 
+                 JBI endpoint defined in ping/Ping.dd -->
+            <smix:endpoint xmlns:ping="urn:/Ping.wsdl"
+                    role="consumer"
+                    defaultMep="in-out"
+                    targetEndpoint="ping:PingService"/>
+
+        </port>
+    </service>
+
+</definitions>

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping-http/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping-http/build.xml?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping-http/build.xml
 (added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping-http/build.xml
 Tue Jul 18 09:57:02 2006
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="Ping-HTTP" default="service-unit">
+
+    <target name="clean" depends="">
+        <delete dir="build" />
+    </target>
+    
+    <target name="service-unit" depends="clean">
+        <mkdir dir="build" />
+        <zip destfile="build/Ping-HTTP.zip">
+            <fileset dir="." includes="*.wsdl"/>
+        </zip>
+    </target>
+
+</project>

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.bpel
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.bpel?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.bpel
 (added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.bpel
 Tue Jul 18 09:57:02 2006
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<process
+        name="Ping"
+        xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+        targetNamespace="urn:/Ping.bpel"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+        xmlns:tns="urn:/Ping.bpel"
+        xmlns:ping="urn:/Ping.wsdl"
+        xmlns:pong="urn:/Pong.wsdl"
+        xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+        expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
+
+    <import location="urn:/Ping.wsdl"
+            namespace="urn:/Ping.wsdl"
+            importType="http://schemas.xmlsoap.org/wsdl/"; />
+
+    <import location="urn:/Pong.wsdl"
+            namespace="urn:/Pong.wsdl"
+            importType="http://schemas.xmlsoap.org/wsdl/"; />
+
+    <partnerLinks>
+        <partnerLink name="PingPartnerLink"
+                partnerLinkType="ping:PingPartnerLinkType"
+                myRole="Provider" />
+        <partnerLink name="PongPartnerLink"
+                partnerLinkType="pong:PongPartnerLinkType"
+                partnerRole="Provider"
+                initializePartnerRole="yes" />
+    </partnerLinks>
+
+    <variables>
+        <variable messageType="ping:PingRequest" name="pingRequest"/>
+        <variable messageType="ping:PingResponse" name="pingResponse"/>
+        <variable messageType="pong:PongRequest" name="pongRequest"/>
+        <variable messageType="pong:PongResponse" name="pongResponse"/>
+        <variable type="xsd:string" name="text" />
+    </variables>
+
+    <sequence name="Main">
+        <receive name="pingReceive"
+                createInstance="yes"
+                operation="Ping"
+                partnerLink="PingPartnerLink"
+                portType="ping:PingPortType"
+                variable="pingRequest"/>
+
+        <assign name="assignPongRequest">
+            <!-- add "ping" text to the input text -->
+            <copy>
+                <from>concat($pingRequest.body/text, ' ping ')</from>
+                <to variable="text"/>
+            </copy>
+            <!-- initialize pongRequest -->
+            <copy>
+                <from>
+                    <literal>
+                        <pong:text/>
+                    </literal>
+                </from>
+                <to variable="pongRequest" part="body"/>
+            </copy>
+            <!-- copy new text into pongRequest -->
+            <copy>
+                <from>$text</from>
+                <to>$pongRequest.body/text</to>
+            </copy>
+        </assign>
+        
+        <invoke name="invokePong"
+                operation="Pong"
+                inputVariable="pongRequest"
+                outputVariable="pongResponse"
+                partnerLink="PongPartnerLink"
+                portType="pong:PongPortType"/>
+        
+        <assign name="assignPingResponse">
+            <copy>
+                <from>$pongResponse.body/text</from>
+                <to variable="text"/>
+            </copy>
+            <!-- initialize pingResponse -->
+            <copy>
+                <from>
+                    <literal>
+                        <ping:text/>
+                    </literal>
+                </from>
+                <to variable="pingResponse" part="body"/>
+            </copy>
+            <!-- copy new text into pingResponse -->
+            <copy>
+                <from>$text</from>
+                <to>$pingResponse.body/text</to>
+            </copy>
+        </assign>
+
+        <reply name="pingReply"
+                partnerLink="PingPartnerLink"
+                portType="ping:PingPortType"
+                operation="Ping"
+                variable="pingResponse"/>
+    </sequence>
+</process>

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.dd
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.dd?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.dd 
(added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.dd 
Tue Jul 18 09:57:02 2006
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<dd:deployment-descriptor 
+        xmlns:dd="http://pxe.fivesight.com/schemas/2006/02/14/bpeldd";
+        xmlns:jbi="http://java.sun.com/jbi/end-point-reference";>
+        
+    <dd:endpoint-refs>
+        
+        <dd:endpoint-ref partnerLinkName="PingPartnerLink" 
partnerLinkRole="myRole">
+            <jbi:end-point-reference 
service-name="{urn:/Ping.wsdl}PingService" end-point-name="jbi"/>
+        </dd:endpoint-ref>
+
+        <dd:endpoint-ref partnerLinkName="PongPartnerLink" 
partnerLinkRole="partnerRole">
+            <jbi:end-point-reference 
service-name="{urn:/Pong.wsdl}PongService" end-point-name="jbi"/>
+        </dd:endpoint-ref>
+
+    </dd:endpoint-refs>
+    
+</dd:deployment-descriptor>
\ No newline at end of file

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.wsdl?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.wsdl
 (added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Ping.wsdl
 Tue Jul 18 09:57:02 2006
@@ -0,0 +1,56 @@
+<?xml version="1.0"?>
+<definitions name="Ping"
+        targetNamespace="urn:/Ping.wsdl"
+        xmlns:tns="urn:/Ping.wsdl"
+        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
+        xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/";
+        xmlns="http://schemas.xmlsoap.org/wsdl/";>
+
+    <types>
+        <schema targetNamespace="urn:/Ping.wsdl"
+                xmlns="http://www.w3.org/2000/10/XMLSchema";>
+            <element name="PingRequest">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+            <element name="PingResponse">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+        </schema>
+    </types>
+
+    <message name="PingRequest">
+        <part name="body" element="tns:PingRequest"/>
+    </message>
+
+    <message name="PingResponse">
+        <part name="body" element="tns:PingResponse"/>
+    </message>
+
+    <portType name="PingPortType">
+        <operation name="Ping">
+            <input message="tns:PingRequest"/>
+            <output message="tns:PingResponse"/>
+        </operation>
+    </portType>
+
+    <plnk:partnerLinkType name="PingPartnerLinkType">
+        <plnk:role name="Provider" portType="tns:PingPortType"/>
+    </plnk:partnerLinkType>
+    
+    <!--
+    
+    This is an abstract interface/portType definition.  Note the lack of 
+    binding and service: these are defined by the HTTP binding component.
+    See ping-http/Ping.wsdl for details.
+    
+    -->
+
+</definitions>

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Pong.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Pong.wsdl?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Pong.wsdl
 (added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/Pong.wsdl
 Tue Jul 18 09:57:02 2006
@@ -0,0 +1,56 @@
+<?xml version="1.0"?>
+<definitions name="Pong"
+        targetNamespace="urn:/Pong.wsdl"
+        xmlns:tns="urn:/Pong.wsdl"
+        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
+        xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/";
+        xmlns="http://schemas.xmlsoap.org/wsdl/";>
+
+    <types>
+        <schema targetNamespace="urn:/Pong.wsdl"
+                xmlns="http://www.w3.org/2000/10/XMLSchema";>
+            <element name="PongRequest">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+            <element name="PongResponse">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+        </schema>
+    </types>
+
+    <message name="PongRequest">
+        <part name="body" element="tns:PongRequest"/>
+    </message>
+
+    <message name="PongResponse">
+        <part name="body" element="tns:PongResponse"/>
+    </message>
+
+    <portType name="PongPortType">
+        <operation name="Pong">
+            <input message="tns:PongRequest"/>
+            <output message="tns:PongResponse"/>
+        </operation>
+    </portType>
+
+    <plnk:partnerLinkType name="PongPartnerLinkType">
+        <plnk:role name="Provider" portType="tns:PongPortType"/>
+    </plnk:partnerLinkType>
+    
+    <!--
+    
+    This is an abstract interface/portType definition.  Note the lack of 
+    binding and service.  Since Pong is only exposed on the JBI bus, the
+    JBI endpoint is defined in Pong.dd.
+
+    -->
+
+</definitions>

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/build.xml?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/build.xml
 (added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/ping/build.xml
 Tue Jul 18 09:57:02 2006
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="Ping" default="service-unit">
+
+    <import file="../../example-build.xml" />
+
+</project>

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.bpel
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.bpel?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.bpel
 (added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.bpel
 Tue Jul 18 09:57:02 2006
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<process
+        name="Pong"
+        xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+        targetNamespace="urn:/Pong.bpel"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+        xmlns:tns="urn:/Pong.bpel"
+        xmlns:pong="urn:/Pong.wsdl"
+        xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+        expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
+
+    <import location="urn:/Pong.wsdl"
+            namespace="urn:/Pong.wsdl"
+            importType="http://schemas.xmlsoap.org/wsdl/"; />
+
+    <import location="urn:/Pong.wsdl"
+            namespace="urn:/Pong.wsdl"
+            importType="http://schemas.xmlsoap.org/wsdl/"; />
+
+    <partnerLinks>
+        <partnerLink name="PongPartnerLink"
+                partnerLinkType="pong:PongPartnerLinkType"
+                myRole="Provider" />
+    </partnerLinks>
+
+    <variables>
+        <variable messageType="pong:PongRequest" name="pongRequest"/>
+        <variable messageType="pong:PongResponse" name="pongResponse"/>
+        <variable type="xsd:string" name="text" />
+    </variables>
+
+    <sequence name="Main">
+        <receive name="pongReceive"
+                createInstance="yes"
+                operation="Pong"
+                partnerLink="PongPartnerLink"
+                portType="pong:PongPortType"
+                variable="pongRequest"/>
+
+        <assign name="assignPongRequest">
+            <!-- add "ping" text to the input text -->
+            <copy>
+                <from>concat($pongRequest.body/text, ' pong ')</from>
+                <to variable="text"/>
+            </copy>
+            <!-- initialize pongResponse -->
+            <copy>
+                <from>
+                    <literal>
+                        <pong:text/>
+                    </literal>
+                </from>
+                <to variable="pongResponse" part="body"/>
+            </copy>
+            <!-- copy new text into pongResponse -->
+            <copy>
+                <from>$text</from>
+                <to>$pongResponse.body/text</to>
+            </copy>
+        </assign>
+        
+        <reply name="pongReply"
+                partnerLink="PongPartnerLink"
+                portType="pong:PongPortType"
+                operation="Pong"
+                variable="pongResponse"/>
+    </sequence>
+</process>

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.dd
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.dd?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.dd 
(added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.dd 
Tue Jul 18 09:57:02 2006
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<dd:deployment-descriptor 
+        xmlns:dd="http://pxe.fivesight.com/schemas/2006/02/14/bpeldd";
+        xmlns:jbi="http://java.sun.com/jbi/end-point-reference";>
+        
+    <dd:endpoint-refs>
+        
+        <dd:endpoint-ref partnerLinkName="PongPartnerLink" 
partnerLinkRole="myRole">
+            <jbi:end-point-reference 
service-name="{urn:/Pong.wsdl}PongService" end-point-name="jbi"/>
+        </dd:endpoint-ref>
+
+    </dd:endpoint-refs>
+    
+</dd:deployment-descriptor>
\ No newline at end of file

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.wsdl?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.wsdl
 (added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/Pong.wsdl
 Tue Jul 18 09:57:02 2006
@@ -0,0 +1,56 @@
+<?xml version="1.0"?>
+<definitions name="Pong"
+        targetNamespace="urn:/Pong.wsdl"
+        xmlns:tns="urn:/Pong.wsdl"
+        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
+        xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/";
+        xmlns="http://schemas.xmlsoap.org/wsdl/";>
+
+    <types>
+        <schema targetNamespace="urn:/Pong.wsdl"
+                xmlns="http://www.w3.org/2000/10/XMLSchema";>
+            <element name="PongRequest">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+            <element name="PongResponse">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+        </schema>
+    </types>
+
+    <message name="PongRequest">
+        <part name="body" element="tns:PongRequest"/>
+    </message>
+
+    <message name="PongResponse">
+        <part name="body" element="tns:PongResponse"/>
+    </message>
+
+    <portType name="PongPortType">
+        <operation name="Pong">
+            <input message="tns:PongRequest"/>
+            <output message="tns:PongResponse"/>
+        </operation>
+    </portType>
+
+    <plnk:partnerLinkType name="PongPartnerLinkType">
+        <plnk:role name="Provider" portType="tns:PongPortType"/>
+    </plnk:partnerLinkType>
+    
+    <!--
+    
+    This is an abstract interface/portType definition.  Note the lack of 
+    binding and service.  Since Pong is only exposed on the JBI bus, the
+    JBI endpoint is defined in Pong.dd.
+
+    -->
+
+</definitions>

Added: 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/build.xml?rev=423131&view=auto
==============================================================================
--- 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/build.xml
 (added)
+++ 
incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/PingPong/pong/build.xml
 Tue Jul 18 09:57:02 2006
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="Pong" default="service-unit">
+
+    <import file="../../example-build.xml" />
+
+</project>


Reply via email to