cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI - Rest Receiver with empty payload

oscar_mller
Explorer
0 Kudos
184

Good morning.

I have an asynchronous JDBC->REST scenario, in which I have to call a url without payload. I've already tried passing Content-Length = 0 in the HTTP Headers tab of the rest receiver communication channel, but it continues to pass the following payload:

{"mtEmpty":""}

How to resolve this?

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

oscar_mller
Explorer
0 Kudos

I tried with GET and PUT, and in both I got the HTTP error 405: Method Not Allowed

thanks

oscar_mller
Explorer
0 Kudos

Good afternoon.

Thanks for your answer. I was able to reproduce the error in postman. When I don't send the payload, the return is http 202. When I send it, I receive the same http error that occurs in PI: http 415 Unsupported Media Type.

The api expects Operation POST. What should I put? Get, Put or something else?

Thanks

0 Kudos

In the receiver channel, disable the checkbox "Treat NULL as string". Also, try not to use the POST operation in the receiver REST channel.
Hope this will work.

Also, what impact this payload is creating at target?