SAP Knowledge Base Article - Preview

2743939 - XML Payload to JSON Conversion in REST receiver adapter

Symptom

You are configuring REST receiver adapter and would like to convert XML payload to JSON. You find some relevant functionalities and would like to know how they work in XML/JSON Conversion, the braces {} and brackets [] will be removed or not under different configurations. For example,

  1. An option called "Strip Outer element" under Data Format tab allows to remove the wrapper in XML payload.
  2. A module parameter called "setIgnoredElements" for the REST receiver channel is introduced in note 2465948. It takes the String values defining the XML tag, which should be removed from the JSON message after converting the XML payload.
  3. "Array Type" in "Custom XML/JSON Conversion Rules" table allows to specify whether an XML element should always result in a JSON array type even if the element occurs only once, as introduced in note 2175218.


Read more...

Environment

  • SAP enhancement package 1 for SAP NetWeaver 7.3
  • SAP NetWeaver 7.4
  • SAP NetWeaver 7.5

Product

SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP enhancement package 1 for SAP NetWeaver 7.3

Keywords

REST receiver, REST adapter, XML/JSON Conversion, XML Payload, Convert XML payload to JSON, Data Format, setIgnoredElements, Array Type, square brackets, Process Integration 7.31, PI 7.31, Process Orchestration 7.4, PI 7.4, PO 7.4, Process Orchestration 7.5, PI 7.5, PO 7.5, AEX , KBA , BC-XI-CON-RST , Rest Adapter , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.