Discussion:
Extracting the contents of the header from an xml file
Pablo La Greca
2012-06-27 16:13:55 UTC
Permalink
The xml file will be the payload of your message. There's no way mule can magically know that the content in header element should be an inbound property.
<br /><br />
What you should do is extract the value of the upstream element and set it in an invocation variable so you can use it later.
<br /><br />
Since mule 3.3:
<br />
<code>
<br />
&lt;set-variable variableName=&quot;upstreamHeader&quot; value=&quot;#[xpath(&#47;&#47;events&#47;upstream)]&quot;&#47;&gt;
<br />
</code>
<br />
Before mule 3.3:
<br />
<code>
<br />
&lt;message-properties-transformer scope=&quot;invocation&quot;&gt;
<br />
&lt;add-message-property key=&quot;upstreamHeader&quot; value=&quot;#[xpath:&#47;&#47;events&#47;upstream]&quot;&#47;&gt;
<br />
&lt;&#47;message-propertes-transformer&gt;
<br />
</code>
<br />
HTH, Pablo.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...