Skip to Content

Calling an external REST-service: example create_by_destination

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?


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers