on 05-15-2014 9:01 AM
Hello,
I'm trying to connect from an XSJS file to an OnPremise service (view the Cloud Connector v2). Is there a bridge between HANA-XS destination to my accout's Destinations?
I already have the connector up and running, exposing a local on-premise URL to the cloud. Then I have a destination representing this URL. Now what?
Thanks
Hi Ariel,
in XS you have to use and configure XS HTTP destinations, which are right now not related to the destinations provided in e.g. the HCP Account Cockpit. An example how to configure an XS destination can be found here: link
As tool, you can use either HANA Studio, or the XS Admin to configure such a destination.
Hope this helps you further.
Best regards,
Timo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried connecting directly from XS to the URL that I exposed from the connector and the name is not resolved. Can I expect that the URL is visible to my XS app?
Details:
MyRealSystem --> Connector --> (exposed as http://a:80) -- |firewall| -- >HCP -- XS
So, can I assume I can simply configure an XS destination to http://a:80?
Thanks
Hi Ariel,
Timo's instructions are correct. Here is the relevant page from the documentation: SAP HANA Cloud Platform.
Thanks!
Petar D.
I tried, but still no success. I get the following error from XS (code is below):
HttpClient.request: request failed. The following error occured: unable to establish connection to localhost:20003 - internal error code: connection failed
Thanks
This is my XSJS code:
---------------------------
try {
var client = new $.net.http.Client();
var req = new $.web.WebRequest($.net.http.GET, "/");
client.request(req, "http://myerp", "http://localhost:20003");
var response = client.getResponse();
$.response.contentType = "text/html";
$.response.setBody(response.body.asString());
$.response.status = $.net.http.OK;
} catch (e) {
$.response.contentType = "text/plain";
$.response.setBody(e.message);
}
I think you have to use an XS destination. Can you try following:
var dest = $.net.http.readDestination("<the-xs-package-in-which-the-destination-is-stored>","myerp");
var client = new $.net.http.Client();
var req = new $.web.WebRequest($.net.http.GET, "");
client.request(req, dest);
Regards, Timo
Ok, tried t, still the same. I also tried to change from localhost to 127.0.0.1 and same error as before - it cannot connect to the proxy
This is the destination properties I used
host = "myerp";
port = 80;
description = "my ERP";
authType = none;
useProxy = true;
proxyHost = "localhost"; //or also tried "127.0.0.1"
proxyPort = 20003;
Hi Ariel,
thanks for the info, then the problem is clear. On-demand to on-premise connectivity is not supported on the hanatrial.ondemand.com landscape. On trial, HANA instances are shared between multiple accounts,and it is not possible to guarantee the level of isolation as it is needed for the connectivity scenario. So as of today, ODOP connectivity is therefore only supported for productive HANA scenarios, where a single HANA instance is related to a single account on HCP.
Best regards, Timo
like Chris I would be very interested if the MDC's allow also OnPrem connectivity. Unfortunately the Documentation at SAP HANA Cloud Platform points to something completely different for the trial.
Best regards
Gregor
Hi Markus,
I've tried the Internet Connectivity in my MDC on HCP Trial and got the result I've documented in xshttpdest does not work on HANA MDC on HCP Trial · Issue #1 · gregorwolf/XSauthLevelPoC · GitHub. Can you perhaps give it a try yourself and perhaps you can also check the Documentation for the Trial Version at SAP HANA Cloud Platform. It currently point to a completely unrelated topic.
Best regards
Gregor
Hello Markus,
thank you for the quick response. You're right, with proxy-trial it works. Can you please do the needful to bring that into the documentation and also correct the expected output in step 5 of the Documentation: SAP HANA Cloud Platform.
Best regards
Gregor
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.