Skip to Content
Aug 09, 2019 at 07:59 AM

SAP PO REST receiver {http_result}

4837 Views Last edit Aug 12, 2019 at 08:30 AM 2 rev


we're on SAP PO 7.5 SP14, and struggle with REST receiver adapter. We've a REST service, which returns HTTP 302 with location in header, AND a payload with some additional data. Currently the receiver is setup with module parameters:

ProceedRedirects = false

useResponseErrorMessage = true

setAppErrorOnCustomMessage = true

Result handler is set for Exception - custom result, message content is only {http_result}.

However, the response is always empty. I've browsed through notes 2273265, 2238546 and 2223623 and I think my setup should be OK, but it's not working as expected.

Any suggestion on howto to achieve to NOT follow redirect and send the payload to sender ? When I try in postman/soap ui everything works.

EDIT: I've tried to generate some other error than HTTP 302 - http_result is filled properly (I've tried 403), but whenever I trigger 302, it's empty.

Also in my original post I mentioned incorrect module parameter - setAppErrorOnCustomMessage is the one that should allow me to use http_result during custom error handling, but's not working as expected.


Produces proper output:

{ "status": { "statusCode": "ERROR_VALUE_INVALID", "code": 8062, "codeLiteral": "INVALID_AUTH_FOR_THIS_ORDER", "statusDesc": "Permission denied for given action" } }

While 302:

Produces empty response. But in Postman there's a payload!



1.png (17.7 kB)
2.png (10.5 kB)
3.png (22.9 kB)