Author: objectiser
Date: 2009-10-18 17:40:12 -0400 (Sun, 18 Oct 2009)
New Revision: 187
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELSimpleInvokeTestCase.java
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/HelloWorldWS.wsdl
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/SimpleInvoke.bpel
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/SimpleInvoke.cbp
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/SimpleInvoke.wsdl
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/bpel-deploy.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/build.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/messages/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/messages/hello_request1.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/messages/hello_response1.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/resources/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/resources/WEB-INF/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/resources/WEB-INF/classes/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/resources/WEB-INF/lib/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/resources/WEB-INF/web.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/src/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/src/org/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/src/org/jboss/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/src/org/jboss/soa/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/src/org/jboss/soa/bpel/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/src/org/jboss/soa/bpel/samples/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/src/org/jboss/soa/bpel/samples/quickstart/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/view/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/view/index.jsp
Modified:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml
Log:
Added simple invoke sample to integration tests - not fully working yet.
Modified: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml 2009-10-18
19:02:55 UTC (rev 186)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml 2009-10-18
21:40:12 UTC (rev 187)
@@ -86,5 +86,6 @@
<ant
antfile="src/test/resources/samples/Quickstart_bpel_hello_world/build.xml"
/>
<ant
antfile="src/test/resources/samples/Quickstart_bpel_simple_correlation/build.xml"
/>
+ <ant
antfile="src/test/resources/samples/Quickstart_bpel_simple_invoke/build.xml"
/>
</target>
</project>
Modified: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml 2009-10-18 19:02:55
UTC (rev 186)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml 2009-10-18 21:40:12
UTC (rev 187)
@@ -112,14 +112,14 @@
value="${maven.dependency.org.jboss.soa.bpel.runtime.engine.jar.path}" />
<property name="dependency.bpel.jb-bpel-store"
value="${maven.dependency.org.jboss.soa.bpel.runtime.jb-bpel-store.jar.path}"
/>
+ <!--
+ -->
<ant antfile="${basedir}/build.xml">
<target name="stop-server" />
</ant>
<ant antfile="${basedir}/build.xml">
<target name="undeploy-riftsaw" />
</ant>
- <!--
- -->
</tasks>
</configuration>
<goals>
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELSimpleInvokeTestCase.java
===================================================================
---
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELSimpleInvokeTestCase.java
(rev 0)
+++
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELSimpleInvokeTestCase.java 2009-10-18
21:40:12 UTC (rev 187)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.tests.hello_world;
+
+import org.jboss.soa.bpel.tests.RiftSawTest;
+import org.jboss.soa.bpel.tests.RiftSawTestSetup;
+
+import junit.framework.Test;
+
+/**
+ * Test case for running the Quickstart_bpel_hello_world sample.
+ */
+public class QuickstartBPELSimpleInvokeTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "Quickstart_bpel_simple_invoke";
+
+ public QuickstartBPELSimpleInvokeTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(QuickstartBPELSimpleInvokeTestCase.class,
+ TEST_NAME,
"Quickstart_bpel_simple_invoke-1.jar,Quickstart_bpel_simple_invoke.war"));
+ }
+
+ public void testSendHello() throws Exception {
+ String result=sendMessage("hello_request1.xml",
+ "http://localhost:8080/bpel/processes/simpleInvoke");
+
+ assertMessage(result, "hello_response1.xml");
+ }
+}
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/HelloWorldWS.wsdl
===================================================================
---
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/HelloWorldWS.wsdl
(rev 0)
+++
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/HelloWorldWS.wsdl 2009-10-18
21:40:12 UTC (rev 187)
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<definitions name='HelloWorldWSService'
+targetNamespace='http://simple_invoke/helloworld'
+xmlns='http://schemas.xmlsoap.org/wsdl/'
+xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
+xmlns:tns='http://simple_invoke/helloworld'
+xmlns:xsd='http://www.w3.org/2001/XMLSchema'
+xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+>
+ <types>
+ <xs:schema targetNamespace='http://simple_invoke/helloworld'
version='1.0' xmlns:tns='http://simple_invoke/helloworld'
xmlns:xs='http://www.w3.org/2001/XMLSchema'>
+ <xs:element name='sayGoodbye' type='tns:sayGoodbye'/>
+ <xs:element name='sayGoodbyeResponse'
type='tns:sayGoodbyeResponse'/>
+ <xs:element name='sayHello' type='tns:sayHello'/>
+ <xs:element name='sayHelloResponse'
type='tns:sayHelloResponse'/>
+ <xs:complexType name='sayGoodbye'>
+ <xs:sequence>
+ <xs:element minOccurs='0' name='toWhom'
type='xs:string'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='sayGoodbyeResponse'>
+ <xs:sequence>
+ <xs:element minOccurs='0' name='return'
type='xs:string'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='sayHello'>
+ <xs:sequence>
+ <xs:element minOccurs='0' name='toWhom'
type='xs:string'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='sayHelloResponse'>
+ <xs:sequence>
+ <xs:element minOccurs='0' name='return'
type='xs:string'/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </types>
+ <message name='HelloWorld_sayGoodbye'>
+ <part element='tns:sayGoodbye' name='sayGoodbye'></part>
+ </message>
+ <message name='HelloWorld_sayHello'>
+ <part element='tns:sayHello' name='sayHello'></part>
+ </message>
+ <message name='HelloWorld_sayHelloResponse'>
+ <part element='tns:sayHelloResponse'
name='sayHelloResponse'></part>
+ </message>
+ <message name='HelloWorld_sayGoodbyeResponse'>
+ <part element='tns:sayGoodbyeResponse'
name='sayGoodbyeResponse'></part>
+ </message>
+ <portType name='HelloWorld'>
+ <operation name='sayGoodbye' parameterOrder='sayGoodbye'>
+ <input message='tns:HelloWorld_sayGoodbye'></input>
+ <output message='tns:HelloWorld_sayGoodbyeResponse'></output>
+ </operation>
+ <operation name='sayHello' parameterOrder='sayHello'>
+ <input message='tns:HelloWorld_sayHello'></input>
+ <output message='tns:HelloWorld_sayHelloResponse'></output>
+ </operation>
+ </portType>
+ <binding name='HelloWorldBinding' type='tns:HelloWorld'>
+ <soap:binding style='document'
transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='sayGoodbye'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ </operation>
+ <operation name='sayHello'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ </operation>
+ </binding>
+ <service name='HelloWorldWSService'>
+ <port binding='tns:HelloWorldBinding' name='HelloWorldPort'>
+ <soap:address
location='http://127.0.0.1:8080/Quickstart_bpel_simple_invoke/HelloWorldWS'/>
+ </port>
+ </service>
+ <plnk:partnerLinkType name="theExternalService_PartnerLinkType">
+ <plnk:role name="callingTheExternalService"
portType="tns:HelloWorld"/>
+ </plnk:partnerLinkType>
+</definitions>
\ No newline at end of file
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/SimpleInvoke.bpel
===================================================================
---
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/SimpleInvoke.bpel
(rev 0)
+++
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/SimpleInvoke.bpel 2009-10-18
21:40:12 UTC (rev 187)
@@ -0,0 +1,96 @@
+<!--
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ -->
+<process name="SimpleInvoke"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+ xmlns:intf2="http://simple_invoke/helloworld"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="SimpleInvoke.wsdl"
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <import location="HelloWorldWS.wsdl"
+ namespace="http://simple_invoke/helloworld"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="theClient_PartnerLink"
+ partnerLinkType="intf:myClientCalling_PartnerLinkType"
+ myRole="me" />
+ <partnerLink name="theExternalService_PartnerLink"
+ partnerLinkType="intf2:theExternalService_PartnerLinkType"
+ partnerRole="callingTheExternalService"
+ initializePartnerRole="yes"/>
+ </partnerLinks>
+
+ <variables>
+ <variable name="myVar"
messageType="intf:GreetingTarget_Message"/>
+ <variable name="inVar"
messageType="intf2:HelloWorld_sayHello"/>
+ <variable name="outVar"
messageType="intf2:HelloWorld_sayHelloResponse"/>
+ <variable name="tempVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="request"
+ partnerLink="theClient_PartnerLink"
+ portType="intf:SimpleInvoke_PortType"
+ operation="sayHelloTo"
+ variable="myVar"
+ createInstance="yes"/>
+
+ <assign name="assignRequestToHelloWorldWS">
+ <!-- Ode requires variable initialization -->
+ <copy>
+ <from><literal><intf2:sayHello><toWhom
xmlns=""/></intf2:sayHello></literal></from>
+ <to variable="inVar" part="sayHello"/>
+ </copy>
+ <!-- now the real copy -->
+ <copy>
+ <from variable="myVar" part="ToWhom"/>
+ <to>$inVar.sayHello/toWhom</to>
+ </copy>
+ </assign>
+
+ <invoke name="ICallTheExternalService"
+ partnerLink="theExternalService_PartnerLink"
+ portType="intf2:HelloWorld"
+ operation="sayHello"
+ inputVariable="inVar"
+ outputVariable="outVar"
+ />
+
+ <assign name="assignResponseOfHelloWorldWS">
+ <copy>
+ <from>concat($outVar.sayHelloResponse/return,' and
BPEL')</from>
+ <to variable="myVar" part="ToWhom"/>
+ </copy>
+ </assign>
+
+ <reply name="response"
+ partnerLink="theClient_PartnerLink"
+ portType="intf:SimpleInvoke_PortType"
+ operation="sayHelloTo"
+ variable="myVar"/>
+ </sequence>
+</process>
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/SimpleInvoke.cbp
===================================================================
(Binary files differ)
Property changes on:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/SimpleInvoke.cbp
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/SimpleInvoke.wsdl
===================================================================
---
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/SimpleInvoke.wsdl
(rev 0)
+++
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/SimpleInvoke.wsdl 2009-10-18
21:40:12 UTC (rev 187)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ -->
+<wsdl:definitions
+
targetNamespace="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:tns="http://www.jboss.org/bpel/examples/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:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+ <wsdl:message name="GreetingTarget_Message">
+ <wsdl:part name="ToWhom" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="SimpleInvoke_PortType">
+ <wsdl:operation name="sayHelloTo">
+ <wsdl:input message="tns:GreetingTarget_Message"
name="TestIn"/>
+ <wsdl:output message="tns:GreetingTarget_Message"
name="TestOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="SimpleInvoke_SoapBinding"
type="tns:SimpleInvoke_PortType">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="sayHelloTo">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="SimpleInvoke_Service">
+ <wsdl:port name="SimpleInvoke_Port"
binding="tns:SimpleInvoke_SoapBinding">
+ <soap:address
location="http://localhost:8080/bpel/processes/simpleInvoke"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="myClientCalling_PartnerLinkType">
+ <plnk:role name="me"
portType="tns:SimpleInvoke_PortType"/>
+ <plnk:role name="you"
portType="tns:SimpleInvoke_PortType"/>
+ </plnk:partnerLinkType>
+</wsdl:definitions>
+
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/bpel-deploy.xml
===================================================================
---
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/bpel-deploy.xml
(rev 0)
+++
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/bpel/bpel-deploy.xml 2009-10-18
21:40:12 UTC (rev 187)
@@ -0,0 +1,32 @@
+<!--
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ -->
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+
xmlns:bpl="http://www.jboss.org/bpel/examples"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+ xmlns:intf2="http://simple_invoke/helloworld">
+
+ <process name="bpl:SimpleInvoke">
+ <active>true</active>
+ <provide partnerLink="theClient_PartnerLink">
+ <service name="intf:SimpleInvoke_Service"
port="SimpleInvoke_Port"/>
+ </provide>
+ <invoke partnerLink="theExternalService_PartnerLink">
+ <service name="intf2:HelloWorldWSService"
port="HelloWorldPort"/>
+ </invoke>
+ </process>
+</deploy>
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/build.xml
===================================================================
---
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/build.xml
(rev 0)
+++
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/build.xml 2009-10-18
21:40:12 UTC (rev 187)
@@ -0,0 +1,68 @@
+<project name="Quickstart_bpel_simple_invoke" default="deploy"
basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <property name="version" value="1" />
+
+ <property name="deploy.dir" value="${basedir}/target/tests"/>
+ <property name="test.dir"
value="${basedir}/src/test/resources/samples/${ant.project.name}" />
+
+ <property name="sample.jar.name"
value="${ant.project.name}-${version}.jar" />
+
+ <property name="war.build.dir"
location="${deploy.dir}/${ant.project.name}/build/war/classes"/>
+
+ <path id="compile-classpath">
+ <fileset dir="${org.jboss.esb.server.home}/client"
includes="*.jar" /> <!-- Required for JMS Client Code. -->
+ </path>
+ <property name="compile-classpath"
refid="compile-classpath"/>
+
+ <target name="deploywar" description="make war">
+ <!-- Compile... -->
+ <mkdir dir="${deploy.dir}/${ant.project.name}" />
+
+ <mkdir dir="${war.build.dir}" />
+
+ <javac fork="true" srcdir="${test.dir}/war/src"
destdir="${war.build.dir}" debug="true">
+ <classpath>
+ <path refid="compile-classpath" />
+ <fileset dir="${test.dir}/war/resources/WEB-INF/lib"
includes="*.jar" />
+ </classpath>
+ </javac>
+
+ <!-- War... -->
+ <war
warfile="${deploy.dir}/${ant.project.name}/${ant.project.name}.war"
+ webxml="${test.dir}/war/resources/WEB-INF/web.xml">
+ <webinf dir="${test.dir}/war/resources/WEB-INF">
+ <include name="jboss-web.xml"/>
+ </webinf>
+ <classes dir="${war.build.dir}"
includes="**/*.class"/>
+ <fileset dir="${test.dir}/war/view">
+ <include name="**/*"/>
+ </fileset>
+ <classes dir="${test.dir}">
+ <include name="juddi.properties"/>
+ </classes>
+ </war>
+ </target>
+
+ <target name="undeploywar">
+ <delete
file="${deploy.dir}/${ant.project.name}/${ant.project.name}.war"/>
+ </target>
+
+ <target name="deploy" depends="deploywar" >
+ <echo>Deploy ${ant.project.name}</echo>
+ <jar basedir="${test.dir}/bpel"
destfile="${deploy.dir}/${ant.project.name}/${sample.jar.name}" />
+
+ <copy todir="${deploy.dir}/${ant.project.name}">
+ <fileset dir="${test.dir}/messages"/>
+ </copy>
+ </target>
+
+ <target name="undeploy" depends="undeploywar" >
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${sample.jar.name}" />
+ </target>
+</project>
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/messages/hello_request1.xml
===================================================================
---
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/messages/hello_request1.xml
(rev 0)
+++
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/messages/hello_request1.xml 2009-10-18
21:40:12 UTC (rev 187)
@@ -0,0 +1,8 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:sayHelloTo>
+ <ToWhom>ME</ToWhom>
+ </wsdl:sayHelloTo>
+ </soapenv:Body>
+</soapenv:Envelope>
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/messages/hello_response1.xml
===================================================================
---
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/messages/hello_response1.xml
(rev 0)
+++
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/messages/hello_response1.xml 2009-10-18
21:40:12 UTC (rev 187)
@@ -0,0 +1 @@
+<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">&l...
xmlns:odens="http://www.jboss.org/bpel/examples/wsdl"><Te...
xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">Hello
World</TestPart></odens:helloResponse></soapenv:Body></soapenv:Envelope>
\ No newline at end of file
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/resources/WEB-INF/web.xml
===================================================================
---
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/resources/WEB-INF/web.xml
(rev 0)
+++
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/resources/WEB-INF/web.xml 2009-10-18
21:40:12 UTC (rev 187)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <servlet>
+ <servlet-name>HelloWorldWS</servlet-name>
+
<servlet-class>org.jboss.soa.bpel.samples.quickstart.simple_invoke.HelloWorldWS</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>HelloWorldWS</servlet-name>
+ <url-pattern>/HelloWorldWS</url-pattern>
+ </servlet-mapping>
+
+</web-app>
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java
===================================================================
---
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java
(rev 0)
+++
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java 2009-10-18
21:40:12 UTC (rev 187)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.bpel.samples.quickstart.simple_invoke;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.WebParam;
+
+@WebService(name = "HelloWorld", targetNamespace =
"http://simple_invoke/helloworld")
+public class HelloWorldWS
+{
+ @WebMethod
+ public String sayHello(@WebParam(name = "toWhom")
+ String toWhom)
+ {
+ System.out.println("\n");
+ System.out.println("*************************************************");
+ System.out.println("toWhom Parameter: " + toWhom );
+ System.out.println("*************************************************");
+ System.out.println("\n");
+ String greeting = "Hello " + toWhom + ". Sincerely, JBossWS";
+ return greeting;
+
+ }
+
+ @WebMethod
+ public String sayGoodbye(@WebParam(name = "toWhom")
+ String toWhom)
+ {
+
+ String greeting = "Goodbye Cruel World, sincerely '" + toWhom +
"' at " + new java.util.Date();
+
+ return greeting;
+
+ }
+}
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/view/index.jsp
===================================================================
---
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/view/index.jsp
(rev 0)
+++
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_invoke/war/view/index.jsp 2009-10-18
21:40:12 UTC (rev 187)
@@ -0,0 +1,9 @@
+<html>
+ <body>
+ This is just a place holder.<br>
+ Verify the that the WS has been deployed by hitting
+ <a href="http://localhost:8080/jbossws">
+
http://localhost:8080/jbossws
+ </a>
+ </body>
+</html>
\ No newline at end of file