cancel
Showing results for 
Search instead for 
Did you mean: 

Rest Adapter Conversion

Former Member
0 Kudos


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

Accepted Solutions (1)

Accepted Solutions (1)

Harish
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Harish,

Rest Adapter itself has the feature of content conversion from xml to JSON  format. But I  am not aware of the steps to do the same.

Screenshot of an example.

I want similar steps for my case also.

Thanks & Regards,

Nida

peter_ha3
Participant
0 Kudos

Hi Nida,

please use these conversion rules as below. Kind regards.

Answers (2)

Answers (2)

engswee
Active Contributor
0 Kudos

Hi Nida

Did you check if the adapter comes with it's own configuration guide?

From what I read about Advantco's REST adapter, they have very good customer support for it. I would suggest you to get in touch with  for this.

Rgds

Eng Swee

Former Member
0 Kudos

Hi Eng Swee,

Thanks for the suggestion.

My query is resolved by Peter.

Regards,

Nida

Former Member
0 Kudos