Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

POST Service calling giving 415 Unsupported Media Type error

$
0
0

Hi Experts,

 

After a long struggle I am able to fetch CSRF token using a GET from a REST client. When am using the CSRF token generated in my POST call I am getting the 415 Unsupported Media Type error.

 

Any help and guidance on this is highly appreciated.

 

My Request and Response Headers are as below:

 

 

Request headers

 

User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

 

 

Origin: chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo

 

 

X-CSRF-TOKEN: D_dl8YTqmo8McA5hB6wbSQ==

 

 

Authorization: Basic eHN0aXdhcmk6Z2F0ZXdheXNha2V0

 

 

Content-Type: application/atomsvc+xml

 

 

Accept: */*

 

 

Accept-Encoding: gzip,deflate,sdch

 

 

Accept-Language: en-US,en;q=0.8,te;q=0.6

 

 

Cookie: SAP_SESSIONID_SGW_410=Yp1hr0N7UnRw1-E89GUivHj9wDz7xxHjgMkAUFatdjY%3d

Response headers

 

content-type: application/xml

 

 

content-length: 805

 

 

dataserviceversion: 1.0

<errorxmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<code>
005056A509B11ED199D882461C8C60FE

 

</code>

<messagexml:lang="en">

The server is refusing to process the request because the entity has a unsupported format

 

</message>

<innererrorxmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<transactionid>
A4CFFBE3CDBEF1A180C9005056AD7636

 

</transactionid>

<timestamp>

20140624184500.2310000

 

</timestamp>

<Error_Resolution>

<SAP_Transaction>
Run transaction /IWFND/ERROR_LOG on SAP NW Gateway hub system and search for entries with the timestamp above for more details

 

</SAP_Transaction>

<SAP_Note>

See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)

 

</SAP_Note>
</Error_Resolution>
</innererror>

</error>

 

 

 

Regards,

Saket.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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