riftsaw SVN: r777 - in trunk/integration-tests: src/test/java/org/jboss/soa/bpel/tests/samples and 6 other directories.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2010-06-22 11:55:31 -0400 (Tue, 22 Jun 2010)
New Revision: 777
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELInvokeESBEBWSTestCase.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.bpel
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.wsdl
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/CreditAgency.wsdl
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/bpel-deploy.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/build.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/deployment.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jbm-queue-service.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jboss-esb.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/creditAgency.xsd
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/transform.xslt
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_request1.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_response1.xml
Modified:
trunk/integration-tests/build.xml
Log:
Add integration test with BPEL invoking EBWS based ESB service.
Modified: trunk/integration-tests/build.xml
===================================================================
--- trunk/integration-tests/build.xml 2010-06-22 15:53:43 UTC (rev 776)
+++ trunk/integration-tests/build.xml 2010-06-22 15:55:31 UTC (rev 777)
@@ -137,6 +137,7 @@
<ant antfile="src/test/resources/samples/Quickstart_bpel_simple_pick/build.xml" />
<ant antfile="src/test/resources/samples/Quickstart_bpel_loan_approval/build.xml" />
+ <ant antfile="src/test/resources/samples/Quickstart_bpel_approval_service/build.xml" />
<ant antfile="src/test/resources/samples/Quickstart_esb_bpel_hello_world/build.xml" />
<ant antfile="src/test/resources/samples/Quickstart_esb_bpel_hello_world_extended_timeout/build.xml" />
<ant antfile="src/test/resources/samples/Quickstart_esb_bpel_hello_world_no_extended_timeout/build.xml" />
Added: trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELInvokeESBEBWSTestCase.java
===================================================================
--- trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELInvokeESBEBWSTestCase.java (rev 0)
+++ trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELInvokeESBEBWSTestCase.java 2010-06-22 15:55:31 UTC (rev 777)
@@ -0,0 +1,59 @@
+/*
+ * 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 Quickstart_bpel_loan_approval sample from an ESB service.
+ */
+public class QuickstartBPELInvokeESBEBWSTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "Quickstart_bpel_approval_service";
+
+ public QuickstartBPELInvokeESBEBWSTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(QuickstartBPELInvokeESBEBWSTestCase.class,
+ TEST_NAME, "CreditAgency.esb,Quickstart_bpel_approval_service-1.jar"));
+ }
+
+ public void testSendHello() throws Exception {
+ String result=sendSOAPMessage("approve_request1.xml",
+ "http://localhost:8080/Quickstart_bpel_approval_serviceWS");
+
+ // 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, "approve_response1.xml");
+ }
+}
Added: trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.bpel
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.bpel (rev 0)
+++ trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.bpel 2010-06-22 15:55:31 UTC (rev 777)
@@ -0,0 +1,97 @@
+<!--
+ * 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="ApprovalService"
+ 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://soa.jboss.org/CreditServices"
+ xmlns:ca='http://www.jboss.org/examples/creditAgency'
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="ApprovalService.wsdl"
+ namespace="http://www.jboss.org/bpel/examples/wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <import location="CreditAgency.wsdl"
+ namespace="http://soa.jboss.org/CreditServices"
+ 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:ApprovalTarget_Message"/>
+ <variable name="inVar" messageType="intf2:CreditAgencyServiceReq"/>
+ <variable name="outVar" messageType="intf2:CreditAgencyServiceRes"/>
+ <variable name="tempVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="request"
+ partnerLink="theClient_PartnerLink"
+ portType="intf:ApprovalService_PortType"
+ operation="approve"
+ variable="myVar"
+ createInstance="yes"/>
+
+ <assign name="assignRequestToHelloWorldWS">
+ <!-- Ode requires variable initialization -->
+ <copy>
+ <from><literal><ca:CreditCheckRequest customerId=""/></literal></from>
+ <to variable="inVar" part="in"/>
+ </copy>
+ <!-- now the real copy -->
+ <copy>
+ <from variable="myVar" part="contents"/>
+ <to>$inVar.in//@customerId</to>
+ </copy>
+ </assign>
+
+ <invoke name="ICallTheExternalService"
+ partnerLink="theExternalService_PartnerLink"
+ portType="intf2:CreditAgencyServicePortType"
+ operation="CreditAgencyServiceOp"
+ inputVariable="inVar"
+ outputVariable="outVar"
+ />
+
+ <assign name="assignResponseOfHelloWorldWS">
+ <copy>
+ <from>concat($outVar.out//@customerId,' is Approved')</from>
+ <to variable="myVar" part="contents"/>
+ </copy>
+ </assign>
+
+ <reply name="response"
+ partnerLink="theClient_PartnerLink"
+ portType="intf:ApprovalService_PortType"
+ operation="approve"
+ variable="myVar"/>
+ </sequence>
+</process>
Added: trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.wsdl
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.wsdl (rev 0)
+++ trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.wsdl 2010-06-22 15:55:31 UTC (rev 777)
@@ -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="ApprovalTarget_Message">
+ <wsdl:part name="contents" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="ApprovalService_PortType">
+ <wsdl:operation name="approve">
+ <wsdl:input message="tns:ApprovalTarget_Message" name="TestIn"/>
+ <wsdl:output message="tns:ApprovalTarget_Message" name="TestOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="ApprovalService_SoapBinding" type="tns:ApprovalService_PortType">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="approve">
+ <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="ApprovalService_Service">
+ <wsdl:port name="ApprovalService_Port" binding="tns:ApprovalService_SoapBinding">
+ <soap:address location="http://localhost:8080/Quickstart_bpel_approval_serviceWS"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="myClientCalling_PartnerLinkType">
+ <plnk:role name="me" portType="tns:ApprovalService_PortType"/>
+ <plnk:role name="you" portType="tns:ApprovalServicee_PortType"/>
+ </plnk:partnerLinkType>
+</wsdl:definitions>
+
Added: trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/CreditAgency.wsdl
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/CreditAgency.wsdl (rev 0)
+++ trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/CreditAgency.wsdl 2010-06-22 15:55:31 UTC (rev 777)
@@ -0,0 +1,84 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<wsdl:definitions targetNamespace='http://soa.jboss.org/CreditServices' xmlns:ns1='http://www.jboss.org/examples/creditAgency' xmlns:ns2='http://www.jboss.org/examples/creditAgency' xmlns:ns3='http://www.jboss.org/examples/creditAgency' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://soa.jboss.org/CreditServices' xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'>
+ <wsdl:types>
+ <schema elementFormDefault='qualified' targetNamespace='http://www.jboss.org/examples/creditAgency' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:ca='http://www.jboss.org/examples/creditAgency'>
+ <element name='CreditCheckRequest' type='ca:CreditCheckRequestType'/>
+ <element name='CreditCheckOk' type='ca:CreditCheckOKType'/>
+ <element name='CreditCheckInvalid' type='ca:CreditCheckInvalidType'/>
+ <complexType name='CreditCheckRequestType'>
+ <attribute name='customerId' type='string'/>
+ </complexType>
+
+ <complexType name='CreditCheckOKType'>
+ <attribute name='customerId' type='string'/>
+ <attribute name='score' type='string'/>
+ </complexType>
+ <complexType name='CreditCheckInvalidType'>
+ <attribute name='customerId' type='string'/>
+ <attribute name='reason' type='string'/>
+ </complexType>
+ </schema>
+
+ </wsdl:types>
+ <wsdl:message name='CreditAgencyServiceReq'>
+ <wsdl:part element='ns2:CreditCheckRequest' name='in'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceFault1'>
+ <wsdl:part element='ns2:CreditCheckInvalid' name='fault1'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceFault2'>
+ <wsdl:part element='ns2:CreditCheckInvalid' name='fault2'></wsdl:part>
+
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceFault3'>
+ <wsdl:part element='ns2:CreditCheckInvalid' name='fault3'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceRes'>
+ <wsdl:part element='ns2:CreditCheckOk' name='out'></wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name='CreditAgencyServicePortType'>
+ <wsdl:operation name='CreditAgencyServiceOp'>
+
+ <wsdl:input message='tns:CreditAgencyServiceReq' name='CreditAgencyServiceReq'></wsdl:input>
+ <wsdl:output message='tns:CreditAgencyServiceRes' name='CreditAgencyServiceRes'></wsdl:output>
+ <wsdl:fault message='tns:CreditAgencyServiceFault2' name='fault2'></wsdl:fault>
+ <wsdl:fault message='tns:CreditAgencyServiceFault3' name='fault3'></wsdl:fault>
+ <wsdl:fault message='tns:CreditAgencyServiceFault1' name='fault1'></wsdl:fault>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name='CreditAgencyServiceBinding' type='tns:CreditAgencyServicePortType'>
+ <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
+
+ <wsdl:operation name='CreditAgencyServiceOp'>
+ <soap:operation soapAction='http://soa.jboss.org/CreditServices/CreditAgencyServiceOpResp'/>
+ <wsdl:input name='CreditAgencyServiceReq'>
+ <soap:body use='literal'/>
+ </wsdl:input>
+ <wsdl:output name='CreditAgencyServiceRes'>
+ <soap:body use='literal'/>
+ </wsdl:output>
+ <wsdl:fault name='fault2'>
+
+ <soap:fault name='fault2' use='literal'/>
+ </wsdl:fault>
+ <wsdl:fault name='fault3'>
+ <soap:fault name='fault3' use='literal'/>
+ </wsdl:fault>
+ <wsdl:fault name='fault1'>
+ <soap:fault name='fault1' use='literal'/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ </wsdl:binding>
+ <wsdl:service name='CreditAgencyServiceService'>
+ <wsdl:port binding='tns:CreditAgencyServiceBinding' name='CreditAgencyServicePortType'>
+ <soap:address location='http://127.0.0.1:8080/CreditAgency/ebws/CreditServices/CreditAgencyService'/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="theExternalService_PartnerLinkType">
+ <plnk:role name="callingTheExternalService" portType="tns:CreditAgencyServicePortType"/>
+ </plnk:partnerLinkType>
+
+</wsdl:definitions>
Added: trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/bpel-deploy.xml
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/bpel-deploy.xml (rev 0)
+++ trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/bpel-deploy.xml 2010-06-22 15:55:31 UTC (rev 777)
@@ -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://soa.jboss.org/CreditServices">
+
+ <process name="bpl:ApprovalService">
+ <active>true</active>
+ <provide partnerLink="theClient_PartnerLink">
+ <service name="intf:ApprovalService_Service" port="ApprovalService_Port"/>
+ </provide>
+ <invoke partnerLink="theExternalService_PartnerLink">
+ <service name="intf2:CreditAgencyServiceService" port="CreditAgencyServicePortType"/>
+ </invoke>
+ </process>
+</deploy>
Added: trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/build.xml
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/build.xml (rev 0)
+++ trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/build.xml 2010-06-22 15:55:31 UTC (rev 777)
@@ -0,0 +1,47 @@
+<project name="Quickstart_bpel_approval_service" 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="CreditAgency.esb" />
+
+
+ <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="deployesb" >
+ <mkdir dir="${deploy.dir}/${ant.project.name}" />
+
+ <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="deployesb" >
+ <echo>Deploy ${ant.project.name}</echo>
+ <jar basedir="${test.dir}/bpelContent" 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="undeployesb" >
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${ant.project.name}/${sample.jar.name}" />
+ </target>
+
+</project>
Added: trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/deployment.xml
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/deployment.xml (rev 0)
+++ trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/deployment.xml 2010-06-22 15:55:31 UTC (rev 777)
@@ -0,0 +1,3 @@
+<jbossesb-deployment>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=CreditAgency_ESB</depends>
+</jbossesb-deployment>
Added: trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jbm-queue-service.xml
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jbm-queue-service.xml (rev 0)
+++ trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jbm-queue-service.xml 2010-06-22 15:55:31 UTC (rev 777)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=CreditAgency_ESB"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=CreditAgency_ESB_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+</server>
Added: trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jboss-esb.xml
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jboss-esb.xml (rev 0)
+++ trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jboss-esb.xml 2010-06-22 15:55:31 UTC (rev 777)
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<jbossesb parameterReloadSecs="5"
+ xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml..."
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml... http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schem...">
+ <providers>
+ <jms-provider connection-factory="ConnectionFactory" name="JBossMessaging">
+ <jms-bus busid="creditAgencyChannel">
+ <jms-message-filter dest-name="queue/CreditAgency_ESB" dest-type="QUEUE"/>
+ </jms-bus>
+ </jms-provider>
+ </providers>
+ <services>
+ <service category="CreditServices" description="check customer credit" name="CreditAgencyService">
+ <listeners>
+ <jms-listener busidref="creditAgencyChannel" name="creditAgencyListener"/>
+ </listeners>
+ <actions faultXsd="creditAgency.xsd" inXsd="creditAgency.xsd" outXsd="creditAgency.xsd">
+ <action class="org.jboss.soa.esb.actions.SystemPrintln" name="PrintCreditCheckMessage">
+ <property name="message" value="Message received by Credit Agency"/>
+ <property name="printfull" value="true"/>
+ </action>
+ <action
+ class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction" name="CreateResponse">
+ <property name="templateFile" value="/transform.xslt"/>
+ <property name="resultType" value="STRING"/>
+ </action>
+ <action class="org.jboss.soa.esb.actions.SystemPrintln" name="PrintCreditCheckOkMessage">
+ <property name="message" value="Message sent from Credit Agency"/>
+ <property name="printfull" value="true"/>
+ </action>
+
+ </actions>
+ </service>
+ </services>
+</jbossesb>
Added: trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/creditAgency.xsd
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/creditAgency.xsd (rev 0)
+++ trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/creditAgency.xsd 2010-06-22 15:55:31 UTC (rev 777)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.jboss.org/examples/creditAgency" xmlns:ca="http://www.jboss.org/examples/creditAgency" elementFormDefault="qualified">
+
+ <element name="CreditCheckRequest" type="ca:CreditCheckRequestType"></element>
+ <element name="CreditCheckOk" type="ca:CreditCheckOKType"></element>
+ <element name="CreditCheckInvalid" type="ca:CreditCheckInvalidType"></element>
+
+ <complexType name="CreditCheckRequestType">
+ <attribute name="customerId" type="string"></attribute>
+ </complexType>
+
+ <complexType name="CreditCheckOKType">
+ <attribute name="customerId" type="string"></attribute>
+ <attribute name="score" type="string"></attribute>
+ </complexType>
+
+ <complexType name="CreditCheckInvalidType">
+ <attribute name="customerId" type="string"></attribute>
+ <attribute name="reason" type="string"></attribute>
+ </complexType>
+</schema>
\ No newline at end of file
Added: trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/transform.xslt
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/transform.xslt (rev 0)
+++ trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/transform.xslt 2010-06-22 15:55:31 UTC (rev 777)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template xmlns:ca="http://www.jboss.org/examples/creditAgency" match="/ca:CreditCheckRequest">
+ <ca:CreditCheckOk xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ca="http://www.jboss.org/examples/creditAgency"
+ xsi:schemaLocation="http://www.jboss.org/examples/creditAgency ../creditAgency.xsd "
+ customerId="{@customerId}"
+ score="500" />
+
+ </xsl:template>
+
+</xsl:stylesheet>
Added: trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_request1.xml
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_request1.xml (rev 0)
+++ trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_request1.xml 2010-06-22 15:55:31 UTC (rev 777)
@@ -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:approve>
+ <contents>John</contents>
+ </wsdl:approve>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_response1.xml
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_response1.xml (rev 0)
+++ trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_response1.xml 2010-06-22 15:55:31 UTC (rev 777)
@@ -0,0 +1 @@
+<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><odens:approveResponse xmlns:odens='http://www.jboss.org/bpel/examples/wsdl'><contents>John is Approved</contents></odens:approveResponse></env:Body></env:Envelope>
\ No newline at end of file
14 years
riftsaw SVN: r776 - in branches/RiftSaw-2.1.x/integration-tests: src/test/java/org/jboss/soa/bpel/tests/samples and 6 other directories.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2010-06-22 11:53:43 -0400 (Tue, 22 Jun 2010)
New Revision: 776
Added:
branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELInvokeESBEBWSTestCase.java
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.bpel
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.wsdl
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/CreditAgency.wsdl
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/bpel-deploy.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/build.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/deployment.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jbm-queue-service.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jboss-esb.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/creditAgency.xsd
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/lib/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/transform.xslt
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_request1.xml
branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_response1.xml
Modified:
branches/RiftSaw-2.1.x/integration-tests/build.xml
Log:
Add integration test with BPEL invoking EBWS based ESB service.
Modified: branches/RiftSaw-2.1.x/integration-tests/build.xml
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/build.xml 2010-06-22 14:12:30 UTC (rev 775)
+++ branches/RiftSaw-2.1.x/integration-tests/build.xml 2010-06-22 15:53:43 UTC (rev 776)
@@ -137,6 +137,7 @@
<ant antfile="src/test/resources/samples/Quickstart_bpel_simple_pick/build.xml" />
<ant antfile="src/test/resources/samples/Quickstart_bpel_loan_approval/build.xml" />
+ <ant antfile="src/test/resources/samples/Quickstart_bpel_approval_service/build.xml" />
<ant antfile="src/test/resources/samples/Quickstart_esb_bpel_hello_world/build.xml" />
<ant antfile="src/test/resources/samples/Quickstart_esb_bpel_hello_world_extended_timeout/build.xml" />
<ant antfile="src/test/resources/samples/Quickstart_esb_bpel_hello_world_no_extended_timeout/build.xml" />
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELInvokeESBEBWSTestCase.java
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELInvokeESBEBWSTestCase.java (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELInvokeESBEBWSTestCase.java 2010-06-22 15:53:43 UTC (rev 776)
@@ -0,0 +1,59 @@
+/*
+ * 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 Quickstart_bpel_loan_approval sample from an ESB service.
+ */
+public class QuickstartBPELInvokeESBEBWSTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "Quickstart_bpel_approval_service";
+
+ public QuickstartBPELInvokeESBEBWSTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(QuickstartBPELInvokeESBEBWSTestCase.class,
+ TEST_NAME, "CreditAgency.esb,Quickstart_bpel_approval_service-1.jar"));
+ }
+
+ public void testSendHello() throws Exception {
+ String result=sendSOAPMessage("approve_request1.xml",
+ "http://localhost:8080/Quickstart_bpel_approval_serviceWS");
+
+ // 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, "approve_response1.xml");
+ }
+}
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.bpel
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.bpel (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.bpel 2010-06-22 15:53:43 UTC (rev 776)
@@ -0,0 +1,97 @@
+<!--
+ * 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="ApprovalService"
+ 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://soa.jboss.org/CreditServices"
+ xmlns:ca='http://www.jboss.org/examples/creditAgency'
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="ApprovalService.wsdl"
+ namespace="http://www.jboss.org/bpel/examples/wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <import location="CreditAgency.wsdl"
+ namespace="http://soa.jboss.org/CreditServices"
+ 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:ApprovalTarget_Message"/>
+ <variable name="inVar" messageType="intf2:CreditAgencyServiceReq"/>
+ <variable name="outVar" messageType="intf2:CreditAgencyServiceRes"/>
+ <variable name="tempVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="request"
+ partnerLink="theClient_PartnerLink"
+ portType="intf:ApprovalService_PortType"
+ operation="approve"
+ variable="myVar"
+ createInstance="yes"/>
+
+ <assign name="assignRequestToHelloWorldWS">
+ <!-- Ode requires variable initialization -->
+ <copy>
+ <from><literal><ca:CreditCheckRequest customerId=""/></literal></from>
+ <to variable="inVar" part="in"/>
+ </copy>
+ <!-- now the real copy -->
+ <copy>
+ <from variable="myVar" part="contents"/>
+ <to>$inVar.in//@customerId</to>
+ </copy>
+ </assign>
+
+ <invoke name="ICallTheExternalService"
+ partnerLink="theExternalService_PartnerLink"
+ portType="intf2:CreditAgencyServicePortType"
+ operation="CreditAgencyServiceOp"
+ inputVariable="inVar"
+ outputVariable="outVar"
+ />
+
+ <assign name="assignResponseOfHelloWorldWS">
+ <copy>
+ <from>concat($outVar.out//@customerId,' is Approved')</from>
+ <to variable="myVar" part="contents"/>
+ </copy>
+ </assign>
+
+ <reply name="response"
+ partnerLink="theClient_PartnerLink"
+ portType="intf:ApprovalService_PortType"
+ operation="approve"
+ variable="myVar"/>
+ </sequence>
+</process>
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.wsdl
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.wsdl (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/ApprovalService.wsdl 2010-06-22 15:53:43 UTC (rev 776)
@@ -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="ApprovalTarget_Message">
+ <wsdl:part name="contents" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="ApprovalService_PortType">
+ <wsdl:operation name="approve">
+ <wsdl:input message="tns:ApprovalTarget_Message" name="TestIn"/>
+ <wsdl:output message="tns:ApprovalTarget_Message" name="TestOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="ApprovalService_SoapBinding" type="tns:ApprovalService_PortType">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="approve">
+ <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="ApprovalService_Service">
+ <wsdl:port name="ApprovalService_Port" binding="tns:ApprovalService_SoapBinding">
+ <soap:address location="http://localhost:8080/Quickstart_bpel_approval_serviceWS"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="myClientCalling_PartnerLinkType">
+ <plnk:role name="me" portType="tns:ApprovalService_PortType"/>
+ <plnk:role name="you" portType="tns:ApprovalServicee_PortType"/>
+ </plnk:partnerLinkType>
+</wsdl:definitions>
+
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/CreditAgency.wsdl
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/CreditAgency.wsdl (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/CreditAgency.wsdl 2010-06-22 15:53:43 UTC (rev 776)
@@ -0,0 +1,84 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<wsdl:definitions targetNamespace='http://soa.jboss.org/CreditServices' xmlns:ns1='http://www.jboss.org/examples/creditAgency' xmlns:ns2='http://www.jboss.org/examples/creditAgency' xmlns:ns3='http://www.jboss.org/examples/creditAgency' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://soa.jboss.org/CreditServices' xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'>
+ <wsdl:types>
+ <schema elementFormDefault='qualified' targetNamespace='http://www.jboss.org/examples/creditAgency' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:ca='http://www.jboss.org/examples/creditAgency'>
+ <element name='CreditCheckRequest' type='ca:CreditCheckRequestType'/>
+ <element name='CreditCheckOk' type='ca:CreditCheckOKType'/>
+ <element name='CreditCheckInvalid' type='ca:CreditCheckInvalidType'/>
+ <complexType name='CreditCheckRequestType'>
+ <attribute name='customerId' type='string'/>
+ </complexType>
+
+ <complexType name='CreditCheckOKType'>
+ <attribute name='customerId' type='string'/>
+ <attribute name='score' type='string'/>
+ </complexType>
+ <complexType name='CreditCheckInvalidType'>
+ <attribute name='customerId' type='string'/>
+ <attribute name='reason' type='string'/>
+ </complexType>
+ </schema>
+
+ </wsdl:types>
+ <wsdl:message name='CreditAgencyServiceReq'>
+ <wsdl:part element='ns2:CreditCheckRequest' name='in'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceFault1'>
+ <wsdl:part element='ns2:CreditCheckInvalid' name='fault1'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceFault2'>
+ <wsdl:part element='ns2:CreditCheckInvalid' name='fault2'></wsdl:part>
+
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceFault3'>
+ <wsdl:part element='ns2:CreditCheckInvalid' name='fault3'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceRes'>
+ <wsdl:part element='ns2:CreditCheckOk' name='out'></wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name='CreditAgencyServicePortType'>
+ <wsdl:operation name='CreditAgencyServiceOp'>
+
+ <wsdl:input message='tns:CreditAgencyServiceReq' name='CreditAgencyServiceReq'></wsdl:input>
+ <wsdl:output message='tns:CreditAgencyServiceRes' name='CreditAgencyServiceRes'></wsdl:output>
+ <wsdl:fault message='tns:CreditAgencyServiceFault2' name='fault2'></wsdl:fault>
+ <wsdl:fault message='tns:CreditAgencyServiceFault3' name='fault3'></wsdl:fault>
+ <wsdl:fault message='tns:CreditAgencyServiceFault1' name='fault1'></wsdl:fault>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name='CreditAgencyServiceBinding' type='tns:CreditAgencyServicePortType'>
+ <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
+
+ <wsdl:operation name='CreditAgencyServiceOp'>
+ <soap:operation soapAction='http://soa.jboss.org/CreditServices/CreditAgencyServiceOpResp'/>
+ <wsdl:input name='CreditAgencyServiceReq'>
+ <soap:body use='literal'/>
+ </wsdl:input>
+ <wsdl:output name='CreditAgencyServiceRes'>
+ <soap:body use='literal'/>
+ </wsdl:output>
+ <wsdl:fault name='fault2'>
+
+ <soap:fault name='fault2' use='literal'/>
+ </wsdl:fault>
+ <wsdl:fault name='fault3'>
+ <soap:fault name='fault3' use='literal'/>
+ </wsdl:fault>
+ <wsdl:fault name='fault1'>
+ <soap:fault name='fault1' use='literal'/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ </wsdl:binding>
+ <wsdl:service name='CreditAgencyServiceService'>
+ <wsdl:port binding='tns:CreditAgencyServiceBinding' name='CreditAgencyServicePortType'>
+ <soap:address location='http://127.0.0.1:8080/CreditAgency/ebws/CreditServices/CreditAgencyService'/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="theExternalService_PartnerLinkType">
+ <plnk:role name="callingTheExternalService" portType="tns:CreditAgencyServicePortType"/>
+ </plnk:partnerLinkType>
+
+</wsdl:definitions>
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/bpel-deploy.xml
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/bpel-deploy.xml (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/bpelContent/bpel-deploy.xml 2010-06-22 15:53:43 UTC (rev 776)
@@ -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://soa.jboss.org/CreditServices">
+
+ <process name="bpl:ApprovalService">
+ <active>true</active>
+ <provide partnerLink="theClient_PartnerLink">
+ <service name="intf:ApprovalService_Service" port="ApprovalService_Port"/>
+ </provide>
+ <invoke partnerLink="theExternalService_PartnerLink">
+ <service name="intf2:CreditAgencyServiceService" port="CreditAgencyServicePortType"/>
+ </invoke>
+ </process>
+</deploy>
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/build.xml
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/build.xml (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/build.xml 2010-06-22 15:53:43 UTC (rev 776)
@@ -0,0 +1,47 @@
+<project name="Quickstart_bpel_approval_service" 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="CreditAgency.esb" />
+
+
+ <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="deployesb" >
+ <mkdir dir="${deploy.dir}/${ant.project.name}" />
+
+ <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="deployesb" >
+ <echo>Deploy ${ant.project.name}</echo>
+ <jar basedir="${test.dir}/bpelContent" 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="undeployesb" >
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${ant.project.name}/${sample.jar.name}" />
+ </target>
+
+</project>
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/deployment.xml
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/deployment.xml (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/deployment.xml 2010-06-22 15:53:43 UTC (rev 776)
@@ -0,0 +1,3 @@
+<jbossesb-deployment>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=CreditAgency_ESB</depends>
+</jbossesb-deployment>
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jbm-queue-service.xml
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jbm-queue-service.xml (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jbm-queue-service.xml 2010-06-22 15:53:43 UTC (rev 776)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=CreditAgency_ESB"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=CreditAgency_ESB_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+</server>
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jboss-esb.xml
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jboss-esb.xml (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/META-INF/jboss-esb.xml 2010-06-22 15:53:43 UTC (rev 776)
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<jbossesb parameterReloadSecs="5"
+ xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml..."
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml... http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schem...">
+ <providers>
+ <jms-provider connection-factory="ConnectionFactory" name="JBossMessaging">
+ <jms-bus busid="creditAgencyChannel">
+ <jms-message-filter dest-name="queue/CreditAgency_ESB" dest-type="QUEUE"/>
+ </jms-bus>
+ </jms-provider>
+ </providers>
+ <services>
+ <service category="CreditServices" description="check customer credit" name="CreditAgencyService">
+ <listeners>
+ <jms-listener busidref="creditAgencyChannel" name="creditAgencyListener"/>
+ </listeners>
+ <actions faultXsd="creditAgency.xsd" inXsd="creditAgency.xsd" outXsd="creditAgency.xsd">
+ <action class="org.jboss.soa.esb.actions.SystemPrintln" name="PrintCreditCheckMessage">
+ <property name="message" value="Message received by Credit Agency"/>
+ <property name="printfull" value="true"/>
+ </action>
+ <action
+ class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction" name="CreateResponse">
+ <property name="templateFile" value="/transform.xslt"/>
+ <property name="resultType" value="STRING"/>
+ </action>
+ <action class="org.jboss.soa.esb.actions.SystemPrintln" name="PrintCreditCheckOkMessage">
+ <property name="message" value="Message sent from Credit Agency"/>
+ <property name="printfull" value="true"/>
+ </action>
+
+ </actions>
+ </service>
+ </services>
+</jbossesb>
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/creditAgency.xsd
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/creditAgency.xsd (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/creditAgency.xsd 2010-06-22 15:53:43 UTC (rev 776)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.jboss.org/examples/creditAgency" xmlns:ca="http://www.jboss.org/examples/creditAgency" elementFormDefault="qualified">
+
+ <element name="CreditCheckRequest" type="ca:CreditCheckRequestType"></element>
+ <element name="CreditCheckOk" type="ca:CreditCheckOKType"></element>
+ <element name="CreditCheckInvalid" type="ca:CreditCheckInvalidType"></element>
+
+ <complexType name="CreditCheckRequestType">
+ <attribute name="customerId" type="string"></attribute>
+ </complexType>
+
+ <complexType name="CreditCheckOKType">
+ <attribute name="customerId" type="string"></attribute>
+ <attribute name="score" type="string"></attribute>
+ </complexType>
+
+ <complexType name="CreditCheckInvalidType">
+ <attribute name="customerId" type="string"></attribute>
+ <attribute name="reason" type="string"></attribute>
+ </complexType>
+</schema>
\ No newline at end of file
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/transform.xslt
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/transform.xslt (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/esbcontent/transform.xslt 2010-06-22 15:53:43 UTC (rev 776)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template xmlns:ca="http://www.jboss.org/examples/creditAgency" match="/ca:CreditCheckRequest">
+ <ca:CreditCheckOk xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ca="http://www.jboss.org/examples/creditAgency"
+ xsi:schemaLocation="http://www.jboss.org/examples/creditAgency ../creditAgency.xsd "
+ customerId="{@customerId}"
+ score="500" />
+
+ </xsl:template>
+
+</xsl:stylesheet>
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_request1.xml
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_request1.xml (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_request1.xml 2010-06-22 15:53:43 UTC (rev 776)
@@ -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:approve>
+ <contents>John</contents>
+ </wsdl:approve>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_response1.xml
===================================================================
--- branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_response1.xml (rev 0)
+++ branches/RiftSaw-2.1.x/integration-tests/src/test/resources/samples/Quickstart_bpel_approval_service/messages/approve_response1.xml 2010-06-22 15:53:43 UTC (rev 776)
@@ -0,0 +1 @@
+<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><odens:approveResponse xmlns:odens='http://www.jboss.org/bpel/examples/wsdl'><contents>John is Approved</contents></odens:approveResponse></env:Body></env:Envelope>
\ No newline at end of file
14 years
riftsaw SVN: r775 - in trunk: docs/docbook and 6 other directories.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2010-06-22 10:12:30 -0400 (Tue, 22 Jun 2010)
New Revision: 775
Added:
trunk/samples/esb/invoke_esb_ebws/
trunk/samples/esb/invoke_esb_ebws/bpelContent/
trunk/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.bpel
trunk/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.wsdl
trunk/samples/esb/invoke_esb_ebws/bpelContent/CreditAgency.wsdl
trunk/samples/esb/invoke_esb_ebws/bpelContent/bpel-deploy.xml
trunk/samples/esb/invoke_esb_ebws/build.xml
trunk/samples/esb/invoke_esb_ebws/esbcontent/
trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/
trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/deployment.xml
trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jbm-queue-service.xml
trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jboss-esb.xml
trunk/samples/esb/invoke_esb_ebws/esbcontent/creditAgency.xsd
trunk/samples/esb/invoke_esb_ebws/esbcontent/lib/
trunk/samples/esb/invoke_esb_ebws/esbcontent/transform.xslt
trunk/samples/esb/invoke_esb_ebws/messages/
trunk/samples/esb/invoke_esb_ebws/messages/approve_request1.xml
trunk/samples/esb/invoke_esb_ebws/readme.txt
Modified:
trunk/distribution/src/main/assembly/bin.xml
trunk/docs/docbook/pom.xml
Log:
Add EBWS ESB example.
Modified: trunk/distribution/src/main/assembly/bin.xml
===================================================================
--- trunk/distribution/src/main/assembly/bin.xml 2010-06-22 14:10:39 UTC (rev 774)
+++ trunk/distribution/src/main/assembly/bin.xml 2010-06-22 14:12:30 UTC (rev 775)
@@ -66,6 +66,7 @@
<includes>
<include>esb/bpel_helloworld/**</include>
<include>esb/bpel_loan_fault/**</include>
+ <include>esb/invoke_esb_ebws/**</include>
<include>esb/webservice_esb_bpel/**</include>
<include>quickstart/bpel_event_listener/**</include>
<include>quickstart/hello_world/**</include>
Modified: trunk/docs/docbook/pom.xml
===================================================================
--- trunk/docs/docbook/pom.xml 2010-06-22 14:10:39 UTC (rev 774)
+++ trunk/docs/docbook/pom.xml 2010-06-22 14:12:30 UTC (rev 775)
@@ -14,6 +14,7 @@
<groupId>org.jboss.soa</groupId>
<artifactId>bpel</artifactId>
<version>2.2.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
</parent>
<profiles>
Added: trunk/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.bpel
===================================================================
--- trunk/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.bpel (rev 0)
+++ trunk/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.bpel 2010-06-22 14:12:30 UTC (rev 775)
@@ -0,0 +1,97 @@
+<!--
+ * 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="ApprovalService"
+ 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://soa.jboss.org/CreditServices"
+ xmlns:ca='http://www.jboss.org/examples/creditAgency'
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="ApprovalService.wsdl"
+ namespace="http://www.jboss.org/bpel/examples/wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <import location="CreditAgency.wsdl"
+ namespace="http://soa.jboss.org/CreditServices"
+ 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:ApprovalTarget_Message"/>
+ <variable name="inVar" messageType="intf2:CreditAgencyServiceReq"/>
+ <variable name="outVar" messageType="intf2:CreditAgencyServiceRes"/>
+ <variable name="tempVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="request"
+ partnerLink="theClient_PartnerLink"
+ portType="intf:ApprovalService_PortType"
+ operation="approve"
+ variable="myVar"
+ createInstance="yes"/>
+
+ <assign name="assignRequestToHelloWorldWS">
+ <!-- Ode requires variable initialization -->
+ <copy>
+ <from><literal><ca:CreditCheckRequest customerId=""/></literal></from>
+ <to variable="inVar" part="in"/>
+ </copy>
+ <!-- now the real copy -->
+ <copy>
+ <from variable="myVar" part="contents"/>
+ <to>$inVar.in//@customerId</to>
+ </copy>
+ </assign>
+
+ <invoke name="ICallTheExternalService"
+ partnerLink="theExternalService_PartnerLink"
+ portType="intf2:CreditAgencyServicePortType"
+ operation="CreditAgencyServiceOp"
+ inputVariable="inVar"
+ outputVariable="outVar"
+ />
+
+ <assign name="assignResponseOfHelloWorldWS">
+ <copy>
+ <from>concat($outVar.out//@customerId,' is Approved')</from>
+ <to variable="myVar" part="contents"/>
+ </copy>
+ </assign>
+
+ <reply name="response"
+ partnerLink="theClient_PartnerLink"
+ portType="intf:ApprovalService_PortType"
+ operation="approve"
+ variable="myVar"/>
+ </sequence>
+</process>
Added: trunk/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.wsdl
===================================================================
--- trunk/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.wsdl (rev 0)
+++ trunk/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.wsdl 2010-06-22 14:12:30 UTC (rev 775)
@@ -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="ApprovalTarget_Message">
+ <wsdl:part name="contents" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="ApprovalService_PortType">
+ <wsdl:operation name="approve">
+ <wsdl:input message="tns:ApprovalTarget_Message" name="TestIn"/>
+ <wsdl:output message="tns:ApprovalTarget_Message" name="TestOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="ApprovalService_SoapBinding" type="tns:ApprovalService_PortType">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="approve">
+ <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="ApprovalService_Service">
+ <wsdl:port name="ApprovalService_Port" binding="tns:ApprovalService_SoapBinding">
+ <soap:address location="http://localhost:8080/Quickstart_bpel_approval_serviceWS"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="myClientCalling_PartnerLinkType">
+ <plnk:role name="me" portType="tns:ApprovalService_PortType"/>
+ <plnk:role name="you" portType="tns:ApprovalServicee_PortType"/>
+ </plnk:partnerLinkType>
+</wsdl:definitions>
+
Added: trunk/samples/esb/invoke_esb_ebws/bpelContent/CreditAgency.wsdl
===================================================================
--- trunk/samples/esb/invoke_esb_ebws/bpelContent/CreditAgency.wsdl (rev 0)
+++ trunk/samples/esb/invoke_esb_ebws/bpelContent/CreditAgency.wsdl 2010-06-22 14:12:30 UTC (rev 775)
@@ -0,0 +1,84 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<wsdl:definitions targetNamespace='http://soa.jboss.org/CreditServices' xmlns:ns1='http://www.jboss.org/examples/creditAgency' xmlns:ns2='http://www.jboss.org/examples/creditAgency' xmlns:ns3='http://www.jboss.org/examples/creditAgency' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://soa.jboss.org/CreditServices' xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'>
+ <wsdl:types>
+ <schema elementFormDefault='qualified' targetNamespace='http://www.jboss.org/examples/creditAgency' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:ca='http://www.jboss.org/examples/creditAgency'>
+ <element name='CreditCheckRequest' type='ca:CreditCheckRequestType'/>
+ <element name='CreditCheckOk' type='ca:CreditCheckOKType'/>
+ <element name='CreditCheckInvalid' type='ca:CreditCheckInvalidType'/>
+ <complexType name='CreditCheckRequestType'>
+ <attribute name='customerId' type='string'/>
+ </complexType>
+
+ <complexType name='CreditCheckOKType'>
+ <attribute name='customerId' type='string'/>
+ <attribute name='score' type='string'/>
+ </complexType>
+ <complexType name='CreditCheckInvalidType'>
+ <attribute name='customerId' type='string'/>
+ <attribute name='reason' type='string'/>
+ </complexType>
+ </schema>
+
+ </wsdl:types>
+ <wsdl:message name='CreditAgencyServiceReq'>
+ <wsdl:part element='ns2:CreditCheckRequest' name='in'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceFault1'>
+ <wsdl:part element='ns2:CreditCheckInvalid' name='fault1'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceFault2'>
+ <wsdl:part element='ns2:CreditCheckInvalid' name='fault2'></wsdl:part>
+
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceFault3'>
+ <wsdl:part element='ns2:CreditCheckInvalid' name='fault3'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceRes'>
+ <wsdl:part element='ns2:CreditCheckOk' name='out'></wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name='CreditAgencyServicePortType'>
+ <wsdl:operation name='CreditAgencyServiceOp'>
+
+ <wsdl:input message='tns:CreditAgencyServiceReq' name='CreditAgencyServiceReq'></wsdl:input>
+ <wsdl:output message='tns:CreditAgencyServiceRes' name='CreditAgencyServiceRes'></wsdl:output>
+ <wsdl:fault message='tns:CreditAgencyServiceFault2' name='fault2'></wsdl:fault>
+ <wsdl:fault message='tns:CreditAgencyServiceFault3' name='fault3'></wsdl:fault>
+ <wsdl:fault message='tns:CreditAgencyServiceFault1' name='fault1'></wsdl:fault>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name='CreditAgencyServiceBinding' type='tns:CreditAgencyServicePortType'>
+ <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
+
+ <wsdl:operation name='CreditAgencyServiceOp'>
+ <soap:operation soapAction='http://soa.jboss.org/CreditServices/CreditAgencyServiceOpResp'/>
+ <wsdl:input name='CreditAgencyServiceReq'>
+ <soap:body use='literal'/>
+ </wsdl:input>
+ <wsdl:output name='CreditAgencyServiceRes'>
+ <soap:body use='literal'/>
+ </wsdl:output>
+ <wsdl:fault name='fault2'>
+
+ <soap:fault name='fault2' use='literal'/>
+ </wsdl:fault>
+ <wsdl:fault name='fault3'>
+ <soap:fault name='fault3' use='literal'/>
+ </wsdl:fault>
+ <wsdl:fault name='fault1'>
+ <soap:fault name='fault1' use='literal'/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ </wsdl:binding>
+ <wsdl:service name='CreditAgencyServiceService'>
+ <wsdl:port binding='tns:CreditAgencyServiceBinding' name='CreditAgencyServicePortType'>
+ <soap:address location='http://127.0.0.1:8080/CreditAgency/ebws/CreditServices/CreditAgencyService'/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="theExternalService_PartnerLinkType">
+ <plnk:role name="callingTheExternalService" portType="tns:CreditAgencyServicePortType"/>
+ </plnk:partnerLinkType>
+
+</wsdl:definitions>
Added: trunk/samples/esb/invoke_esb_ebws/bpelContent/bpel-deploy.xml
===================================================================
--- trunk/samples/esb/invoke_esb_ebws/bpelContent/bpel-deploy.xml (rev 0)
+++ trunk/samples/esb/invoke_esb_ebws/bpelContent/bpel-deploy.xml 2010-06-22 14:12:30 UTC (rev 775)
@@ -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://soa.jboss.org/CreditServices">
+
+ <process name="bpl:ApprovalService">
+ <active>true</active>
+ <provide partnerLink="theClient_PartnerLink">
+ <service name="intf:ApprovalService_Service" port="ApprovalService_Port"/>
+ </provide>
+ <invoke partnerLink="theExternalService_PartnerLink">
+ <service name="intf2:CreditAgencyServiceService" port="CreditAgencyServicePortType"/>
+ </invoke>
+ </process>
+</deploy>
Added: trunk/samples/esb/invoke_esb_ebws/build.xml
===================================================================
--- trunk/samples/esb/invoke_esb_ebws/build.xml (rev 0)
+++ trunk/samples/esb/invoke_esb_ebws/build.xml 2010-06-22 14:12:30 UTC (rev 775)
@@ -0,0 +1,53 @@
+<project name="Quickstart_bpel_approval_service" default="deploy" basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <!-- Import the base Ant build script... -->
+ <property file="../../../install/deployment.properties" />
+
+ <property name="version" value="1" />
+
+ <property name="server.dir" value="${org.jboss.as.home}/server/${org.jboss.as.config}"/>
+ <property name="conf.dir" value="${server.dir}/conf"/>
+ <property name="deploy.dir" value="${server.dir}/deploy"/>
+ <property name="server.lib.dir" value="${server.dir}/lib"/>
+
+ <property name="sample.jar.name" value="${ant.project.name}-${version}.jar" />
+ <property name="sample.esb.name" value="CreditAgency.esb" />
+
+ <target name="deployesb" >
+ <jar basedir="esbcontent" destfile="${deploy.dir}/${sample.esb.name}" />
+ </target>
+
+ <target name="undeployesb">
+ <delete file="${deploy.dir}/${sample.esb.name}"/>
+ </target>
+
+ <target name="deploy" depends="deployesb" >
+ <echo>Deploy ${ant.project.name}</echo>
+ <jar basedir="bpelContent" destfile="${deploy.dir}/${sample.jar.name}" />
+ </target>
+
+ <target name="undeploy" depends="undeployesb" >
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${sample.jar.name}" />
+ </target>
+
+ <target name="sendhello">
+ <echo>Send test message to: ${ant.project.name}</echo>
+ <java classname="org.apache.ode.tools.sendsoap.cline.HttpSoapSender">
+ <arg value="http://localhost:8080/Quickstart_bpel_approval_serviceWS"/>
+ <arg value="messages/approve_request1.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+
+</project>
Added: trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/deployment.xml
===================================================================
--- trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/deployment.xml (rev 0)
+++ trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/deployment.xml 2010-06-22 14:12:30 UTC (rev 775)
@@ -0,0 +1,3 @@
+<jbossesb-deployment>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=CreditAgency_ESB</depends>
+</jbossesb-deployment>
Added: trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jbm-queue-service.xml
===================================================================
--- trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jbm-queue-service.xml (rev 0)
+++ trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jbm-queue-service.xml 2010-06-22 14:12:30 UTC (rev 775)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=CreditAgency_ESB"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=CreditAgency_ESB_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+</server>
Added: trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jboss-esb.xml
===================================================================
--- trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jboss-esb.xml (rev 0)
+++ trunk/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jboss-esb.xml 2010-06-22 14:12:30 UTC (rev 775)
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<jbossesb parameterReloadSecs="5"
+ xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml..."
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml... http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schem...">
+ <providers>
+ <jms-provider connection-factory="ConnectionFactory" name="JBossMessaging">
+ <jms-bus busid="creditAgencyChannel">
+ <jms-message-filter dest-name="queue/CreditAgency_ESB" dest-type="QUEUE"/>
+ </jms-bus>
+ </jms-provider>
+ </providers>
+ <services>
+ <service category="CreditServices" description="check customer credit" name="CreditAgencyService">
+ <listeners>
+ <jms-listener busidref="creditAgencyChannel" name="creditAgencyListener"/>
+ </listeners>
+ <actions faultXsd="creditAgency.xsd" inXsd="creditAgency.xsd" outXsd="creditAgency.xsd">
+ <action class="org.jboss.soa.esb.actions.SystemPrintln" name="PrintCreditCheckMessage">
+ <property name="message" value="Message received by Credit Agency"/>
+ <property name="printfull" value="true"/>
+ </action>
+ <action
+ class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction" name="CreateResponse">
+ <property name="templateFile" value="/transform.xslt"/>
+ <property name="resultType" value="STRING"/>
+ </action>
+ <action class="org.jboss.soa.esb.actions.SystemPrintln" name="PrintCreditCheckOkMessage">
+ <property name="message" value="Message sent from Credit Agency"/>
+ <property name="printfull" value="true"/>
+ </action>
+
+ </actions>
+ </service>
+ </services>
+</jbossesb>
Added: trunk/samples/esb/invoke_esb_ebws/esbcontent/creditAgency.xsd
===================================================================
--- trunk/samples/esb/invoke_esb_ebws/esbcontent/creditAgency.xsd (rev 0)
+++ trunk/samples/esb/invoke_esb_ebws/esbcontent/creditAgency.xsd 2010-06-22 14:12:30 UTC (rev 775)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.jboss.org/examples/creditAgency" xmlns:ca="http://www.jboss.org/examples/creditAgency" elementFormDefault="qualified">
+
+ <element name="CreditCheckRequest" type="ca:CreditCheckRequestType"></element>
+ <element name="CreditCheckOk" type="ca:CreditCheckOKType"></element>
+ <element name="CreditCheckInvalid" type="ca:CreditCheckInvalidType"></element>
+
+ <complexType name="CreditCheckRequestType">
+ <attribute name="customerId" type="string"></attribute>
+ </complexType>
+
+ <complexType name="CreditCheckOKType">
+ <attribute name="customerId" type="string"></attribute>
+ <attribute name="score" type="string"></attribute>
+ </complexType>
+
+ <complexType name="CreditCheckInvalidType">
+ <attribute name="customerId" type="string"></attribute>
+ <attribute name="reason" type="string"></attribute>
+ </complexType>
+</schema>
\ No newline at end of file
Added: trunk/samples/esb/invoke_esb_ebws/esbcontent/transform.xslt
===================================================================
--- trunk/samples/esb/invoke_esb_ebws/esbcontent/transform.xslt (rev 0)
+++ trunk/samples/esb/invoke_esb_ebws/esbcontent/transform.xslt 2010-06-22 14:12:30 UTC (rev 775)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template xmlns:ca="http://www.jboss.org/examples/creditAgency" match="/ca:CreditCheckRequest">
+ <ca:CreditCheckOk xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ca="http://www.jboss.org/examples/creditAgency"
+ xsi:schemaLocation="http://www.jboss.org/examples/creditAgency ../creditAgency.xsd "
+ customerId="{@customerId}"
+ score="500" />
+
+ </xsl:template>
+
+</xsl:stylesheet>
Added: trunk/samples/esb/invoke_esb_ebws/messages/approve_request1.xml
===================================================================
--- trunk/samples/esb/invoke_esb_ebws/messages/approve_request1.xml (rev 0)
+++ trunk/samples/esb/invoke_esb_ebws/messages/approve_request1.xml 2010-06-22 14:12:30 UTC (rev 775)
@@ -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:approve>
+ <contents>John</contents>
+ </wsdl:approve>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/esb/invoke_esb_ebws/readme.txt
===================================================================
--- trunk/samples/esb/invoke_esb_ebws/readme.txt (rev 0)
+++ trunk/samples/esb/invoke_esb_ebws/readme.txt 2010-06-22 14:12:30 UTC (rev 775)
@@ -0,0 +1,26 @@
+ESB Examples - Invoking an ESB service
+======================================
+
+This is a simple example that invokes a ESB hosted Credit Agency from within
+a BPEL process implementing an approval service.
+
+To deploy the example, open a command line window in the example's folder,
+and simply type 'ant deploy'. To undeploy, use the command 'ant undeploy'.
+
+To test the example, for example using the SOAPUI client, an example message
+can be found in the messages sub-folder, with the relevant WSDL being
+located in the bpel sub-folder.
+
+Alternatively, use the 'ant runtest' command (from a command line window)
+to send the example message directly to the deployed process.
+
+NOTE: The "ant deploy" command will by default deploy version 1 of the
+example to the server. If you wish to change the example, and redeploy,
+then you will need to update the version number in the build.xml, or
+override the version property, e.g. "ant -Dversion=2 deploy" (and similarly
+when undeploying "ant -Dversion=2 undeploy").
+
+Some handy URLs:
+http://localhost:8080/bpel-console is the BPEL console
+http://localhost:8080/Quickstart_bpel_approval_serviceWS?wsdl is the URL to the BPEL process' WSDL
+http://127.0.0.1:8080/CreditAgency/ebws/CreditServices/CreditAgencyService?wsdl is the ESB service's WSDL
14 years
riftsaw SVN: r774 - in branches/RiftSaw-2.1.x: docs/docbook and 6 other directories.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2010-06-22 10:10:39 -0400 (Tue, 22 Jun 2010)
New Revision: 774
Added:
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.bpel
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.wsdl
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/CreditAgency.wsdl
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/bpel-deploy.xml
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/build.xml
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/deployment.xml
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jbm-queue-service.xml
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jboss-esb.xml
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/creditAgency.xsd
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/lib/
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/transform.xslt
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/messages/
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/messages/approve_request1.xml
branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/readme.txt
Modified:
branches/RiftSaw-2.1.x/distribution/src/main/assembly/bin.xml
branches/RiftSaw-2.1.x/docs/docbook/pom.xml
Log:
Add EBWS ESB example.
Modified: branches/RiftSaw-2.1.x/distribution/src/main/assembly/bin.xml
===================================================================
--- branches/RiftSaw-2.1.x/distribution/src/main/assembly/bin.xml 2010-06-21 12:27:59 UTC (rev 773)
+++ branches/RiftSaw-2.1.x/distribution/src/main/assembly/bin.xml 2010-06-22 14:10:39 UTC (rev 774)
@@ -66,6 +66,7 @@
<includes>
<include>esb/bpel_helloworld/**</include>
<include>esb/bpel_loan_fault/**</include>
+ <include>esb/invoke_esb_ebws/**</include>
<include>esb/webservice_esb_bpel/**</include>
<include>quickstart/bpel_event_listener/**</include>
<include>quickstart/hello_world/**</include>
Modified: branches/RiftSaw-2.1.x/docs/docbook/pom.xml
===================================================================
--- branches/RiftSaw-2.1.x/docs/docbook/pom.xml 2010-06-21 12:27:59 UTC (rev 773)
+++ branches/RiftSaw-2.1.x/docs/docbook/pom.xml 2010-06-22 14:10:39 UTC (rev 774)
@@ -14,6 +14,7 @@
<groupId>org.jboss.soa</groupId>
<artifactId>bpel</artifactId>
<version>2.1.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
</parent>
<profiles>
Added: branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.bpel
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.bpel (rev 0)
+++ branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.bpel 2010-06-22 14:10:39 UTC (rev 774)
@@ -0,0 +1,97 @@
+<!--
+ * 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="ApprovalService"
+ 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://soa.jboss.org/CreditServices"
+ xmlns:ca='http://www.jboss.org/examples/creditAgency'
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="ApprovalService.wsdl"
+ namespace="http://www.jboss.org/bpel/examples/wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <import location="CreditAgency.wsdl"
+ namespace="http://soa.jboss.org/CreditServices"
+ 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:ApprovalTarget_Message"/>
+ <variable name="inVar" messageType="intf2:CreditAgencyServiceReq"/>
+ <variable name="outVar" messageType="intf2:CreditAgencyServiceRes"/>
+ <variable name="tempVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="request"
+ partnerLink="theClient_PartnerLink"
+ portType="intf:ApprovalService_PortType"
+ operation="approve"
+ variable="myVar"
+ createInstance="yes"/>
+
+ <assign name="assignRequestToHelloWorldWS">
+ <!-- Ode requires variable initialization -->
+ <copy>
+ <from><literal><ca:CreditCheckRequest customerId=""/></literal></from>
+ <to variable="inVar" part="in"/>
+ </copy>
+ <!-- now the real copy -->
+ <copy>
+ <from variable="myVar" part="contents"/>
+ <to>$inVar.in//@customerId</to>
+ </copy>
+ </assign>
+
+ <invoke name="ICallTheExternalService"
+ partnerLink="theExternalService_PartnerLink"
+ portType="intf2:CreditAgencyServicePortType"
+ operation="CreditAgencyServiceOp"
+ inputVariable="inVar"
+ outputVariable="outVar"
+ />
+
+ <assign name="assignResponseOfHelloWorldWS">
+ <copy>
+ <from>concat($outVar.out//@customerId,' is Approved')</from>
+ <to variable="myVar" part="contents"/>
+ </copy>
+ </assign>
+
+ <reply name="response"
+ partnerLink="theClient_PartnerLink"
+ portType="intf:ApprovalService_PortType"
+ operation="approve"
+ variable="myVar"/>
+ </sequence>
+</process>
Added: branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.wsdl
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.wsdl (rev 0)
+++ branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/ApprovalService.wsdl 2010-06-22 14:10:39 UTC (rev 774)
@@ -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="ApprovalTarget_Message">
+ <wsdl:part name="contents" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="ApprovalService_PortType">
+ <wsdl:operation name="approve">
+ <wsdl:input message="tns:ApprovalTarget_Message" name="TestIn"/>
+ <wsdl:output message="tns:ApprovalTarget_Message" name="TestOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="ApprovalService_SoapBinding" type="tns:ApprovalService_PortType">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="approve">
+ <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="ApprovalService_Service">
+ <wsdl:port name="ApprovalService_Port" binding="tns:ApprovalService_SoapBinding">
+ <soap:address location="http://localhost:8080/Quickstart_bpel_approval_serviceWS"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="myClientCalling_PartnerLinkType">
+ <plnk:role name="me" portType="tns:ApprovalService_PortType"/>
+ <plnk:role name="you" portType="tns:ApprovalServicee_PortType"/>
+ </plnk:partnerLinkType>
+</wsdl:definitions>
+
Added: branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/CreditAgency.wsdl
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/CreditAgency.wsdl (rev 0)
+++ branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/CreditAgency.wsdl 2010-06-22 14:10:39 UTC (rev 774)
@@ -0,0 +1,84 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<wsdl:definitions targetNamespace='http://soa.jboss.org/CreditServices' xmlns:ns1='http://www.jboss.org/examples/creditAgency' xmlns:ns2='http://www.jboss.org/examples/creditAgency' xmlns:ns3='http://www.jboss.org/examples/creditAgency' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://soa.jboss.org/CreditServices' xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'>
+ <wsdl:types>
+ <schema elementFormDefault='qualified' targetNamespace='http://www.jboss.org/examples/creditAgency' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:ca='http://www.jboss.org/examples/creditAgency'>
+ <element name='CreditCheckRequest' type='ca:CreditCheckRequestType'/>
+ <element name='CreditCheckOk' type='ca:CreditCheckOKType'/>
+ <element name='CreditCheckInvalid' type='ca:CreditCheckInvalidType'/>
+ <complexType name='CreditCheckRequestType'>
+ <attribute name='customerId' type='string'/>
+ </complexType>
+
+ <complexType name='CreditCheckOKType'>
+ <attribute name='customerId' type='string'/>
+ <attribute name='score' type='string'/>
+ </complexType>
+ <complexType name='CreditCheckInvalidType'>
+ <attribute name='customerId' type='string'/>
+ <attribute name='reason' type='string'/>
+ </complexType>
+ </schema>
+
+ </wsdl:types>
+ <wsdl:message name='CreditAgencyServiceReq'>
+ <wsdl:part element='ns2:CreditCheckRequest' name='in'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceFault1'>
+ <wsdl:part element='ns2:CreditCheckInvalid' name='fault1'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceFault2'>
+ <wsdl:part element='ns2:CreditCheckInvalid' name='fault2'></wsdl:part>
+
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceFault3'>
+ <wsdl:part element='ns2:CreditCheckInvalid' name='fault3'></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name='CreditAgencyServiceRes'>
+ <wsdl:part element='ns2:CreditCheckOk' name='out'></wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name='CreditAgencyServicePortType'>
+ <wsdl:operation name='CreditAgencyServiceOp'>
+
+ <wsdl:input message='tns:CreditAgencyServiceReq' name='CreditAgencyServiceReq'></wsdl:input>
+ <wsdl:output message='tns:CreditAgencyServiceRes' name='CreditAgencyServiceRes'></wsdl:output>
+ <wsdl:fault message='tns:CreditAgencyServiceFault2' name='fault2'></wsdl:fault>
+ <wsdl:fault message='tns:CreditAgencyServiceFault3' name='fault3'></wsdl:fault>
+ <wsdl:fault message='tns:CreditAgencyServiceFault1' name='fault1'></wsdl:fault>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name='CreditAgencyServiceBinding' type='tns:CreditAgencyServicePortType'>
+ <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
+
+ <wsdl:operation name='CreditAgencyServiceOp'>
+ <soap:operation soapAction='http://soa.jboss.org/CreditServices/CreditAgencyServiceOpResp'/>
+ <wsdl:input name='CreditAgencyServiceReq'>
+ <soap:body use='literal'/>
+ </wsdl:input>
+ <wsdl:output name='CreditAgencyServiceRes'>
+ <soap:body use='literal'/>
+ </wsdl:output>
+ <wsdl:fault name='fault2'>
+
+ <soap:fault name='fault2' use='literal'/>
+ </wsdl:fault>
+ <wsdl:fault name='fault3'>
+ <soap:fault name='fault3' use='literal'/>
+ </wsdl:fault>
+ <wsdl:fault name='fault1'>
+ <soap:fault name='fault1' use='literal'/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ </wsdl:binding>
+ <wsdl:service name='CreditAgencyServiceService'>
+ <wsdl:port binding='tns:CreditAgencyServiceBinding' name='CreditAgencyServicePortType'>
+ <soap:address location='http://127.0.0.1:8080/CreditAgency/ebws/CreditServices/CreditAgencyService'/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="theExternalService_PartnerLinkType">
+ <plnk:role name="callingTheExternalService" portType="tns:CreditAgencyServicePortType"/>
+ </plnk:partnerLinkType>
+
+</wsdl:definitions>
Added: branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/bpel-deploy.xml
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/bpel-deploy.xml (rev 0)
+++ branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/bpelContent/bpel-deploy.xml 2010-06-22 14:10:39 UTC (rev 774)
@@ -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://soa.jboss.org/CreditServices">
+
+ <process name="bpl:ApprovalService">
+ <active>true</active>
+ <provide partnerLink="theClient_PartnerLink">
+ <service name="intf:ApprovalService_Service" port="ApprovalService_Port"/>
+ </provide>
+ <invoke partnerLink="theExternalService_PartnerLink">
+ <service name="intf2:CreditAgencyServiceService" port="CreditAgencyServicePortType"/>
+ </invoke>
+ </process>
+</deploy>
Added: branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/build.xml
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/build.xml (rev 0)
+++ branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/build.xml 2010-06-22 14:10:39 UTC (rev 774)
@@ -0,0 +1,53 @@
+<project name="Quickstart_bpel_approval_service" default="deploy" basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <!-- Import the base Ant build script... -->
+ <property file="../../../install/deployment.properties" />
+
+ <property name="version" value="1" />
+
+ <property name="server.dir" value="${org.jboss.as.home}/server/${org.jboss.as.config}"/>
+ <property name="conf.dir" value="${server.dir}/conf"/>
+ <property name="deploy.dir" value="${server.dir}/deploy"/>
+ <property name="server.lib.dir" value="${server.dir}/lib"/>
+
+ <property name="sample.jar.name" value="${ant.project.name}-${version}.jar" />
+ <property name="sample.esb.name" value="CreditAgency.esb" />
+
+ <target name="deployesb" >
+ <jar basedir="esbcontent" destfile="${deploy.dir}/${sample.esb.name}" />
+ </target>
+
+ <target name="undeployesb">
+ <delete file="${deploy.dir}/${sample.esb.name}"/>
+ </target>
+
+ <target name="deploy" depends="deployesb" >
+ <echo>Deploy ${ant.project.name}</echo>
+ <jar basedir="bpelContent" destfile="${deploy.dir}/${sample.jar.name}" />
+ </target>
+
+ <target name="undeploy" depends="undeployesb" >
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${sample.jar.name}" />
+ </target>
+
+ <target name="sendhello">
+ <echo>Send test message to: ${ant.project.name}</echo>
+ <java classname="org.apache.ode.tools.sendsoap.cline.HttpSoapSender">
+ <arg value="http://localhost:8080/Quickstart_bpel_approval_serviceWS"/>
+ <arg value="messages/approve_request1.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+
+</project>
Added: branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/deployment.xml
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/deployment.xml (rev 0)
+++ branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/deployment.xml 2010-06-22 14:10:39 UTC (rev 774)
@@ -0,0 +1,3 @@
+<jbossesb-deployment>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=CreditAgency_ESB</depends>
+</jbossesb-deployment>
Added: branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jbm-queue-service.xml
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jbm-queue-service.xml (rev 0)
+++ branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jbm-queue-service.xml 2010-06-22 14:10:39 UTC (rev 774)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=CreditAgency_ESB"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=CreditAgency_ESB_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+</server>
Added: branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jboss-esb.xml
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jboss-esb.xml (rev 0)
+++ branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/META-INF/jboss-esb.xml 2010-06-22 14:10:39 UTC (rev 774)
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<jbossesb parameterReloadSecs="5"
+ xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml..."
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml... http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schem...">
+ <providers>
+ <jms-provider connection-factory="ConnectionFactory" name="JBossMessaging">
+ <jms-bus busid="creditAgencyChannel">
+ <jms-message-filter dest-name="queue/CreditAgency_ESB" dest-type="QUEUE"/>
+ </jms-bus>
+ </jms-provider>
+ </providers>
+ <services>
+ <service category="CreditServices" description="check customer credit" name="CreditAgencyService">
+ <listeners>
+ <jms-listener busidref="creditAgencyChannel" name="creditAgencyListener"/>
+ </listeners>
+ <actions faultXsd="creditAgency.xsd" inXsd="creditAgency.xsd" outXsd="creditAgency.xsd">
+ <action class="org.jboss.soa.esb.actions.SystemPrintln" name="PrintCreditCheckMessage">
+ <property name="message" value="Message received by Credit Agency"/>
+ <property name="printfull" value="true"/>
+ </action>
+ <action
+ class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction" name="CreateResponse">
+ <property name="templateFile" value="/transform.xslt"/>
+ <property name="resultType" value="STRING"/>
+ </action>
+ <action class="org.jboss.soa.esb.actions.SystemPrintln" name="PrintCreditCheckOkMessage">
+ <property name="message" value="Message sent from Credit Agency"/>
+ <property name="printfull" value="true"/>
+ </action>
+
+ </actions>
+ </service>
+ </services>
+</jbossesb>
Added: branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/creditAgency.xsd
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/creditAgency.xsd (rev 0)
+++ branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/creditAgency.xsd 2010-06-22 14:10:39 UTC (rev 774)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.jboss.org/examples/creditAgency" xmlns:ca="http://www.jboss.org/examples/creditAgency" elementFormDefault="qualified">
+
+ <element name="CreditCheckRequest" type="ca:CreditCheckRequestType"></element>
+ <element name="CreditCheckOk" type="ca:CreditCheckOKType"></element>
+ <element name="CreditCheckInvalid" type="ca:CreditCheckInvalidType"></element>
+
+ <complexType name="CreditCheckRequestType">
+ <attribute name="customerId" type="string"></attribute>
+ </complexType>
+
+ <complexType name="CreditCheckOKType">
+ <attribute name="customerId" type="string"></attribute>
+ <attribute name="score" type="string"></attribute>
+ </complexType>
+
+ <complexType name="CreditCheckInvalidType">
+ <attribute name="customerId" type="string"></attribute>
+ <attribute name="reason" type="string"></attribute>
+ </complexType>
+</schema>
\ No newline at end of file
Added: branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/transform.xslt
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/transform.xslt (rev 0)
+++ branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/esbcontent/transform.xslt 2010-06-22 14:10:39 UTC (rev 774)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template xmlns:ca="http://www.jboss.org/examples/creditAgency" match="/ca:CreditCheckRequest">
+ <ca:CreditCheckOk xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ca="http://www.jboss.org/examples/creditAgency"
+ xsi:schemaLocation="http://www.jboss.org/examples/creditAgency ../creditAgency.xsd "
+ customerId="{@customerId}"
+ score="500" />
+
+ </xsl:template>
+
+</xsl:stylesheet>
Added: branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/messages/approve_request1.xml
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/messages/approve_request1.xml (rev 0)
+++ branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/messages/approve_request1.xml 2010-06-22 14:10:39 UTC (rev 774)
@@ -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:approve>
+ <contents>John</contents>
+ </wsdl:approve>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/readme.txt
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/readme.txt (rev 0)
+++ branches/RiftSaw-2.1.x/samples/esb/invoke_esb_ebws/readme.txt 2010-06-22 14:10:39 UTC (rev 774)
@@ -0,0 +1,26 @@
+ESB Examples - Invoking an ESB service
+======================================
+
+This is a simple example that invokes a ESB hosted Credit Agency from within
+a BPEL process implementing an approval service.
+
+To deploy the example, open a command line window in the example's folder,
+and simply type 'ant deploy'. To undeploy, use the command 'ant undeploy'.
+
+To test the example, for example using the SOAPUI client, an example message
+can be found in the messages sub-folder, with the relevant WSDL being
+located in the bpel sub-folder.
+
+Alternatively, use the 'ant runtest' command (from a command line window)
+to send the example message directly to the deployed process.
+
+NOTE: The "ant deploy" command will by default deploy version 1 of the
+example to the server. If you wish to change the example, and redeploy,
+then you will need to update the version number in the build.xml, or
+override the version property, e.g. "ant -Dversion=2 deploy" (and similarly
+when undeploying "ant -Dversion=2 undeploy").
+
+Some handy URLs:
+http://localhost:8080/bpel-console is the BPEL console
+http://localhost:8080/Quickstart_bpel_approval_serviceWS?wsdl is the URL to the BPEL process' WSDL
+http://127.0.0.1:8080/CreditAgency/ebws/CreditServices/CreditAgencyService?wsdl is the ESB service's WSDL
14 years
riftsaw SVN: r773 - trunk/runtime/engine-assembly/src/main/resources/bpel-sql.
by riftsaw-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2010-06-21 08:27:59 -0400 (Mon, 21 Jun 2010)
New Revision: 773
Modified:
trunk/runtime/engine-assembly/src/main/resources/bpel-sql/oracle.sql
Log:
* update the ddl script for oracle.
Modified: trunk/runtime/engine-assembly/src/main/resources/bpel-sql/oracle.sql
===================================================================
--- trunk/runtime/engine-assembly/src/main/resources/bpel-sql/oracle.sql 2010-06-21 12:27:12 UTC (rev 772)
+++ trunk/runtime/engine-assembly/src/main/resources/bpel-sql/oracle.sql 2010-06-21 12:27:59 UTC (rev 773)
@@ -2,8 +2,6 @@
create table ODE_SCHEMA_VERSION(VERSION integer);
insert into ODE_SCHEMA_VERSION values (6);
-DROP TABLE ODE_JOB;
-
CREATE TABLE ODE_JOB (
jobid VARCHAR(64) NOT NULL,
ts number(37) NOT NULL,
@@ -246,4 +244,4 @@
primary key (ID)
);
-create sequence hibernate_sequence;
\ No newline at end of file
+create sequence hibernate_sequence;
14 years
riftsaw SVN: r772 - branches/RiftSaw-2.1.x/runtime/engine-assembly/src/main/resources/bpel-sql.
by riftsaw-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2010-06-21 08:27:12 -0400 (Mon, 21 Jun 2010)
New Revision: 772
Modified:
branches/RiftSaw-2.1.x/runtime/engine-assembly/src/main/resources/bpel-sql/oracle.sql
Log:
* update the ddl script for oracle.
Modified: branches/RiftSaw-2.1.x/runtime/engine-assembly/src/main/resources/bpel-sql/oracle.sql
===================================================================
--- branches/RiftSaw-2.1.x/runtime/engine-assembly/src/main/resources/bpel-sql/oracle.sql 2010-06-21 10:39:32 UTC (rev 771)
+++ branches/RiftSaw-2.1.x/runtime/engine-assembly/src/main/resources/bpel-sql/oracle.sql 2010-06-21 12:27:12 UTC (rev 772)
@@ -2,8 +2,6 @@
create table ODE_SCHEMA_VERSION(VERSION integer);
insert into ODE_SCHEMA_VERSION values (6);
-DROP TABLE ODE_JOB;
-
CREATE TABLE ODE_JOB (
jobid VARCHAR(64) NOT NULL,
ts number(37) NOT NULL,
14 years
riftsaw SVN: r771 - trunk/runtime/engine-assembly/src/main/resources/bpel-sql.
by riftsaw-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2010-06-21 06:39:32 -0400 (Mon, 21 Jun 2010)
New Revision: 771
Modified:
trunk/runtime/engine-assembly/src/main/resources/bpel-sql/sqlserver.sql
Log:
* fix the data type for sqlserver
Modified: trunk/runtime/engine-assembly/src/main/resources/bpel-sql/sqlserver.sql
===================================================================
--- trunk/runtime/engine-assembly/src/main/resources/bpel-sql/sqlserver.sql 2010-06-21 09:55:07 UTC (rev 770)
+++ trunk/runtime/engine-assembly/src/main/resources/bpel-sql/sqlserver.sql 2010-06-21 10:39:32 UTC (rev 771)
@@ -18,7 +18,7 @@
correlationKeySet varchar(255),
retryCount int,
inMem int,
- detailsExt blob(4096),
+ detailsExt image null,
PRIMARY KEY(jobid));
@@ -242,4 +242,4 @@
ID numeric(19,0) identity not null,
VERSION numeric(19,0) null,
primary key (ID)
-);
\ No newline at end of file
+);
14 years