Do you just need a plan vanilla xml to json and json to xml or do you need some
modifications in your element names etc?
Use
<dataFormats>
<xmljson id="xmljson" />
</dataFormats>
And in case you want to convert xml to json , use
<marshal ref="xmljson" />
In case you want to convert json to xml, use
<convertBodyTo type="java.lang.String" />
<unmarshal ref="xmljson" />
Works fine for SOAP also.
In case you want to rename some elements etc, you need to look at extended
parameters.
Thanks and Regards,
Vanshul Chawla
-----Original Message-----
From: srinit [mailto:[email protected]]
Sent: Friday, July 31, 2015 3:18 PM
To: [email protected]
Subject: RE: Camel XmlJson Question
Hi Raul,
I went through that page and unable get how I can use that for my case.
I don't see any good example for xmljson under Examples section.
- Thanks
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-XmlJson-Question-tp5770021p5770150.html
Sent from the Camel - Users mailing list archive at Nabble.com.