7 Replies Latest reply on Mar 6, 2009 11:37 AM by kconner

    consuming webservice into ESB and use it, how?

      Hi everyone,

      I manage to confuse myself with the ESB and SOAP WS.

      Here is what I am trying to do. I have a third party application that exposes a web service. I want to consume that web service and expose it as web service to other applications via ESB.

      so what I did was I created an ESB project, which provided me with an empty esb config file. after editing here is my end result:

      <?xml version="1.0"?>
      <jbossesb parameterReloadSecs="5"
       xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.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.0.1.xsd http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd">
       <providers>
       <jms-provider connection-factory="ConnectionFactory" name="JBossMQ">
       <jms-bus busid="AlexEmployeeEsbChannel">
       <jms-message-filter dest-name="queue/AlexEmployeeEsbChannel" dest-type="QUEUE"/>
       </jms-bus>
       </jms-provider>
       <jbr-provider name="HttpProvider" protocol="http">
       <jbr-bus busid="EmployeeHttpProvider" port="8765"/>
       </jbr-provider>
       </providers>
       <services>
       <service category="AlexESB" description="Cayensta ESB" name="AlexEmployee">
       <listeners>
       <jms-listener busidref="AlexEmployeeEsbChannel" name="JMS-ESBListener"/>
       <jbr-listener busidref="EmployeeHttpProvider" is-gateway="true" name="HttpListener"/>
       </listeners>
       <actions mep="RequestResponse">
       <action class="org.jboss.soa.esb.actions.SystemPrintln" name="print-before">
       <property name="message" value="[Quickstart_webservice_producer] BEFORE invoking jbossws endpoint"/>
       </action>
       <action class="com.Alex.employee.EmployeeRequest" name="request-mapping"/>
       <action class="org.jboss.soa.esb.actions.soap.SOAPClient" name="EmployeeService">
       <property name="wsdl" value="http://10.10.70.175:8080/Alex/Employee?wsdl"/>
       <property name="SOAPAction" value="getEmployeeTypes"/>
       </action>
       <action class="com.Alex.employee.EmployeeResponse" name="response-mapping"/>
       <action class="org.jboss.soa.esb.actions.SystemPrintln" name="print-after">
       <property name="message" value="[Quickstart_webservice_producer] AFTER invoking jbossws endpoint"/>
       </action>
       <action class="org.jboss.soa.esb.actions.TestMessageStore" name="testStore"/>
       </actions>
       </service>
       </services>
      </jbossesb>
      


      I deployed the esb into my jbossesb 4.5 everything went smoothly. It shows that I have consumed that webservice.

      Now I want to use that web service via ESB. what is the next step?

      here is what I see in the contract page:

       AlexESB:AlexEmployee Cayensta ESB
      HTTP
      
       * Endpoint: http://dorands-macbook-pro.local:8765
       * Contract: http://localhost:8080/contract/contract.jsp?serviceCat=AlexESB&serviceName=AlexEmployee&protocol=http
      
      JMS
      
       * Endpoint: jms://localhost:1099/queue/AlexEmployeeEsbChannel
       * Contract: http://localhost:8080/contract/contract.jsp?serviceCat=AlexESB&serviceName=AlexEmployee&protocol=jms
      


      what is the next step?