Hi There,
I am getting same problem to get response from ESB but little bit different in way of calling ESB.
I am using jBPM ESB Node to invoke ESB [BPM Process]. I can send request but I am not getting response
Please help me to sort out the problem.
I am providing my inputs below
************************ jboss-esb.xml ***************************************
<?xml version="1.0"?>
<jbossesb parameterReloadSecs="5"
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.2.0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.2.0.xsd http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.2.0.xsd">
<services>
<service category="TestESB" description="Basic WebService Proxy"
invmScope="GLOBAL" name="TestESB">
<listeners>
<http-gateway name="TestESB-GwListener"/>
</listeners>
<actions mep="RequestResponse">
<action class="org.jboss.soa.esb.actions.SystemPrintln" name="echo-request">
<property name="message" value="ESB:Message before SOAPProxy"/>
</action>
<action class="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy" name="proxy">
<property name="wsdl" value="http://127.0.0.1:8080/FastCar/CarService?wsdl"/>
</action>
<action class="org.jboss.soa.esb.actions.SystemPrintln" name="echo-response">
<property name="message" value="ESB:Message after SOAPProxy"/>
</action>
</actions>
</service>
</services>
</jbossesb>
******************************* processdefination.xml *************************************************************
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="FastCarProcess">
<start-state name="start">
<event type="node-enter">
<action name="action" class="com.sample.action.MessageActionHandler"/>
</event>
<transition to="fastCarState">
<action name="action" class="com.sample.action.MessageActionHandler">
<message>{ BPM } Going to the Fast car state...</message>
</action>
</transition>
</start-state>
<state name="fastCarState">
<transition to="fastCarESBNode" name="to fastCarESB">
<action name="action" class="com.sample.action.AddressActionHandler">
<message>{ BPM } Going to the Fast Car ESB...</message>
</action>
</transition>
</state>
<node name="fastCarESBNode">
<action name="action" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
<esbServiceName>TestESB</esbServiceName>
<esbCategoryName>TestESB</esbCategoryName>
<bpmToEsbVars>
<mapping bpm="entireRequest" esb="BODY_CONTENT"/>
</bpmToEsbVars>
</action>
<event type="node-enter">
<action name="action" class="com.sample.action.MyEventHandler" />
</event>
<transition to="end">
<action name="action" class="com.sample.action.AddressActionHandler">
<message>{ BPM } Going to the End State...</message>
</action>
</transition>
</node>
<end-state name="end">
</end-state>
</process-definition>
********************************************** logs from server console *********************************************************
2011-02-08 12:05:46,853 INFO [STDOUT] (http-127.0.0.1-8080-3) ========= BPM Started=============
2011-02-08 12:06:24,618 INFO [STDOUT] (http-127.0.0.1-8080-3) *** Handling ESB Layer ************
2011-02-08 12:06:24,618 INFO [STDOUT] (http-127.0.0.1-8080-3) MyEventHandler
2011-02-08 12:06:24,634 INFO [STDOUT] (http-127.0.0.1-8080-3) *** Handling ESB Layer ************
2011-02-08 12:06:24,899 INFO [STDOUT] (pool-23-thread-1) ESB:Message before SOAPProxy:
2011-02-08 12:06:24,899 INFO [STDOUT] (pool-23-thread-1) [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:car="http://www.hexaware.com/CarService/">
<soapenv:Header/>
<soapenv:Body>
<car:hireCarRequest>
<noOfPersions>1</noOfPersions>
<carType>Benz</carType>
<fromTo>ChennaiToTirupati</fromTo>
</car:hireCarRequest>
</soapenv:Body>
</soapenv:Envelope>
].
2011-02-08 12:06:24,915 WARN [org.jboss.soa.esb.actions.soap.proxy.SOAPProxy] (pool-23-thread-1) null binding for soapaction [null]; parsing envelope to discover operation...
2011-02-08 12:06:24,931 ERROR [org.jboss.soa.esb.actions.soap.proxy.SOAPProxy] (pool-23-thread-1) null binding for operation [{http://www.hexaware.com/CarService/}hireCarRequest] in addition to soapaction [null]
2011-02-08 12:06:25,478 WARN [org.jboss.soa.esb.services.jbpm.cmd.CallbackCommand] (WorkManager(2)-6) Token id 178 from process instance 178 has already terminated
************************************ WSDL ********************************
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.hexaware.com/CarService/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="CarService" targetNamespace="http://www.hexaware.com/CarService/">
<wsdl:types>
<xsd:schema targetNamespace="http://www.hexaware.com/CarService/">
<xsd:element name="hireCarRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="noOfPersions" type="xsd:int"/>
<xsd:element name="carType" type="xsd:string"/>
<xsd:element name="fromTo" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="hireCarResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="tokenNuber" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getReport">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="noOfBookings" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getReportResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="carType" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="hireCarRequest">
<wsdl:part element="tns:hireCarRequest" name="parameters"/>
</wsdl:message>
<wsdl:message name="hireCarResponse">
<wsdl:part element="tns:hireCarResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="getReportRequest">
<wsdl:part name="parameters" element="tns:getReport"/>
</wsdl:message>
<wsdl:message name="getReportResponse">
<wsdl:part name="parameters" element="tns:getReportResponse"/>
</wsdl:message>
<wsdl:portType name="CarService">
<wsdl:operation name="hireCar">
<wsdl:input message="tns:hireCarRequest"/>
<wsdl:output message="tns:hireCarResponse"/>
</wsdl:operation>
<wsdl:operation name="getReport">
<wsdl:input message="tns:getReportRequest"/>
<wsdl:output message="tns:getReportResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CarServiceSOAP" type="tns:CarService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="hireCar">
<soap:operation soapAction="http://www.hexaware.com/CarService/hireCar"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getReport">
<soap:operation soapAction="http://www.hexaware.com/CarService/getReport"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CarService">
<wsdl:port binding="tns:CarServiceSOAP" name="CarServiceSOAP">
<soap:address location="http://127.0.0.1:8080/FastCar/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>