cancel
Showing results for 
Search instead for 
Did you mean: 

How can be XSJS service consumed in Cloud Fiori App?

Aliaksandr
Active Participant
0 Kudos

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.

Jeff-Gebo
Advisor
Advisor
0 Kudos

Hi Aliaksandr,

I'm not following you...you 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?

Thanks,
Jeff

Aliaksandr
Active Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (0)