Skip to Content
0
Jan 24, 2019 at 05:00 PM

Send data POST HTTP REST Documment JSON and Attachment File

122 Views Last edit Jan 29, 2019 at 04:42 PM 2 rev

Im trying to send the IDOC data to the 3rd party via REST adapter. I m using JAVA mapping to convert the XML to JSON and making that JSON code to a attachment. Anybody have the code please post it. I have seen similar post but Attachment are not posting for me.

Please share the code to convert XML to JSON. I have multiple child node in my xml structure

Header is the repeatable one in my XML input.

<Msg>

<Header>

<Node1>

<field1> </field1>

</Node1>

<Node2>

<field1> </field1>

<field2> </field2>

<field3> </field3>

</Node2>

</Header>

<Header>

<Node1>

<field1> </field1>

</Node1>

<Node2>

<field1> </field1>

<field2> </field2>

<field3> </field3>

</Node2>

</Header>

</Msg>

Regards,

Ramalakshmi.G