Skip to Content
0
Jul 05, 2019 at 01:07 PM

REST ADAPTER: Problem with XML/JSON custom rules conversion array type

1612 Views Last edit Jul 12, 2019 at 08:19 AM 2 rev

xmlcustomrules.png

Hello all,

We are configuring a PROXY to REST Synchronous scenario in which we have to do XML to JSON payload conversions.

The expected payload is:

"AsnMaterialDetails":[{

"Item":313006063,
"Quantity":10
}]

But the REST adapter is providing the payload as:

"AsnMaterialDetails":{
"Item":313006063,
"Quantity":10
}

I have properly configured the XML/JSON custom rules, where we define the node as an array but it was still not working.

https://blogs.sap.com/2016/01/13/rest-adapter-in-sap-pipo-enhanced-xmljson-conversion/

I followed through this blog where the same issue was mentioned. but it was not yet resolved for me

Any help on the issue would be helpful.

Attachments