Skip to Content
2
Oct 01, 2019 at 11:04 AM

How to send HTTP Body parameters in SAP PO 7.5

8845 Views

Hello Mates,

I have a scenario wherein the body parameters is send from Sender REST pooling and same needs to be passed as HTTP Body Parameters at a REST receiver end.

POST /api/authentication/access_token HTTP/1.1

Host: HOst-sbx.npr.sandbox.com:443

Headers:

appkey: 11UVugFfQ12hTh5mGBfPckUssLrUdIig

Content-Type: application/x-www-form-urlencoded

Body:

client_id=RVqVK4APpp2hVWKn2fen96wsrqskb9k&client_secret=nilwkaR4&password=nil!&username=user@com&grant_type=password&auth_chain=OAuthLDAPService

Please revert on this. I'm getting below error.

Error while sending message to module processor: Sender Channel 'CC_REST_AccessToken_Sender' (ID: nilb7f8af3c7aa5481): Catching exception calling messaging system: com.sap.aii.adapter.rest.ejb.common.exception.HttpCallException: HTTP POST call to https://HOst-sbx.npr.sandbox.com:443/api/authentication/access_token not successful. : HTTP POST call to https://HOst-sbx.npr.sandbox.com:443/api/authentication/access_token not successful.

Thanks Much - Rajesh PS