Showing results for 
Search instead for 
Did you mean: 

REST Receiver Adapter PUT without payload and Content-Length = 0 in SAP PI 7.4 SP22

0 Kudos

Dear All,

I have set up a REST receiver channel one with PUT & other one with Delete call. Passing the Authentication values in HTTP Header parameters - Date & Authorization. As per the requirement at the receiver end, we need to pass these two calls without any payload.

Apart from the above mentioned, as per suggestion I got from the forum I am passing Content-Length = 0, which was working till now. However from this week onward, the PUT API call is throwing an error of HTTP 404. I checked the same with Postman call, the same issue is happening also with postman. Earlier, passing Content-Length as 0 and having with XML payload in the body in Postman, the response used to be success. It is fine for Delete call, however for PUT call its throwing error both from postman and PI.

Please suggest possible ways to send the calls without payload in it.

Accepted Solutions (0)

Answers (2)

Answers (2)

Active Contributor
0 Kudos

Aside from the thingy that it doesn't make much sense to PUT something with no content and that I second cpilearner that probably your endpoint's bevahior changed, you now gotta deal with the new requirements, right?

This is just a shot in the dark but maybe an inline java mapping effectively eleminating your request payload could work? I recently learned that little trick here and it seems particularly handy in REST screnarios, where there's often no formalized behaviour how exactly the service behaves / wants to be called etc.



0 Kudos

Service has to work when you test with postman. You are saying it was working before and not working now. it makes sense to check with api team if there is any change done.