Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Consumeing SAP ODATA service from .Net

Dear All

I have created a odata service and registered it in Gateway.


I am able to get the output in browser.

But when I call this service from the .net application, I am getting 401 Authentication error.

Can someone help me ?

1. Any specific thing that I should supply in the request header..?


2. Any server side authentication to be provided?

my .netcode is like this.


                url: q,

                type: "GET",

                dataType: "xml",

                beforeSend: function (req) {

                    req.setRequestHeader("Authorization", "Basic dmVua2F0OjEwMDNNYXJjaCQ=");




Not what you were looking for? View more on this topic or Ask a question