Hi,
I have created an ODataModel which tries to consume OData service exposed by an application hosted on SAP Netweaver Java AS. Here is what I am trying to do :
var oModel = new sap.ui.model.odata.ODataModel(URL, true,username,password,{},false,true,false,null,null);
oModel.read();
This request fails with 401 response even though username and password are correct.
How can I get this request to authenticate itself again AS java?
Regards,
Anushree