Quantcast
Channel: SCN : Unanswered Discussions - SAP for Mobile
Viewing all articles
Browse latest Browse all 5512

Running FIORI App Locally

$
0
0

I wanted to run Leave Approval App on a local server (via XAMPP). I have downloaded the code and have imported it to my Eclipse. When I tried accessing the application on the browser. The UI part seems to be fine but I'm having problem accessing the OData which is on a different server (not local). I was expecting just CORS error but the OData that is being retrieved is the local OData which is non-existed.

 

I have already modified the path in web.xml

 

 

                <servlet>

                                <servlet-name>SimpleProxyServlet</servlet-name>

                                <servlet-class>com.sap.ui5.proxy.SimpleProxyServlet</servlet-class>

                </servlet>

                <servlet-mapping>

                                <servlet-name>SimpleProxyServlet</servlet-name>

                                <url-pattern>/sap/*</url-pattern>

                </servlet-mapping>

               

                <context-param>

                                <param-name>com.sap.ui5.proxy.REMOTE_LOCATION</param-name>

                                <param-value>http://xx.xx.xxx.xx:8000/sap/</param-value> <!---location of odata-->

                </context-param>

 

ScreenHunter_67 Nov. 15 18.08.jpg

 

I wonder if I have to do reverse proxy on the webserver. Configuring the config files of XAMPP.

 

Any help is greatly appreciated. Thank you in advance.


Viewing all articles
Browse latest Browse all 5512

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>