Skip to Content

Calling an external REST-service: example create_by_destination

Sep 06, 2017 at 11:13 AM


avatar image

Dear ,

It appears our external REST service is not happy when I use cl_http_client=>create_by_destination from our SM59 destination. When I changed it to use cl_http_client=>create_by_url, it appears to be working properly.

Our SM59 destination looks like this:

Target Host:

Path Prefix: /restapi/v2

Service No. 443

Likewise, when I call cl_http_client=>create_by_url, I pass the URL parameter as


Either way, I then use cl_http_utility=>set_request_uri to set the request method path to "/login_information".

request = lo_http_client->request
uri = '/login_information'

Have you ever seen differences between create_by_destination and create_by_url or differences in the way external company REST services behave?


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

0 Answers