cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting for XS app to an OnPremise service

0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

You need to also configure the SCC-tunnel as http proxy localhost:20003 in your xs http destination, afterwards you should be able to call the url specified in the SCC from your XS app via this destination.

Regards, Timo

Former Member
0 Kudos

Hi Ariel,

Timo's instructions are correct. Here is the relevant page from the documentation: SAP HANA Cloud Platform.

Thanks!
Petar D.

0 Kudos

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);

}

Former Member
0 Kudos

I think you have to use an XS destination. Can you try following:

  • define an XS destination in the XS admin tool, e.g. call it "myerp.xshhtpdest". Define the connection details and specify to use a proxy (localhost:20003).
  • change your xsjs coding to something like this:

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

0 Kudos

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;

Former Member
0 Kudos

Hi Arial,

Which is your HANA? I assume the landscape is hana.ondemand.com?

Thanks!
Petar D.

0 Kudos

It is on hanatrial...

Former Member
0 Kudos

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

gregorw
Active Contributor
0 Kudos

Dear Timo,

is there a chance that the HANA trial instances will support connections to On-Premise Systems in the future? For Java applications it just works fine also on the trial instance.

Best regards

Gregor

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gregor,

for the time being, there will not be On-Premise Connectivity for XS on trial. Reasons you can see in Timo's post. In case this will be changed due to changes in architecture, the release notes will tell about it.

Best regards.,

Markus

ChrisXu
Advisor
Advisor
0 Kudos

Given that HCP trial supports HANA MDC now, does it support on-demand to on-premise now?

Thanks!

gregorw
Active Contributor
0 Kudos

Hi ,

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

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gregor,

Connectivity to On-Premise works for MDC installations in the productive landscapes. For installations in the hanatrial landscape it does not work.

Best regards,

Markus

gregorw
Active Contributor
0 Kudos

Hi Markus,

thank you for the partly answer. Any plans that On-Prem connectivity will be added. And what's regarding Internet connectivity or at least connectivity to i.e. Java Services hosted on HCP?

Best regards

Gregor

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gregor,

adding On-Premise Conectivity for MDC in trial is not planned. Internet Connectivity should be possible

Best regards,

Markus

gregorw
Active Contributor
0 Kudos

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

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gregor,

please change the proxy host to proxy-trial and try again.

Best regards,

Markus

gregorw
Active Contributor
0 Kudos

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

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gregor,

That's already triggered

Best regards,

Markus