I am building a SAPUI5 application that will need to call several oData services, these services require to authenticate. I'm well aware that SAPUI5 provides a way to call this services with something like:
var oModel = new sap.ui.model.odata.ODataModel("http://myserver.com",true,"john","doe768.9");
However I do not want to hard code the user and pass in the js files.
Is there any way to call an oData Servlet from a servlet ? perhaps something similar to a Web Service client?
Thanks in advance.