How can I connect to my hana xs service and consume it as oData in my ui5 project?

2.1k views Asked by At

my aim is to create an oDataModel and consume my services. I can see my all entities under this url : https://s12hanaxs.hanatrial.ondemand.com/account_name/schema_name/service_name.xsodata/ with my trial account. I followed these steps to create oData service but I got Internal Server Error at 13th steps when I click the run button to load service metadata. The only difference that I made is to use Basic Authentication when I create the destination. And here my destination configuration :

destination config

Edit 1: I wanted to show my.xsaccess file for my services :

{
    "exposed": true,
    "authentication": [{
        "method": "Basic"
    }],
    "authorization" : [ "account_name.schema_name::Basic" ],
    "mime_mapping": [{
        "extension": "jpg",
        "mimetype": "image/jpeg"
    }],
    "force_ssl": false,
    "enable_etags": true,
    "prevent_xsrf": true,
    "anonymous_connection": null,
    "cors": [{
        "enabled": false
    }],
    "cache_control": "no-cache, no-store",
    "default_file": "index.html"
}

I also can't send a http request via Postman. Any help would be appreciated.

1

There are 1 answers

1
Denis On

Local sap Web Ide should work for you.