<?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: PHP to OData Payload issue - Error while parsing an XML stream in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/php-to-odata-payload-issue-error-while-parsing-an-xml-stream/qaa-p/12657319#M4748549</link>
    <description>&lt;P&gt;Thanks !.. &lt;/P&gt;&lt;P&gt;I got the issue. It is due to I have encoded the JSON data twice. &lt;BR /&gt;I corrected my code and issue resolved.&lt;/P&gt;&lt;P&gt;Your answer was a quick help to understand the issue. &lt;/P&gt;</description>
    <pubDate>Mon, 15 May 2023 08:12:08 GMT</pubDate>
    <dc:creator>nikhilshinde1234</dc:creator>
    <dc:date>2023-05-15T08:12:08Z</dc:date>
    <item>
      <title>PHP to OData Payload issue - Error while parsing an XML stream</title>
      <link>https://community.sap.com/t5/technology-q-a/php-to-odata-payload-issue-error-while-parsing-an-xml-stream/qaq-p/12657316</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
  &lt;P&gt;I am trying to submit a JSON data to SAP which is resulting an Error : Error while parsing an XML stream.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Current payload submitting to the SAP&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;{&lt;/P&gt;
  &lt;P&gt;"Aufnr": "000001000703",&lt;/P&gt;
  &lt;P&gt;"werks": "1200",&lt;/P&gt;
  &lt;P&gt;"gamng": "106160.000",&lt;/P&gt;
  &lt;P&gt;"gmein": "KG",&lt;/P&gt;
  &lt;P&gt;"type": " ",&lt;/P&gt;
  &lt;P&gt;"message": " "&lt;/P&gt;
  &lt;P&gt;}&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Resulting format in SAP getting :&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;"{\"Aufnr\":\"000001000703\",\"werks\":\"1200\",\"gamng\":\"106160.000\",\"gmein\":\"KG\",\"type\":\" \",\"message\":\" \"}"&lt;/P&gt;
  &lt;P&gt;&lt;U&gt;what I am suppose to get in SAP from PHP&lt;/U&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2167728-microsoftteams-image-4.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;U&gt;what I am getting in SAP from PHP&lt;/U&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2167729-microsoftteams-image-3.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 20:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/php-to-odata-payload-issue-error-while-parsing-an-xml-stream/qaq-p/12657316</guid>
      <dc:creator>nikhilshinde1234</dc:creator>
      <dc:date>2023-05-11T20:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: PHP to OData Payload issue - Error while parsing an XML stream</title>
      <link>https://community.sap.com/t5/technology-q-a/php-to-odata-payload-issue-error-while-parsing-an-xml-stream/qaa-p/12657317#M4748547</link>
      <description>&lt;P&gt;Hello Nikhil,&lt;/P&gt;&lt;P&gt;Welcome to the SAP Community. Thank you for visiting us to get answers to your questions.&lt;/P&gt;&lt;P&gt;Since you're asking a question here for the first time, I'd like to offer some friendly advice on how to get the most out of your community membership and experience.&lt;/P&gt;&lt;P&gt;First, please see &lt;A href="https://community.sap.com/resources/questions-and-answers" target="test_blank"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;, as this resource page provides tips for preparing questions that draw responses from our members. Second, feel free to take our Q&amp;amp;A tutorial at &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;, as that will help you when submitting questions to the community.&lt;/P&gt;&lt;P&gt;I also recommend that you include a profile picture. By personalizing your profile, you encourage readers to respond: &lt;A href="https://developers.sap.com/tutorials/community-profile.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I hope you find this advice useful, and we're happy to have you as part of SAP Community!&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Anne&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 20:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/php-to-odata-payload-issue-error-while-parsing-an-xml-stream/qaa-p/12657317#M4748547</guid>
      <dc:creator>AnnePetteroe</dc:creator>
      <dc:date>2023-05-11T20:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: PHP to OData Payload issue - Error while parsing an XML stream</title>
      <link>https://community.sap.com/t5/technology-q-a/php-to-odata-payload-issue-error-while-parsing-an-xml-stream/qaa-p/12657318#M4748548</link>
      <description>&lt;P&gt;Maybe you forgot to tell SAP Gateway which format your request is based on and which format of response is accepted by your client as described in this &lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2017/08/29/defaulting-odata-response-in-json-format/" target="_blank"&gt;Blog post&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 05:16:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/php-to-odata-payload-issue-error-while-parsing-an-xml-stream/qaa-p/12657318#M4748548</guid>
      <dc:creator>Andre_Fischer</dc:creator>
      <dc:date>2023-05-12T05:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: PHP to OData Payload issue - Error while parsing an XML stream</title>
      <link>https://community.sap.com/t5/technology-q-a/php-to-odata-payload-issue-error-while-parsing-an-xml-stream/qaa-p/12657319#M4748549</link>
      <description>&lt;P&gt;Thanks !.. &lt;/P&gt;&lt;P&gt;I got the issue. It is due to I have encoded the JSON data twice. &lt;BR /&gt;I corrected my code and issue resolved.&lt;/P&gt;&lt;P&gt;Your answer was a quick help to understand the issue. &lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 08:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/php-to-odata-payload-issue-error-while-parsing-an-xml-stream/qaa-p/12657319#M4748549</guid>
      <dc:creator>nikhilshinde1234</dc:creator>
      <dc:date>2023-05-15T08:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: PHP to OData Payload issue - Error while parsing an XML stream</title>
      <link>https://community.sap.com/t5/technology-q-a/php-to-odata-payload-issue-error-while-parsing-an-xml-stream/qaa-p/12657320#M4748550</link>
      <description>&lt;P&gt;I converted your comment to an answer so you can accept it ;-).&lt;/P&gt;&lt;P&gt;You can upvote my answer as being helpful as well ;-).&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 14:17:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/php-to-odata-payload-issue-error-while-parsing-an-xml-stream/qaa-p/12657320#M4748550</guid>
      <dc:creator>Andre_Fischer</dc:creator>
      <dc:date>2023-05-19T14:17:18Z</dc:date>
    </item>
  </channel>
</rss>

