0 Replies Latest reply on Aug 6, 2009 7:51 PM by smughal

    Returning a transformed message from SOAPProcessor to the ne

    smughal

      Hi,

      I've written some code to consume a message from SOAPProcessor which is transformed as needs be. The question is, how do I return the transformed message to the actions pipeline for further processing? The jboss-esb.xml describes what I'd like to happen:

      <?xml version = "1.0" encoding = "UTF-8"?>
      <jbossesb
       xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"
       parameterReloadSecs="5">
      
       <providers>
       <jms-provider name="JBossMQ"
       connection-factory="ConnectionFactory">
       <jms-bus busid="wsGwChannel">
       <jms-message-filter
       dest-type="QUEUE"
       dest-name="queue/wsInboundToHL7_Request_gw"
       />
       </jms-bus>
      
       <jms-bus busid="wsEsbChannel">
       <jms-message-filter dest-type="QUEUE"
       dest-name="queue/wsInboundToHL7_esb" />
       </jms-bus>
       </jms-provider>
      
       <jbr-provider name="JBR-Http" protocol="http" host="localhost">
       <jbr-bus busid="Http-1" port="8765" />
       </jbr-provider>
      
       </providers>
      
       <services>
       <service category="MyServiceCategory" name="WSInboundToHL7"
       description="Patient Processor Webservice Consumer">
       <listeners>
      
       <jbr-listener name="Http-Gateway" busidref="Http-1" is-gateway="true"/>
      
       <jms-listener name="JMS-ESBListener"
       busidref="wsEsbChannel"/>
       <!--<jms-listener name="JMS-Gateway"
       busidref="wsGwChannel"
       is-gateway="true"/>-->
      
      
       </listeners>
       <actions>
      
       <action name="print-before" class="org.jboss.soa.esb.actions.SystemPrintln">
       <property name="message"
       value="[WSInboundToHL7] BEFORE invoking jbossws endpoint"/>
       </action>
      
       <action name="JBossWSAdapter" class="org.jboss.soa.esb.actions.soap.SOAPProcessor">
       <property name="jbossws-endpoint" value="PatientProcessorWS"/>
       </action>
      
       <action name="print-after" class="org.jboss.soa.esb.actions.SystemPrintln">
       <property name="message"
       value="[WSInboundToHL7] AFTER invoking jbossws endpoint"/>
       </action>
      
       <action name="client-action" class="org.jboss.soa.esb.actions.TcpipClient" process="sendMessage">
       <property name="host" value="localhost"/>
       <property name="port" value="7777"/>
       <property name="timeout" value="30000"/>
       </action>
      
       <action name="testStore" class="org.jboss.soa.esb.actions.TestMessageStore"/>
       </actions>
       </service>
       </services>
      
      </jbossesb>


      Thanks.