cancel
Showing results for 
Search instead for 
Did you mean: 

Unsupported Media Type in SAP DS

former_member442248
Active Participant
0 Kudos

Hi All.

When calling a POST rest service getting the below error. It was working fine earlier and have stopped working post migration to AWS wherein in the wadl we have just updated the endpoint.

Regards.

Shazin

rest-webservice.jpg

View Entire Topic
former_member598107
Participant
0 Kudos

Hi Shazin,

Looks like the media type which you are using post upgrade to AWS is not supported or the WADL URL is not correct. To narrow down could you check the below points:

Check if the URL which you are using is Web Service REST Datastore is working as expected in SoapUI or similar tools like SmartBear

Also could you please check SAP Note 2404163 - Failure importing function in a REST web service datastore - Data Services

Link https://help.sap.com/viewer/e54136ab6a4a43e6a370265bf0a2d744/4.2.13/en-US/5749dada6d6d1014b3fc9283b0...

Regards

Arun Sasi

former_member442248
Active Participant
0 Kudos

Hi Arun.

The problem came out to be something different. While deploying the service in AWS few of the content types were blocked. Have got those enabled, will keep all posted on the progress

Regards.

Shaz

former_member442248
Active Participant
0 Kudos

Hi All.

This issue has now been resolved. It came out to be really a straight forward one. We executed the job in trace mode and observed that the content type was going as */*. This was getting filtered at the API gateway. We assigned the content type = application/json in the header parameter in the datastore which resolved the issue.

Regards.

Shazin