Skip to Content
0

Access www-form-urlencoded for REST - Token

Jan 29 at 03:25 PM

71

avatar image
Former Member

Hi. Dear Experts. I have an Scenario SOAP to REST. To get the token, the end point use a Oauth Autentication, but the issue is the URL use a content type, application/x-www-form-urlencoded, How can I send the additional parameters, because the URL no use the complete path , not access with the complet path.

Please Can you help me?

Regards

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Vadim Klimov Jan 29 at 07:15 PM
0

Hello Luis,

For requests of content type 'application/x-www-form-urlencoded', key value pairs shall be transmitted in the body of the HTTP request, not in the URL. In the body, they shall form a string of &-delimited key-value pairs, with =-delimited keys/values.

Depending on the version of the PI/PO system you use and grant type that is used in OAuth authorization flow, you can either use REST adapter's standard functionality (check SAP Note 2405166), or will have to develop custom solution, that can be based, for example, on acquisition of OAuth token from within the mapping (check the blog) or by using custom adapter module (check the blog).

Regards,

Vadim

Share
10 |10000 characters needed characters left characters exceeded