Skip to Content
0
Former Member
Apr 07, 2014 at 08:54 AM

Recieve OData failed with 401

26 Views

Hi,

i will recieve an ODataService from SMP where a Service is configured with authentification and a simple username and password.

I will recieve the data with the following lines in the onInit-Function in my view-controller:

var oModel = new sap.ui.model.odata.ODataModel(

"http://xxx.xxx.xxx.xxx:8080/gateway/odata/SECUREPROF/DEMO",

false,

"username",

"password");

If I put the url in the browser I can recieve all kind of data but not in my application.

Has anybody an idea, what can be wrong?

Something I have tested but nothing will help!

I hope that somebody of you can help me.

Thanks,

Peter