Skip to Content

How can be XSJS service consumed in Cloud Fiori App?

Oct 18, 2016 at 08:51 AM


avatar image

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.

10 |10000 characters needed characters left characters exceeded
Former Member

Hi Aliaksandr,

I'm not following say it works fine when calling the OData service from the Web IDE generated worklist template app. So what isn't working? Are you trying to call that OData service in an extended Fiori App and that isn't working? Also, why are you using ajax to call it? Why not create another OData model?



Hi Jeff,

I tried to consume XSJS service (not OData). I mentioned OData just because it works in my App.

In any case I found a solution: XSJS service shall be added to neo-app.json file. Only after it it can be consumed in Fiori App.

Kind regards, Aliaksandr.

* Please Login or Register to Answer, Follow or Comment.

0 Answers