<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Rest Receiver Adapter - XML to JSON issue - HTTP error occurred: Unprocessable Entity in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/rest-receiver-adapter-xml-to-json-issue-http-error-occurred-unprocessable/qaa-p/623729#M153076</link>
    <description>&lt;P&gt;Hi Varun,&lt;/P&gt;
  &lt;P&gt;Have a look in the SAP Note 2465948 - it introduces new parameter 'setIgnoredElements' for REST adapter, which you can make use of to ignore specific XML elements when producing JSON output. Using this parameter, you can instruct REST receiver communication channel to ignore / remove specific fields (such as 'Data', in your example) that are present in the XML version of the message, from the JSON version of the message.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Vadim&lt;/P&gt;</description>
    <pubDate>Sun, 28 Jan 2018 09:53:16 GMT</pubDate>
    <dc:creator>vadimklimov</dc:creator>
    <dc:date>2018-01-28T09:53:16Z</dc:date>
    <item>
      <title>Rest Receiver Adapter - XML to JSON issue - HTTP error occurred: Unprocessable Entity</title>
      <link>https://community.sap.com/t5/technology-q-a/rest-receiver-adapter-xml-to-json-issue-http-error-occurred-unprocessable/qaq-p/623728</link>
      <description>&lt;P&gt;Hi Team, &lt;/P&gt;
  &lt;P&gt;My Scenario is Proxy to Rest and I am facing issue in converting XML to JSON format Error is : HTTP error occurred: Unprocessable Entity, Below is the target structure&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/106438-structure.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;Adapter Screenshot&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/106439-rest-adapter.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;I am getting this additional node "&lt;STRONG&gt;Data&lt;/STRONG&gt;" in the output, how do I remove it&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;{"Data":[{"FinancialTransactionKey":311,"CompanyCode":"US9V","StatusCode":"ERR"},
{"FinancialTransactionKey":769,"CompanyCode":"US9V","DocumentNumber":"6778","FiscalYear":2018,"StatusCode":"COM"},
{"FinancialTransactionKey":123,"CompanyCode":"test1","DocumentNumber":"123","FiscalYear":2018,"StatusCode":"COM"},
{"FinancialTransactionKey":1234,"CompanyCode":"test2","DocumentNumber":"456","FiscalYear":2018,"StatusCode":"COM"},
{"FinancialTransactionKey":6879,"CompanyCode":"test3","DocumentNumber":"780","FiscalYear":2018,"StatusCode":"COM"}]}

Expected Output is

[{"FinancialTransactionKey":311,"CompanyCode":"888","StatusCode":"ERR"},
{"FinancialTransactionKey":769,"CompanyCode":"666","DocumentNumber":"6778","FiscalYear":2018,"StatusCode":"COM"},
{"FinancialTransactionKey":123,"CompanyCode":"test1","DocumentNumber":"123","FiscalYear":2018,"StatusCode":"COM"},
{"FinancialTransactionKey":1234,"CompanyCode":"test2","DocumentNumber":"456","FiscalYear":2018,"StatusCode":"COM"},
{"FinancialTransactionKey":6879,"CompanyCode":"test3","DocumentNumber":"780","FiscalYear":2018,"StatusCode":"COM"}]&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Jan 2018 03:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rest-receiver-adapter-xml-to-json-issue-http-error-occurred-unprocessable/qaq-p/623728</guid>
      <dc:creator>varun_kasireddy</dc:creator>
      <dc:date>2018-01-27T03:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Receiver Adapter - XML to JSON issue - HTTP error occurred: Unprocessable Entity</title>
      <link>https://community.sap.com/t5/technology-q-a/rest-receiver-adapter-xml-to-json-issue-http-error-occurred-unprocessable/qaa-p/623729#M153076</link>
      <description>&lt;P&gt;Hi Varun,&lt;/P&gt;
  &lt;P&gt;Have a look in the SAP Note 2465948 - it introduces new parameter 'setIgnoredElements' for REST adapter, which you can make use of to ignore specific XML elements when producing JSON output. Using this parameter, you can instruct REST receiver communication channel to ignore / remove specific fields (such as 'Data', in your example) that are present in the XML version of the message, from the JSON version of the message.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Vadim&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2018 09:53:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rest-receiver-adapter-xml-to-json-issue-http-error-occurred-unprocessable/qaa-p/623729#M153076</guid>
      <dc:creator>vadimklimov</dc:creator>
      <dc:date>2018-01-28T09:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Receiver Adapter - XML to JSON issue - HTTP error occurred: Unprocessable Entity</title>
      <link>https://community.sap.com/t5/technology-q-a/rest-receiver-adapter-xml-to-json-issue-http-error-occurred-unprocessable/qaa-p/623730#M153077</link>
      <description>&lt;P&gt;Hi Vadim,&lt;/P&gt;
  &lt;P&gt;Firstly, sorry for the late response.&lt;/P&gt;
  &lt;P&gt;Good news is, you suggested Note/Module worked as expected.&lt;/P&gt;
  &lt;P&gt;Appreciate your help, thanks a lot.&lt;/P&gt;
  &lt;P&gt;Varun&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 02:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rest-receiver-adapter-xml-to-json-issue-http-error-occurred-unprocessable/qaa-p/623730#M153077</guid>
      <dc:creator>varun_kasireddy</dc:creator>
      <dc:date>2018-02-07T02:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Receiver Adapter - XML to JSON issue - HTTP error occurred: Unprocessable Entity</title>
      <link>https://community.sap.com/t5/technology-q-a/rest-receiver-adapter-xml-to-json-issue-http-error-occurred-unprocessable/qaa-p/623731#M153078</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;the same same issue am facing now.But using the module i dint got any output. can you please help me out with screen shot may be.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 07:03:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rest-receiver-adapter-xml-to-json-issue-http-error-occurred-unprocessable/qaa-p/623731#M153078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-06T07:03:55Z</dc:date>
    </item>
  </channel>
</rss>

