cancel
Showing results for 
Search instead for 
Did you mean: 

How to call remote rest service from xsjs?

Former Member
0 Kudos
904

Hi all,

  I'm pretty new to SAP HANA and I need to call a rest service from my xsjs (for example: http://requestb.in/1lce0gv1).

  My xsjs looks like the one I attached. The question is: how do I do it?

I tried to make a post:

$.post("http://requestb.in/1lce0gv1");

But I got a 500 error page. I also tried get

$.get("http://requestb.in/1lce0gv1");

But also got a 500 error page.

  Thanks in advance!!!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi all!

  I got it done! I followed the examples in

SAP HANA Cloud Platform

  and now it works. Thanks!!!

pfefferf
Active Contributor
0 Kudos

Hello Rodrigo,

in HANA there exists outbound HTTP connectivity. Just follow the description in the online documentation Maintaining HTTP Destinations - SAP HANA Developer Guide for SAP HANA Studio - SAP Library.

Best Regards,

Florian