Skip to Content
0
Former Member
Jun 22, 2015 at 02:48 PM

How to call remote rest service from xsjs?

452 Views

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!!!

Attachments

teste.txt.zip (1.0 kB)