0

My desired sequence is the following:

  1. Read message from queue

  2. Transform

  3. Make an SOAP call

  4. Output SOAP response to another queue

Steps 1,2,3 work fine but when the message sent in Step 4, that I'm intending to contain the SOAP response, is empty. What am I doing wrong?

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
     name="JmsToWsdlJms" transports="https,http,jms"         statistics="disable" trace="disable" startOnLoad="true">
  <target>
    <inSequence>
       <enrich>
          <source type="body" clone="true"/>
          <target type="property" property="jms_body_text"/>
       </enrich>
       <property name="jms_body_text"
           expression="get-property('jms_body_text')"
           scope="default"/>
       <xslt key="jmsMsgToSoapMsg_xslt">
          <property name="jms_text" expression="get-property('jms_body_text')"/>
       </xslt>
       <log level="full">
          <property name="After transformation" value="****"/>
       </log>
       <send>
          <endpoint key="axisStockQuote"/>
       </send>
       <log level="full">
          <property name="After callout" value="****"/>
       </log>
       <property name="OUT_ONLY" value="true"/>
       <send>
          <endpoint key="jmsQueue2"/>
       </send>
    </inSequence>
  </target>
  <parameter name="transport.jms.ContentType">
   <rules>
     <jmsProperty>contentType</jmsProperty>
     <default>text/plain; charset=ISO-8859-1</default>
   </rules>
  </parameter>
  <parameter name="transport.jms.DestinationType">queue</parameter>
  <parameter name="transport.jms.Destination">cn=tro_Q_JMS1</parameter>
</proxy>
Ya.
  • 1,671
  • 4
  • 27
  • 53

1 Answers1

0

You can use 'send receive' instead of the send mediator. Something like,

<send receive="jmsQueue2Sequence">
        <endpoint key="axisStockQuote"/>
    </send>

So that the response of axisStockQuote will be sent to the jmsQueue2Sequence. Refer [1] for more info.

[1] https://docs.wso2.com/display/ESB481/Send+Mediator

user2894296
  • 590
  • 1
  • 10
  • 20
  • Accepting the answer though in the end it turned out I had a different problem: http://stackoverflow.com/questions/28838888/wso2-jms-to-wsdl-example-soap-call-is-not-being-placed – Ya. Mar 03 '15 at 18:10