Skip to Content
author's profile photo Former Member
Former Member

How to call remote rest service from xsjs?

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

teste.txt.zip (1.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jun 23, 2015 at 10:51 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 23, 2015 at 07:19 PM

    Hi all!

    I got it done! I followed the examples in

    SAP HANA Cloud Platform

    and now it works. Thanks!!!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.