0 Replies Latest reply on Mar 11, 2008 1:08 AM by rknaik

    Web Service Producer And Consumer Using JBoss ESB

    rknaik

      Hello,
      I want to deploy web service producer and consumer across the computers. so that consumer on one machine can make request to web service exposed on the other machine ( producer ).

      At consumer side jboss-esb.xml contents that are required to call web service producer are as follows:

      <services>
       <service category="MyServiceCategory" name="WebserviceConsumer1"
       description="Helloworld Webservice Consumer">
       <listeners>
       <jms-listener name="JMS-ESBListener" busidref="quickstartEsbChannel" maxThreads="1" />
       </listeners>
       <actions>
       <action name="request-mapper"
       class="org.jboss.soa.esb.samples.quickstart.webservice_consumer1.MyRequestAction">
       </action>
       <action name="soapui-client-action"
       class="org.jboss.soa.esb.actions.soap.SOAPClient">
       <property name="wsdl"
       value="http://ie10dtcgs4k1s:8080/Quickstart_webservice_consumer1/EsbServiceWS?wsdl" />
       <property name="operation" value="printMessage" />
       <property name="responseAsOgnlMap" value="true" />
       <property name="SOAPAction" value="printMessage"/>
       </action>
       <action name="response-mapper"
       class="org.jboss.soa.esb.samples.quickstart.webservice_consumer1.MyResponseAction">
       </action>
       </actions>
       </service>
       </services>
      

      Where,
      ie10dtcgs4k1s => is the producer's host name.

      And at the producer side jboss-esb.xml contents are as follows.

      <actions>
       <action name="request-mapper"
       class="org.jboss.soa.esb.samples.quickstart.webservice_consumer1.MyRequestAction">
       </action>
       <action name="soapui-client-action"
       class="org.jboss.soa.esb.actions.soap.SOAPClient">
       <property name="wsdl"
       value="http://127.0.0.1:8080/Quickstart_webservice_consumer1/EsbServiceWS?wsdl" />
       <property name="operation" value="printMessage" />
       <property name="responseAsOgnlMap" value="true" />
       <property name="SOAPAction" value="printMessage"/>
       </action>
       <action name="response-mapper"
       class="org.jboss.soa.esb.samples.quickstart.webservice_consumer1.MyResponseAction">
       </action>
       </actions>
      
      

      When i run consumer web service request will be made to producer and response will be printed in ESB console for producer and next time when i run the response gets printed in consumers esb console.

      I dont know whats really wrong ?
      Please help me in solving this issue.

      Thanks
      R.Naik