Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3353

The specified HTTP method is not allowed for the resource identified by the Data Service Request URI

$
0
0

Hi,

 

i am trying to use POST method for sending updates to SAP from GW.

 

1) i have used GET parameter to fetch the XCSRF token, which is successful.

2) i would like to use POST method for updating one of the field in SAP, for which i am getting the below error.

 

The specified HTTP method is not allowed for the resource identified by the Data Service Request URI


3) i tried using PUT method which is successful.

 

below is the URL and payload and content type i am using to for POST method.

 

Content-type : multipart/mixed; boundary=batch

 

URL :http://:/sap/opu/odata/SAP/Z_POC_READ_UPDATE_SRV/ZREADUPDATESet(ImVbeln='0000004969')

 

 

 

--batch

Content-Type: multipart/mixed; boundary=changeset

 

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

 

POST ZREADUPDATESet HTTP/1.1

Content-Type: application/atom+xml

Content-Length: 975

 

<?xml version="1.0" encoding="utf-8"?>

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom">

<atom:content type="application/xml">

<m:properties

xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"

xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">

    <m:properties>

     <d:ImAuart/>

     <d:ImErnam/>

     <d:ImLifsk/>

     <d:ImSpart/>

     <d:ImTrvog>1</d:ImTrvog>

     <d:ImVbeln>0000004969</d:ImVbeln>

     <d:ImVkorg/>

     <d:ImVtweg/>

    </m:properties>

</atom:content>

</atom:entry>

 

--changeset--

--batch--


Viewing all articles
Browse latest Browse all 3353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>