Skip to Content
0

Unable to call Rest API from XSJS from HANA MDC XSJS Workbench (HANA Trial)

May 19, 2017 at 02:34 PM

120

avatar image

Hi All,

I am trying to call a REST API which is created in another cloud platform from my XS Workbench in HCP. As per the SAP Tutorial (https://help.sap.com/doc/b3d0daf2a98e49ada00bf31b7ca7a42e/2.0.00/en-US/73cf0393c85b467eb948edba5cdad014.html) ., I created the .xshtttpdest file and tried to call the the api from the workbench.Please find below attached xshttpdest file.

After defining the API , I checked in XS Admin tool to verify the destination activation and entered the username and password for credentials.

Below given is code for xsjs from where I am reading the Destination.

Once I run this I am getting the below error.

Can anyone please help me resolve this issue ?

xshttdest.png (13.9 kB)
xsjs.png (20.8 kB)
error.png (4.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers