Skip to Content
Former Member
Jan 13, 2014 at 03:23 PM

Calling an oData Service from a Servlet


Hi Experts,

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("",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.