You can you the simple language to set the body within a camel message using 
the setBody tag. An example of this for your scenario would be as follows

<to uri="switchyard://SomeService"/> 
<setBody>
<simple>{$body.context.requestId} = {$property.requestId}</simple> 
</setBody>

It is my assumption that your code sample was a snippet that is part a larger 
code sample since there is a trailing </when> tag that I did not account for.

Thanks,
Andy



-- 
Andrew Block
On September 12, 2015 at 9:17:48 AM, horyna ([email protected]) wrote:

Hi,  

need set part of body - code below. Pls. how to do it? First <simple>  
element is not alowed after <to>. Second the code below dont work :)  

thx.  

<to uri="switchyard://SomeService"/>  
<simple>{$body.context.requestId} = {$property.requestId}</simple>  
</when>  



--  
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-set-body-part-with-using-of-XML-DSL-tp5771461.html
  
Sent from the Camel - Users mailing list archive at Nabble.com.  

Reply via email to