Skip to Content
0

Issue with DELETE operation in REST Adapter

Dec 06, 2016 at 06:17 PM

190

avatar image

Hi,

We are trying to integrate SAP with a cloud application using REST APIs. We are using REST adapter to call the APIs.

Used operations GET, POST, PUT and DELETE. GET, POST and PUT are working as expected but having issue with DELETE.

In message monitor it shows the payload correctly. We suspect while sending out it is not sending the payload with the message.

We used requestbin to get the HTTP message. For PUT we are getting the payload as expected but for DELETE it is an empty message.

Sorry for the length of the message. I am trying to provide as many details as I can so that issue will be clear.

Payload showing in message monitor:

Error response:

This same payload with similar parameters is working fine in POSTMAN client.

When I tried sending this to a test HTTP server to review the payload, it is not sending any payload.

For same server if sending out a PUT request, REST Adapter is sending out payload successfully.

Payload in message monitoring:

Request sent out to test HTTP server. This has the payload as expected.

Channel Configuration:

delete.png (17.3 kB)
delete.png (36.3 kB)
delete.png (48.3 kB)
delete.png (15.1 kB)
delete.png (53.9 kB)
delete.png (24.1 kB)
delete.png (12.1 kB)
delete.png (6.4 kB)
delete.png (8.0 kB)
delete.png (8.4 kB)
10 |10000 characters needed characters left characters exceeded

Does anyone had similar issue before?

0

Hi Reddy

I faced same question with POST operation. Could you show me that how to do? Thanks.

Best Regards

Weishu Wang

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Srini Reddy Mar 04, 2017 at 02:29 PM
0

SAP Released two notes to resolved this issue. I am updating the question so it might be helpful for someone having same issue.

You can go and apply the patches for SERVERCORE, also the relevant dependencies, following this SAP Note: 2420585 - Set request body of the DELETE method in SAP HttpClient library. After applying the above note, please follow the instructions and apply the second SAP Note: 2421223 - Receiver channel is sending empty payload for DELETE method

Important: It is mandatory to follow the described notes order. First apply the SAP Note: 2420585 - Set request body of the DELETE method in SAP HttpClient library
and then the second SAP Note: 2421223 - Receiver channel is sending empty payload for DELETE method

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks Srini for sharing the resolution.

0