on 10-03-2014 1:46 PM
Hi All,
I am working on Advantco REST receiver adapter.
Could you please guide me the conversion paramater for xml to JSON .
Input Xml:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_VTAssetMaster xmlns:ns0="http://xxx.com/xxx/xxx">
<Trucks>
<saPid>12575</saPid>
<name>water</name>
<techIdentNo>1445</techIdentNo>
</Trucks>
</ns0:MT_VTAssetMaster>
Output required JSON format:
Trucks:
{"saPid":"12575","name":"water","techIdentNo":"1445"}
Thanks & Regards,
Nida
Hi Nida,
did you tried messagetransformbean? messagetransformbean should work for content conversion in rest adapter. refer the below wiki
How To...Content conversion module with J2EE JMS adapter - Process Integration - SCN Wiki
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could try with an XSLT mapping ... maybe this:
http://www.bramstein.com/projects/xsltjson/conf/xml-to-jsonml.xsl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.