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/CreditAgencyServiceOp...
+ <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...
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trun...
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