Hello, I am trying to set up an SAPUI5 application running on an on-premise HANA and I am having a hard time connecting it to an OData service. The OData service is provided in the very same HANA XS server where the SAPUI5 application is running. I am sure the OData service is available because I can query it using my Internet browser, but still my application does not connect to it. I traced the webdispatcher and there is no HTTP request for the OData service, what makes me suspect that the definition of the datasource in my manifest.json is incorrect. manifest.json: ... "sap.app": { ... "dataSources": { "EH1": { "uri": "http://myhostname:8002/trend_analysis_tool_odata/TermCountODataService.xsodata/", "type": "OData", "settings": { "odataVersion": "2.0" } } } }, ... "sap.ui5": { ... "models": { "": { "dataSource": "EH1" } } } } This is the URL where I can for example access the OData's metadata for this particular service: http://myhostname:8002/trend_analysis_tool_odata/TermCountODataService.xsodata/$metadata My OData service is defined like this: service { "TREND_ANALYSIS_TOOL"."TERM_COUNTS" as "TermCount"; } My SAPUI5 application runs at this URL: http://myhostname:8002/trend_analysis_tool/WebContent/index.html I have tried to define the uri in the dataSources in different ways, but they all failed: "uri": "/trend_analysis_tool_odata/TermCountODataService.xsodata/" "uri": "../trend_analysis_tool_odata/TermCountODataService.xsodata/" "uri": "../../trend_analysis_tool_odata/TermCountODataService.xsodata/" "uri": "trend_analysis_tool_odata/TermCountODataService.xsodata/" The error I get in my application is "No data". In the SAPUI5 Diagnostics it says in the Bindings info "/TermCount (invalid)". My list in the XML view is defined like this: This is the metadata from the OData object: Does any of you can help me finding out why my application cannot find my OData service that is running on the same HANA server? Thank you! Marco Aurelio Freiberger Monteiro
↧