Author: objectiser
Date: 2010-06-29 11:35:29 -0400 (Tue, 29 Jun 2010)
New Revision: 822
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/HelloWorldWS.wsdl
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.bpel
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.wsdl
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/bpel-deploy.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/build.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/deployment.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/jboss-esb.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_request1.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_response1.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/resources/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/resources/WEB-INF/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/resources/WEB-INF/web.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/quickstart/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/view/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/view/index.jsp
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/HelloWorldWS.wsdl
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.bpel
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.wsdl
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/bpel-deploy.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/build.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/deployment.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/jboss-esb.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_request1.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_response1.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/resources/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/resources/WEB-INF/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/resources/WEB-INF/web.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/quickstart/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/view/
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/view/index.jsp
Modified:
branches/RiftSaw-2.1.x/integration-tests/build.xml
trunk/integration-tests/build.xml
Log:
Added second ESB invoke test, this time using http-gateway and SOAPProxy for the
integration test.
Modified: branches/RiftSaw-2.1.x/integration-tests/build.xml
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/build.xml 2010-06-29 11:16:21 UTC (rev 821)
+++ branches/RiftSaw-2.1.x/integration-tests/build.xml 2010-06-29 15:35:29 UTC (rev 822)
@@ -144,6 +144,7 @@
<ant
antfile="src/test/resources/samples/Quickstart_esb_bpel_loan_approval/build.xml"
/>
<ant
antfile="src/test/resources/samples/Quickstart_esb_bpel_loan_fault/build.xml"
/>
<ant
antfile="src/test/resources/samples/Quickstart_simple_esb_proxy_invoke/build.xml"
/>
+ <ant
antfile="src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/build.xml"
/>
<ant antfile="src/test/resources/samples/Tutorial_bpel_atm/build.xml"
/>
<ant antfile="src/test/resources/samples/Tutorial_bpel_purchase/build.xml"
/>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java 2010-06-29
15:35:29 UTC (rev 822)
@@ -0,0 +1,67 @@
+/*
+ * 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.samples;
+
+import org.jboss.soa.bpel.tests.RiftSawTest;
+import org.jboss.soa.bpel.tests.RiftSawTestSetup;
+
+import junit.framework.Test;
+
+/**
+ * Test case for running the ESB simple_esb_proxy_invoke sample.
+ */
+public class QuickstartSimpleESBProxyInvoke2TestCase extends RiftSawTest {
+
+ private static final String TEST_NAME =
"Quickstart_simple_esb_proxy_invoke2";
+
+ public QuickstartSimpleESBProxyInvoke2TestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ if
(System.getProperty("ws.stack","native").equals("native"))
{
+ return(new RiftSawTestSetup(QuickstartSimpleESBProxyInvoke2TestCase.class,
+ TEST_NAME,
"Quickstart_simple_esb_proxy_invoke2-1.jar,Quickstart_simple_esb_proxy_invoke2.war,Quickstart_simple_esb_proxy_invoke2-service.esb"));
+ } else {
+ return(null);
+ }
+ }
+
+ public void testSendHello() throws Exception {
+ if
(System.getProperty("ws.stack","native").equals("native") ==
false) {
+ return;
+ }
+
+ String result=sendSOAPMessage("hello_request1.xml",
+ "http://localhost:8080/Quickstart_bpel_simple_invokeWS");
+
+ // If testing against cxf, then result is presented slightly differently
+ if (result.indexOf("SOAP-ENV") != -1) {
+ result = result.replaceAll("SOAP-ENV", "env");
+ result = result.replaceAll(" xmlns=\"\"","");
+ result = result.replaceAll("\"","'");
+ result = result.replaceAll("<env:Header
/>","<env:Header></env:Header>");
+ }
+
+ assertMessageFromFile(result, "hello_response1.xml");
+ }
+}
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/HelloWorldWS.wsdl
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/HelloWorldWS.wsdl
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/HelloWorldWS.wsdl 2010-06-29
15:35:29 UTC (rev 822)
@@ -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://localhost:8080/Quickstart_simple_esb_proxy_invoke2-service/http/SimpleESBProxyInvoke/Service'/>
+ </port>
+ </service>
+ <plnk:partnerLinkType name="theExternalService_PartnerLinkType">
+ <plnk:role name="callingTheExternalService"
portType="tns:HelloWorld"/>
+ </plnk:partnerLinkType>
+</definitions>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.bpel
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.bpel
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.bpel 2010-06-29
15:35:29 UTC (rev 822)
@@ -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/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.wsdl
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.wsdl
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.wsdl 2010-06-29
15:35:29 UTC (rev 822)
@@ -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/Quickstart_bpel_simple_invokeWS"/>
+ </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/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/bpel-deploy.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/bpel-deploy.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/bpel-deploy.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -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/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/build.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/build.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/build.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -0,0 +1,77 @@
+<project name="Quickstart_simple_esb_proxy_invoke2"
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="sample.esb.name"
value="${ant.project.name}-service.esb" />
+
+ <property name="war.build.dir"
location="${deploy.dir}/${ant.project.name}/build/war/classes"/>
+
+ <path id="compile-classpath">
+ <fileset dir="${org.jboss.as.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" />
+ </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">
+ <echo>Undeploy WAR</echo>
+ <delete
file="${deploy.dir}/${ant.project.name}/${ant.project.name}.war"/>
+ </target>
+
+ <target name="deployesb" >
+ <jar basedir="${test.dir}/esbcontent"
destfile="${deploy.dir}/${ant.project.name}/${sample.esb.name}" />
+ </target>
+
+ <target name="undeployesb">
+ <delete file="${deploy.dir}/${ant.project.name}/${sample.esb.name}"/>
+ </target>
+
+ <target name="deploy" depends="deploywar,deployesb" >
+ <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,undeployesb" >
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${sample.jar.name}" />
+ </target>
+</project>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/deployment.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/deployment.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/deployment.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -0,0 +1,3 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=soap.esb</depends>
+</jbossesb-deployment>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/jboss-esb.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/jboss-esb.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/jboss-esb.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -0,0 +1,30 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc...
parameterReloadSecs="5">
+
+ <services>
+
+ <service category="SimpleESBProxyInvoke" name="Service"
description="WebService proxy through to BPEL process"
+ invmScope="GLOBAL">
+
+ <listeners>
+ <http-gateway name="Proxy_Basic-GwListener" />
+ </listeners>
+ <actions mep="RequestResponse">
+ <action name="echo-request"
+ class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="message" value="Message before SOAPProxy"
/>
+ </action>
+ <action name="proxy"
+ class="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy">
+ <property name="wsdl"
value="http://127.0.0.1:8080/Quickstart_simple_esb_proxy_invoke2/HelloWorldWS?wsdl"/>
+ </action>
+ <action name="echo-response"
+ class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="message" value="Message after SOAPProxy"
/>
+ </action>
+ </actions>
+ </service>
+
+ </services>
+
+</jbossesb>
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_request1.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_request1.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_request1.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -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/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_response1.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_response1.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_response1.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -0,0 +1 @@
+<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:...
xmlns:odens='http://www.jboss.org/bpel/examples/wsdl'><ToWh... ME.
Sincerely, JBossWS and
BPEL</ToWhom></odens:sayHelloToResponse></env:Body></env:Envelope>
\ No newline at end of file
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/resources/WEB-INF/web.xml
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/resources/WEB-INF/web.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/resources/WEB-INF/web.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -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/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java 2010-06-29
15:35:29 UTC (rev 822)
@@ -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/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/view/index.jsp
===================================================================
---
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/view/index.jsp
(rev 0)
+++
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/view/index.jsp 2010-06-29
15:35:29 UTC (rev 822)
@@ -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
Modified: trunk/integration-tests/build.xml
===================================================================
--- trunk/integration-tests/build.xml 2010-06-29 11:16:21 UTC (rev 821)
+++ trunk/integration-tests/build.xml 2010-06-29 15:35:29 UTC (rev 822)
@@ -144,6 +144,7 @@
<ant
antfile="src/test/resources/samples/Quickstart_esb_bpel_loan_approval/build.xml"
/>
<ant
antfile="src/test/resources/samples/Quickstart_esb_bpel_loan_fault/build.xml"
/>
<ant
antfile="src/test/resources/samples/Quickstart_simple_esb_proxy_invoke/build.xml"
/>
+ <ant
antfile="src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/build.xml"
/>
<ant antfile="src/test/resources/samples/Tutorial_bpel_atm/build.xml"
/>
<ant antfile="src/test/resources/samples/Tutorial_bpel_purchase/build.xml"
/>
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java 2010-06-29
15:35:29 UTC (rev 822)
@@ -0,0 +1,67 @@
+/*
+ * 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.samples;
+
+import org.jboss.soa.bpel.tests.RiftSawTest;
+import org.jboss.soa.bpel.tests.RiftSawTestSetup;
+
+import junit.framework.Test;
+
+/**
+ * Test case for running the ESB simple_esb_proxy_invoke sample.
+ */
+public class QuickstartSimpleESBProxyInvoke2TestCase extends RiftSawTest {
+
+ private static final String TEST_NAME =
"Quickstart_simple_esb_proxy_invoke2";
+
+ public QuickstartSimpleESBProxyInvoke2TestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ if
(System.getProperty("ws.stack","native").equals("native"))
{
+ return(new RiftSawTestSetup(QuickstartSimpleESBProxyInvoke2TestCase.class,
+ TEST_NAME,
"Quickstart_simple_esb_proxy_invoke2-1.jar,Quickstart_simple_esb_proxy_invoke2.war,Quickstart_simple_esb_proxy_invoke2-service.esb"));
+ } else {
+ return(null);
+ }
+ }
+
+ public void testSendHello() throws Exception {
+ if
(System.getProperty("ws.stack","native").equals("native") ==
false) {
+ return;
+ }
+
+ String result=sendSOAPMessage("hello_request1.xml",
+ "http://localhost:8080/Quickstart_bpel_simple_invokeWS");
+
+ // If testing against cxf, then result is presented slightly differently
+ if (result.indexOf("SOAP-ENV") != -1) {
+ result = result.replaceAll("SOAP-ENV", "env");
+ result = result.replaceAll(" xmlns=\"\"","");
+ result = result.replaceAll("\"","'");
+ result = result.replaceAll("<env:Header
/>","<env:Header></env:Header>");
+ }
+
+ assertMessageFromFile(result, "hello_response1.xml");
+ }
+}
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/HelloWorldWS.wsdl
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/HelloWorldWS.wsdl
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/HelloWorldWS.wsdl 2010-06-29
15:35:29 UTC (rev 822)
@@ -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://localhost:8080/Quickstart_simple_esb_proxy_invoke2-service/http/SimpleESBProxyInvoke/Service'/>
+ </port>
+ </service>
+ <plnk:partnerLinkType name="theExternalService_PartnerLinkType">
+ <plnk:role name="callingTheExternalService"
portType="tns:HelloWorld"/>
+ </plnk:partnerLinkType>
+</definitions>
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.bpel
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.bpel
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.bpel 2010-06-29
15:35:29 UTC (rev 822)
@@ -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:
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.wsdl
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.wsdl
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/SimpleInvoke.wsdl 2010-06-29
15:35:29 UTC (rev 822)
@@ -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/Quickstart_bpel_simple_invokeWS"/>
+ </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:
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/bpel-deploy.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/bpel-deploy.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/bpel/bpel-deploy.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -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:
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/build.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/build.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/build.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -0,0 +1,77 @@
+<project name="Quickstart_simple_esb_proxy_invoke2"
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="sample.esb.name"
value="${ant.project.name}-service.esb" />
+
+ <property name="war.build.dir"
location="${deploy.dir}/${ant.project.name}/build/war/classes"/>
+
+ <path id="compile-classpath">
+ <fileset dir="${org.jboss.as.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" />
+ </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">
+ <echo>Undeploy WAR</echo>
+ <delete
file="${deploy.dir}/${ant.project.name}/${ant.project.name}.war"/>
+ </target>
+
+ <target name="deployesb" >
+ <jar basedir="${test.dir}/esbcontent"
destfile="${deploy.dir}/${ant.project.name}/${sample.esb.name}" />
+ </target>
+
+ <target name="undeployesb">
+ <delete file="${deploy.dir}/${ant.project.name}/${sample.esb.name}"/>
+ </target>
+
+ <target name="deploy" depends="deploywar,deployesb" >
+ <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,undeployesb" >
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${sample.jar.name}" />
+ </target>
+</project>
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/deployment.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/deployment.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/deployment.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -0,0 +1,3 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=soap.esb</depends>
+</jbossesb-deployment>
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/jboss-esb.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/jboss-esb.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/esbcontent/META-INF/jboss-esb.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -0,0 +1,30 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc...
parameterReloadSecs="5">
+
+ <services>
+
+ <service category="SimpleESBProxyInvoke" name="Service"
description="WebService proxy through to BPEL process"
+ invmScope="GLOBAL">
+
+ <listeners>
+ <http-gateway name="Proxy_Basic-GwListener" />
+ </listeners>
+ <actions mep="RequestResponse">
+ <action name="echo-request"
+ class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="message" value="Message before SOAPProxy"
/>
+ </action>
+ <action name="proxy"
+ class="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy">
+ <property name="wsdl"
value="http://127.0.0.1:8080/Quickstart_simple_esb_proxy_invoke2/HelloWorldWS?wsdl"/>
+ </action>
+ <action name="echo-response"
+ class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="message" value="Message after SOAPProxy"
/>
+ </action>
+ </actions>
+ </service>
+
+ </services>
+
+</jbossesb>
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_request1.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_request1.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_request1.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -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:
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_response1.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_response1.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/messages/hello_response1.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -0,0 +1 @@
+<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:...
xmlns:odens='http://www.jboss.org/bpel/examples/wsdl'><ToWh... ME.
Sincerely, JBossWS and
BPEL</ToWhom></odens:sayHelloToResponse></env:Body></env:Envelope>
\ No newline at end of file
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/resources/WEB-INF/web.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/resources/WEB-INF/web.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/resources/WEB-INF/web.xml 2010-06-29
15:35:29 UTC (rev 822)
@@ -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:
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java 2010-06-29
15:35:29 UTC (rev 822)
@@ -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:
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/view/index.jsp
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/view/index.jsp
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_simple_esb_proxy_invoke2/war/view/index.jsp 2010-06-29
15:35:29 UTC (rev 822)
@@ -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