Hi Melanie, please have a look at our UI5 on Gateway end-to-end tutorial New E2E Tutorial: Gain Hands-on Developer Experience with SAPUI5 and SAP NetWeaver Gateway. It shows how to ...
- call and address a Gateway OData service in your UI5 app
- use the UI5 simple proxy servlet for local testing (to comply with the same origin policy)
- configure the web.xml file with its com.sap.ui5.proxy.REMOTE_LOCATION parameter needed fro the UI5 proxy servlet
- implement a getUrl() helper method to get different Gateway service URLs for local testing versus running the UI5 app on the ABAP server.
I hope the tutorial document answers your question. Regards, Bertram