Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Using xsodata service with SAP HANA XS Engine without authentication

I have to use xsodata service with HANA XS Engine and I have created .xsaccess file inside Global folder as below:

{
    "exposed": true,
    "authentication" : null
}

I have the following test service created with below content:

service namespace "test.services" {
    "TESTUSER1"."sampledb" as "sampledb";
}

However I get 403 error, when I hit the URL: /test/services/test.xsodata/testdb. Now for validation I created a html file in same folder as test.xsodata and it works file when I hit this link. I tried adding .xsaccess file in Services folder and also added the above code however error remains same.

To troubleshoot it further, I added services/.xsaccess with this content:

{
    "exposed": true,
    "authentication" : [{"method":"Basic"}]
}

This prompts me to enter user name/password and when I enter credentials correct data is displayed. I am not sure what is wrong and why it is not working?

Anyone can help?


1 Answer
Anil SAP Gupta

Note that to use xsaccess file it without credentials, you have to create xssqlcc file. xsaccess file is used to define who all are authorized to access the content exposed by a SAP HANA XS application package and what content should be displayed as per access.

Check out this tread for more details:

xsodata service without authentication


Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.