on 06-18-2019 3:40 PM
Hello Experts,
We tried to deploy one of our applications from the neo enviroment to the SAP Cloud Platform, using the following guide: https://help.sap.com/viewer/86ce311577794701bae493bddd753aa3/1.53.0.0/en-US/894bb92f12c24cf1abc98757....
Unfortunately after deploying an error occurs at runtime that sap is not defined. (sapnotdefined.png)
After looking for a solution online we changed the bootstrap source in our application to "https://sapui5.hana.ondemand.com/resources/sap-ui-core.js", like it was suggested in some threads we found. (scriptafter.png)
Now the webapp works neither in the web ide nor when it’s deployed. In both we get a CORS error and that the iot library cannot be loaded. The whole application is based on the IoT Freestyle Application Template.
Any help would be appreciated.
Kind Regards,
Paul
Hi Paul,
That help file is intended for those that wish to use the Leonardo IoT Enablement service. Is this what you want?
IoT services from Neo and CF differ a lot from each other. In other words they are not compatible.
Furthermore, you may want to check the SAP AppRouter implementation as it works as an entry point for all microservices under your CF space and it avoids CORS with destination settings. If you are using WebIDE Full Stack, you could check the html5 module template which in turn uses the AppRouter.
Try also the Cloud Business Application template - it creates a db and srv module. Once you add an html5 module it implements the entry point to your services. I've explained this here:
https://blogs.sap.com/2018/12/11/cloud-foundry-authentication-how-it-works-step-by-step/
Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paul,
i have same problem.
Did you find a solution for your question?
Best regards,
Abdoulaye
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.