Skip to Content

Rest receiver adapter - HTTP 400 Bad request

Hi experts,

We are facing the following error in PI (7.40 SP11) when we try to consume the service with POST method:

HTTP POST call to https://xxxx.com/.../oauth2/token?resource=xxxx&client_id=xxxx&grant_type=xxxx&username=xxxx&password=xxxx≻ope=xxxx not successful. Bad Request

whereas from SoapUI and https://www.hurl.it/ website, it works.

Reviewing different posts like:
https://archive.sap.com/discussions/thread/3734786
https://answers.sap.com/questions/294766/rest-receiver-adapter-post-method.html

  • Content-type parameter is set as application/x-www-form-urlencoded (like in SoapUI and website) using both MessageTransformBean module and additional HTTP header.


Is it necessary any additional setting?

Thanks in advance,
Samantha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 27 at 09:05 AM

    Hi Samantha,

    I am facing similar issue. How did you resolve it ?

    Add comment
    10|10000 characters needed characters exceeded