cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI REST adapter - Embed access token and refresh token

former_member601407
Participant
0 Kudos

Hi,

Scenario:

SAP (Proxy) --> PI (REST) --> 3rd party API.

Challenge:

We will be sending XML (abap proxy) to PI, where by means of REST adapter, it will be converted to JSON, further it will hit API. In API documentation, i can see that, in request, input: accesskey, username and password and in output: access token and refresh token. We can specify the username and password in REST adapter itself, but what about the access key and access token and refresh token ? I have never worked with REST before. Pretty confused.

Question: How will the accessKey, accessToken, refershToken sent to API ? Will it be enclosed in JSON request payload? As we are receiving XML from abap proxy, how will PI include these tokens in the payload ?

Accepted Solutions (0)

Answers (1)

Answers (1)

shashi_patan
Active Participant
0 Kudos

Hi Subin,

You need to test REST API from postman at first how it works. Postman is a tool by which you can test any API how it works. Yo need to select particular authorization type while posting data to REST API in postman. choose the appropriate one and post data. If you are successful posting data using postman then try with sap po. in po again you will get authorization option where you can use all keys, token etc.

In SAP PO you will get below option.

Hope it helps!