Skip to Content
0
Sep 06, 2017 at 11:13 AM

Calling an external REST-service: example create_by_destination

592 Views Last edit Sep 06, 2017 at 12:33 PM 2 rev

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: demo.docusign.net

Path Prefix: /restapi/v2

Service No. 443

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

"https://demo.docusign.net:443/restapi/v2/login_information"

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

cl_http_utility=>set_request_uri(
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?

Thanks