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.
Showing results for 
Search instead for 
Did you mean: 

Calling an external REST-service: example create_by_destination

0 Kudos

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?