Note that there are some explanatory texts on larger screens.

plurals
  1. POPass property from inSequence to outSequence
    primarykey
    data
    text
    <p>I'm sending a message with a Proxy to a HL7 TCP/IP port and get the response in the outSequence. But my problem is that all properties set in the inSequence are not anymore available. All of them are null. I tested with all the different scopes (transport, axis2, axis2-client), but none of them worked.</p> <p><a href="https://stackoverflow.com/questions/13144596/stwso2esb-outsequence-processing">I saw in this post that it should be possible</a>. Is the HL7 sender destroying the properties? <strong>How can use my properties from the inSequence in the outSequence?</strong></p> <p>Example of my Proxy (get message from ActiveMQ JMS and sends to HL7 port 4000):</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;proxy xmlns="http://ws.apache.org/ns/synapse" xmlns:hl7="http://wso2.org/hl7" xmlns:urn="urn:hl7-org:v2xml" name="demo_toHL7" transports="jms" startOnLoad="true" trace="disable"&gt; &lt;parameter name="transport.jms.Destination"&gt;demo_qFilter&lt;/parameter&gt; &lt;parameter name="transport.jms.ConnectionFactory"&gt;queueBlocking&lt;/parameter&gt; &lt;parameter name="transport.jms.DestinationType"&gt;queue&lt;/parameter&gt; &lt;parameter name="transport.jms.ContentType"&gt; &lt;rules&gt; &lt;jmsProperty&gt;contentType&lt;/jmsProperty&gt; &lt;default&gt;application/edi-hl7&lt;/default&gt; &lt;/rules&gt; &lt;/parameter&gt; &lt;target faultSequence="rollbackSequence"&gt; &lt;inSequence&gt; &lt;log level="full"/&gt; &lt;property name="ClientApiNonBlocking" scope="axis2" action="remove"/&gt; &lt;property name="testProperty" value="blabla" scope="transport"/&gt; &lt;property name="messageType" value="application/edi-hl7" scope="axis2"/&gt; &lt;property name="ContentType" value="application/edi-hl7" scope="axis2"/&gt; &lt;send&gt; &lt;endpoint&gt; &lt;address uri="hl7://localhost:4000"/&gt; &lt;/endpoint&gt; &lt;/send&gt; &lt;/inSequence&gt; &lt;outSequence&gt; &lt;log level="custom"&gt; &lt;property name="PROPERTY" expression="get-property('transport','testProperty')"/&gt; &lt;/log&gt; &lt;/outSequence&gt; &lt;/target&gt; &lt;/proxy&gt; </code></pre> <hr> <p>I'm using WSO2 ESB 4.0.3 and installed the HL7 Feature. As receiver I use the 7edit application.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload