<?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: SAP DataServices - Using PUT method RESTFUL Webservices in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-dataservices-using-put-method-restful-webservices/qaa-p/12371194#M4631258</link>
    <description>&lt;P&gt;Hi Gilles,&lt;/P&gt;&lt;P&gt;Please check the below &lt;/P&gt;&lt;P&gt;The URL for the external web service works as expected in SoapUI or POSTMAN&lt;/P&gt;&lt;P&gt;Root Case: The Data Services REST web service datastore only supports the mediatypes of application/XML and application/JSON. When this header is missing or malformed, the server will automatically use &lt;CODE&gt;application/octet-stream&lt;/CODE&gt; by default&lt;/P&gt;&lt;P&gt;Please refer to SAP Note 2404163 - Failure importing function in a REST web service datastore - Data Services.&lt;/P&gt;&lt;P&gt;Also refer Data Services Integrator Guide&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/PRODUCTION/ace9cae2f4cf408883eb0120b494f3dd/4.2.8/en-US/ds_42_integrate_en.pdf" target="test_blank"&gt;https://help.sap.com/doc/PRODUCTION/ace9cae2f4cf408883eb0120b494f3dd/4.2.8/en-US/ds_42_integrate_en.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun Sasi&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jan 2021 05:04:20 GMT</pubDate>
    <dc:creator>former_member598107</dc:creator>
    <dc:date>2021-01-07T05:04:20Z</dc:date>
    <item>
      <title>SAP DataServices - Using PUT method RESTFUL Webservices</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-dataservices-using-put-method-restful-webservices/qaq-p/12371193</link>
      <description>&lt;P&gt;Hi Dear Experts,&lt;/P&gt;
  &lt;P&gt;I have an issue to use a PUT method.&lt;/P&gt;
  &lt;P&gt;The problem is in the PUT request. In API says to define request header as &lt;STRONG&gt;Content-Type:application/octet-stream&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;I tried to define in WADL file this type&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1874864-1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;I got unsupported type error&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1874865-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;After that I tried to change the header like this&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1874866-3.png" /&gt;&lt;/P&gt;
  &lt;P&gt;And this one&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1874867-4.png" /&gt;&lt;/P&gt;
  &lt;P&gt;In both cases I get HTTP 500 error&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1874868-5.png" /&gt;&lt;/P&gt;
  &lt;P&gt;This error due double header collision (json + octet-stream)&lt;/P&gt;
  &lt;P&gt;The problem is that I can't remove the json header, I don't have any setting for it. It's absolutely automatic.&lt;/P&gt;
  &lt;P&gt;Many thanks for any help and support.&lt;/P&gt;
  &lt;P&gt;Gilles&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 09:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-dataservices-using-put-method-restful-webservices/qaq-p/12371193</guid>
      <dc:creator>gilles_breton</dc:creator>
      <dc:date>2021-01-06T09:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAP DataServices - Using PUT method RESTFUL Webservices</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-dataservices-using-put-method-restful-webservices/qaa-p/12371194#M4631258</link>
      <description>&lt;P&gt;Hi Gilles,&lt;/P&gt;&lt;P&gt;Please check the below &lt;/P&gt;&lt;P&gt;The URL for the external web service works as expected in SoapUI or POSTMAN&lt;/P&gt;&lt;P&gt;Root Case: The Data Services REST web service datastore only supports the mediatypes of application/XML and application/JSON. When this header is missing or malformed, the server will automatically use &lt;CODE&gt;application/octet-stream&lt;/CODE&gt; by default&lt;/P&gt;&lt;P&gt;Please refer to SAP Note 2404163 - Failure importing function in a REST web service datastore - Data Services.&lt;/P&gt;&lt;P&gt;Also refer Data Services Integrator Guide&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/PRODUCTION/ace9cae2f4cf408883eb0120b494f3dd/4.2.8/en-US/ds_42_integrate_en.pdf" target="test_blank"&gt;https://help.sap.com/doc/PRODUCTION/ace9cae2f4cf408883eb0120b494f3dd/4.2.8/en-US/ds_42_integrate_en.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun Sasi&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 05:04:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-dataservices-using-put-method-restful-webservices/qaa-p/12371194#M4631258</guid>
      <dc:creator>former_member598107</dc:creator>
      <dc:date>2021-01-07T05:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAP DataServices - Using PUT method RESTFUL Webservices</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-dataservices-using-put-method-restful-webservices/qaa-p/12371195#M4631259</link>
      <description>&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;Thank you for your comment.&lt;/P&gt;&lt;P&gt;I'm working with Gilles on this issue.&lt;/P&gt;&lt;P&gt;2404163 does not help - "use a supported mediatype" is useless resolution&lt;/P&gt;&lt;P&gt;For all another requests (GET,POST) we use &lt;CODE&gt;mediaType="application/json"&lt;/CODE&gt; without any header parameter and it's works well. So I understand, that Data Services use &lt;CODE&gt;application/json&lt;/CODE&gt; header by default and not &lt;CODE&gt;application/octet-stream&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;If
 we use &lt;CODE&gt;application/json&lt;/CODE&gt; mediatype, we get "&lt;EM&gt;Unsupported Media Type 
Error&lt;/EM&gt;" from the API. Exactly like we get in Postman with this type in 
header.&lt;/P&gt;&lt;P&gt;Also this error we get, if we put &lt;CODE&gt;mediaType="*/*"&lt;/CODE&gt; or &lt;CODE&gt;mediaType="application/json; type=application/octet-stream"&lt;/CODE&gt; and header Content-Type parameter is empty.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Benjamin Paz&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 11:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-dataservices-using-put-method-restful-webservices/qaa-p/12371195#M4631259</guid>
      <dc:creator>bpaz</dc:creator>
      <dc:date>2021-01-07T11:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAP DataServices - Using PUT method RESTFUL Webservices</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-dataservices-using-put-method-restful-webservices/qaa-p/12371196#M4631260</link>
      <description>&lt;P&gt; @benjamin&lt;/P&gt;&lt;P&gt;Looks like the type = application/octet-stream is not supported in BODS. I could not find this in any of the SAP Notes or DS Integrator guide.&lt;/P&gt;&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;dirk.venken&lt;/SPAN&gt; Could you please confirm here&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun Sasi&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 12:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-dataservices-using-put-method-restful-webservices/qaa-p/12371196#M4631260</guid>
      <dc:creator>former_member598107</dc:creator>
      <dc:date>2021-01-07T12:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAP DataServices - Using PUT method RESTFUL Webservices</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-dataservices-using-put-method-restful-webservices/qaa-p/12371197#M4631261</link>
      <description>&lt;P&gt;I am also running into the same issue, wherein the API I am dealing with (8x8) requires Content-Type=application/x-www-form-urlencoded in the header. When I put it as a Standard HTTP Header Field, it certainly picks it up, but then throws an error as there are now duplicate Content-Type entries. This can easily be replicated in SOAP UI.&lt;/P&gt;&lt;P&gt;From the trace...&lt;/P&gt;&lt;P&gt;TRAN	9/14/2022 9:13:53 AM	Content-Type: application/json; charset=utf-8&lt;/P&gt;&lt;P&gt;TRAN	9/14/2022 9:13:53 AM	Content-Type: application/x-www-form-urlencoded&lt;/P&gt;TRAN	9/14/2022 9:13:54 AM	HTTP/1.1 400 Bad RequestTRAN	9/14/2022 9:13:54 AM	{"fault":{"faultstring":"Duplicate Header \"Content-Type\"","detail":{"errorcode":"protocol.http.DuplicateHeader"}}}There is no way around this?...</description>
      <pubDate>Wed, 14 Sep 2022 16:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-dataservices-using-put-method-restful-webservices/qaa-p/12371197#M4631261</guid>
      <dc:creator>former_member730149</dc:creator>
      <dc:date>2022-09-14T16:27:04Z</dc:date>
    </item>
  </channel>
</rss>

