Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming a rest based srevices in abap

saurav_das
Advisor
Advisor
0 Kudos
260

I am trying to consume a rest based servises in abap using the cl_rest_http_client class.

i was just trying to call a simple get method but it resulted in a responce "HTTP client - communication error".

when i use the same url from the restClient (Firefox extension it works)

I have checked some blogs which talk about consuming rest srevices. most of them have a pre requisite to importing the security certificate of the service provider using the "strust" transaction.

Since i dont have authorization for that transaction, i was wondering if it is possible to call a rest service without importing the certificate.

Kidly suggest ways in which i can overcome this

Thanks and regards,

Saurav

1 REPLY 1

saurav_das
Advisor
Advisor
0 Kudos
57

It is not possible to make an HTTPS request without importing the certificate.

It works fine with HTTP request but for HTTPS we need to import the certificate and pass the SSL id.