0 Replies Latest reply on Mar 29, 2017 3:20 PM by Chintan Parekh

    migrate web service from jboss esb (soap-5.1) to Switchyard

    Chintan Parekh Newbie

      Hi,

       

      I have gone through quickstart examples for migrating jboss esb to switchyard. However, i couldn't map how to migrate below soap web service from old jboss esb to switchyard.

      jboss-esb.xml has below entries. How can I write similar implementation in Switchyard.

       

      <?xml version="1.0"?>

      <jbossesb parameterReloadSecs="5"

      xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.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.3.0.xsd        http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd">

      <providers>

        <http-provider name="http">

         <http-bus busid="httpChannel">

          <protected-methods>

           <method name="POST"/>

          </protected-methods>

         </http-bus>

        </http-provider>

        <jms-provider connection-factory="ConnectionFactory" name="JBossMQ">

         <jms-bus busid="Bus-ValidateHPOESID">

          <jms-message-filter dest-name="queue/test_esb" dest-type="QUEUE" selector="service='ValidateID'"/>

         </jms-bus>

         </jms-provider>

      </providers>

      <services>

        <service category="TEST" description="ValidateID" invmScope="NONE" name="ValidateID">

         <listeners>

          <http-gateway busidref="httpChannel" name="httpValidateID"

           payloadAs="STRING" urlPattern="/validateID"/>

          <jms-listener busidref="Bus-ValidateID" is-gateway="false"

           maxThreads="10" name="Bus-ValidateID"/>

         </listeners>

         <actions

          inXsd="/schemas/XMLschemas/constraint/XMLschemas/exchange/ExchangeModel.xsd"

          mep="RequestResponse"

          outXsd="/schemas/XMLschemas/constraint/XMLschemas/exchange/ExchangeModel.xsd"

          validate="false" webservice="true">

          <!-- log request -->

          <action class="org.jboss.soa.esb.actions.LogAction" name="logValidateHPOESID">

           <property name="logLevel" value="debug"/>

           <property name="message" value="Processing Validate ID"/>

          </action>

          <action class="org.action.ValidateIDAction" name="validateID">

           <property name="springContextXml" value="/resources/spring_beans.xml"/>

          </action>

          <!-- log response -->

          <action class="org.jboss.soa.esb.actions.LogAction" name="logValidateHPOESIDResponse">

           <property name="logLevel" value="debug"/>

           <property name="message" value="Validate ID Response"/>

          </action>

         </actions>

        </service>

         </services>

      </jbossesb>

       

      Thanks

      Chintan