Author: boisvert
Date: Wed Aug  9 10:58:23 2006
New Revision: 430108

URL: http://svn.apache.org/viewvc?rev=430108&view=rev
Log:
Update build scripts

Added:
    
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-http/HelloWorld2.wsdl
    
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-http/build.xml
    
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.dd
    incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/assembly/
    incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/assembly/META-INF/
    
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/assembly/META-INF/jbi.xml
    incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/build.xml
    incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/message.soap
Removed:
    incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/testRequest.soap
Modified:
    
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.bpel
    
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.wsdl
    
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/build.xml

Added: 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-http/HelloWorld2.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-http/HelloWorld2.wsdl?rev=430108&view=auto
==============================================================================
--- 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-http/HelloWorld2.wsdl
 (added)
+++ 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-http/HelloWorld2.wsdl
 Wed Aug  9 10:58:23 2006
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+<definitions name="Hello"
+        targetNamespace="urn:/HelloWorld2.wsdl"
+        xmlns:tns="urn:/HelloWorld2.wsdl"
+        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
+        xmlns:smix="http://servicemix.org/wsdl/jbi/";
+        xmlns="http://schemas.xmlsoap.org/wsdl/";>
+
+    <types>
+        <schema targetNamespace="urn:/HelloWorld2.wsdl"
+                xmlns="http://www.w3.org/2000/10/XMLSchema";>
+            <element name="HelloRequest">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+            <element name="HelloResponse">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+        </schema>
+    </types>
+
+    <message name="HelloRequest">
+        <part name="body" element="tns:HelloRequest"/>
+    </message>
+
+    <message name="HelloResponse">
+        <part name="body" element="tns:HelloResponse"/>
+    </message>
+
+    <portType name="HelloPortType">
+        <operation name="Hello">
+            <input message="tns:HelloRequest"/>
+            <output message="tns:HelloResponse"/>
+        </operation>
+    </portType>
+
+    <binding name="HelloSoapBinding" type="tns:HelloPortType">
+        <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+        <operation name="Hello">
+            <!--soap:operation soapAction="urn:Hello"/-->
+            <input>
+                <soap:body use="literal"/>
+            </input>
+            <output>
+                <soap:body use="literal"/>
+            </output>
+        </operation>
+    </binding>
+
+    <service name="HelloService">
+        <port name="HelloPort" binding="tns:HelloSoapBinding">
+            <soap:address location="http://localhost:8080/hello"/>
+
+            <!-- Connect this external HTTP endpoint to the process internal 
+                 JBI endpoint defined in HelloWorld2-process/HelloWorld2.dd -->
+            <smix:endpoint xmlns:hello="urn:/HelloWorld2.wsdl"
+                    role="consumer"
+                    defaultMep="in-out"
+                    targetEndpoint="hello:HelloService"/>
+
+        </port>
+    </service>
+
+</definitions>

Added: 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-http/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-http/build.xml?rev=430108&view=auto
==============================================================================
--- 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-http/build.xml
 (added)
+++ 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-http/build.xml
 Wed Aug  9 10:58:23 2006
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="HelloWorld2-HTTP" default="service-unit">
+
+    <target name="clean" depends="">
+        <delete dir="build" />
+    </target>
+    
+    <target name="service-unit" depends="clean">
+        <mkdir dir="build" />
+        <zip destfile="build/HelloWorld2-HTTP.zip">
+            <fileset dir="." includes="*.wsdl"/>
+        </zip>
+    </target>
+
+</project>

Modified: 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.bpel
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.bpel?rev=430108&r1=430107&r2=430108&view=diff
==============================================================================
--- 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.bpel
 (original)
+++ 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.bpel
 Wed Aug  9 10:58:23 2006
@@ -1,48 +1,62 @@
+<?xml version="1.0"?>
 <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";>
+        targetNamespace="urn:/HelloWorld2.bpel"
+        xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+        xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+        xmlns:tns="urn:/HelloWorld2.bpel"
+        xmlns:hello="urn:/HelloWorld2.wsdl"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
 
-  <import location="urn:/HelloWorld2.wsdl"
-     namespace="http://ode/bpel/unit-test.wsdl";
-     importType="http://schemas.xmlsoap.org/wsdl/"; />
+    <import location="urn:/HelloWorld2.wsdl"
+            namespace="urn:/HelloWorld2.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>
+    <partnerLinks>
+        <partnerLink name="helloPartnerLink"
+                partnerLinkType="hello:HelloPartnerLinkType"
+                myRole="Provider" />
+    </partnerLinks>
+
+    <variables>
+        <variable name="request" messageType="hello:HelloRequest"/>
+        <variable name="response" messageType="hello:HelloResponse"/>
+        <variable name="text" type="xsd:string"/>
+    </variables>
+
+    <sequence>
+        <receive
+                name="start"
+                partnerLink="helloPartnerLink"
+                portType="hello:HelloPortType"
+                operation="Hello"
+                variable="request"
+                createInstance="yes"/>
+                
+        <assign name="assign1">
+            <copy>
+                <from>$request.body/hello:text</from>
+                <to variable="text"/>
+            </copy>
+            <copy>
+                <from>
+                    <literal>
+                        <hello:HelloResponse>
+                            <hello:text/>
+                        </hello:HelloResponse>
+                    </literal>
+                </from>
+                <to>$response.body</to>
+            </copy>
+            <copy>
+                <from>concat($text,' World')"</from>
+                <to>$response.body/hello:text</to>
+            </copy>
+        </assign>
         
-   <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>
+        <reply name="end"
+                partnerLink="helloPartnerLink"
+                portType="hello:HelloPortType"
+                operation="Hello"
+                variable="response"/>
+    </sequence>
 </process>

Added: 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.dd
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.dd?rev=430108&view=auto
==============================================================================
--- 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.dd
 (added)
+++ 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.dd
 Wed Aug  9 10:58:23 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="helloPartnerLink" 
partnerLinkRole="myRole">
+            <jbi:end-point-reference 
service-name="{urn:/HelloWorld2.wsdl}HelloService" end-point-name="jbi"/>
+        </dd:endpoint-ref>
+
+    </dd:endpoint-refs>
+    
+</dd:deployment-descriptor>
\ No newline at end of file

Modified: 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.wsdl?rev=430108&r1=430107&r2=430108&view=diff
==============================================================================
--- 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.wsdl
 (original)
+++ 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/HelloWorld2.wsdl
 Wed Aug  9 10:58:23 2006
@@ -1,51 +1,56 @@
-<?xml version="1.0" encoding="utf-8" ?>
+<?xml version="1.0"?>
+<definitions name="Hello"
+        targetNamespace="urn:/HelloWorld2.wsdl"
+        xmlns:tns="urn:/HelloWorld2.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/";>
 
-<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>
+    <types>
+        <schema targetNamespace="urn:/HelloWorld2.wsdl"
+                xmlns="http://www.w3.org/2000/10/XMLSchema";>
+            <element name="HelloRequest">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+            <element name="HelloResponse">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+        </schema>
+    </types>
+
+    <message name="HelloRequest">
+        <part name="body" element="tns:HelloRequest"/>
+    </message>
+
+    <message name="HelloResponse">
+        <part name="body" element="tns:HelloResponse"/>
+    </message>
+
+    <portType name="HelloPortType">
+        <operation name="Hello">
+            <input message="tns:HelloRequest"/>
+            <output message="tns:HelloResponse"/>
+        </operation>
+    </portType>
+
+    <plnk:partnerLinkType name="HelloPartnerLinkType">
+        <plnk:role name="Provider" portType="tns:HelloPortType"/>
+    </plnk:partnerLinkType>
     
-    <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:@ODE_HTTP_PORT@/ode/soap/helloWorld"/>
-               </wsdl:port>
-    </wsdl:service>
+    This is an abstract interface/portType definition.  Note the lack of 
+    binding and service: these are defined by the HTTP binding component.
+    See HelloWorld2-http/HelloWorld2.wsdl for details.
     
-   <plnk:partnerLinkType name="HelloPartnerLinkType">
-       <plnk:role name="me" portType="tns:HelloPortType"/>
-       <plnk:role name="you" portType="tns:HelloPortType"/>
-   </plnk:partnerLinkType>
-</wsdl:definitions>
+    -->
 
+</definitions>

Modified: 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/build.xml?rev=430108&r1=430107&r2=430108&view=diff
==============================================================================
--- 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/build.xml
 (original)
+++ 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/HelloWorld2-process/build.xml
 Wed Aug  9 10:58:23 2006
@@ -1,12 +1,6 @@
-<project name="HelloWorld2" default="sar"  >
+<?xml version="1.0" encoding="utf-8"?>
+<project name="HelloWorld2" default="service-unit">
 
-  <import file="../example-build.xml" />
+    <import file="../../example-build.xml" />
 
-  <target name="test" depends="init">
-    <antcall target="_sendsoap">
-      <param name="ode.sendsoap.url" 
value="http://localhost:${ode.http.port}/ode/soap/helloWorld"/>
-      <param name="ode.sendsoap.filename" location="testRequest.soap"/>
-    </antcall>
-  </target>
-  
 </project>

Added: 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/assembly/META-INF/jbi.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/assembly/META-INF/jbi.xml?rev=430108&view=auto
==============================================================================
--- 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/assembly/META-INF/jbi.xml
 (added)
+++ 
incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/assembly/META-INF/jbi.xml
 Wed Aug  9 10:58:23 2006
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<jbi version="1.0" xmlns="http://java.sun.com/xml/ns/jbi";>
+  <service-assembly>
+    <identification>
+       <name>HelloWorld2-SA</name>
+       <description>HelloWorld2 Service Assembly</description>
+    </identification>
+
+    <service-unit>
+       <identification>
+         <name>HelloWorld2-HTTP</name>
+         <description>HelloWorld2 HTTP Binding</description>
+       </identification>
+
+      <target>
+         <artifacts-zip>HelloWorld2-HTTP.zip</artifacts-zip>
+         <component-name>servicemix-http</component-name>
+      </target>
+    </service-unit>
+
+    <service-unit>
+       <identification>
+         <name>HelloWorld2-process</name>
+         <description>HelloWorld2 BPEL Service Unit</description>
+       </identification>
+       <target>
+         <artifacts-zip>HelloWorld2-Process.zip</artifacts-zip>
+         <component-name>PxeBpelEngine</component-name>
+       </target>
+    </service-unit>
+
+  </service-assembly>
+</jbi>
+

Added: incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/build.xml?rev=430108&view=auto
==============================================================================
--- incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/build.xml (added)
+++ incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/build.xml Wed Aug 
 9 10:58:23 2006
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="HelloWorld2" 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}/hello/"/>
+            <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-process">
+        <subant target="">
+            <fileset dir="." includes="HelloWorld2-process/build.xml"/>
+        </subant>
+    </target>
+
+    <target name="build-http">
+        <subant target="">
+            <fileset dir="." includes="HelloWorld2-http/build.xml"/>
+        </subant>
+    </target>
+
+    <target name="assembly" depends="_clean,build-process,build-http">
+        <mkdir dir="build" />
+        <zip destfile="build/HelloWorld2-Assembly.zip">
+            <fileset dir="HelloWorld2-process/build" 
includes="HelloWorld2-Process.zip"/>
+            <fileset dir="HelloWorld2-http/build" 
includes="HelloWorld2-HTTP.zip"/>
+            <fileset dir="assembly" includes="META-INF/*"/>
+        </zip>
+    </target>
+    
+</project>

Added: incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/message.soap
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/message.soap?rev=430108&view=auto
==============================================================================
--- incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/message.soap 
(added)
+++ incubator/ode/trunk/jbi-examples/src/examples/HelloWorld2/message.soap Wed 
Aug  9 10:58:23 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>
+       <HelloRequest xmlns="urn:/HelloWorld2.wsdl">
+        <text>hello</text>
+    </HelloRequest>
+  </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>


Reply via email to