Skip to Content
0
Oct 18, 2016 at 08:51 AM

How can be XSJS service consumed in Cloud Fiori App?

240 Views Last edit Oct 18, 2016 at 08:52 AM 2 rev

Hi Experts,

I'm working in SAP HANA Cloud Environment.

I developed XSJS and OData services on database level and registered them on Connectivity->Destinations tab. I created Fiori App (in WebIDE) based Worklist template and OData service mentioned above. It works properly.

At the same time I want to use in my App XSJS service. But every time I get the following error: 404 - Not Found.

Code for calling XSJS service:

jQuery.ajax({ url: '/etk/mig/srvs/js.xsjs', method: 'GET', dataType: 'json', success: this.onComplete, error: this.onErrorCall });

In case if I use the same code for OData service it works good.

How can I use XSJS service in my Fiori App?

Kind regards, Aliaksandr.