on 06-12-2017 8:30 AM
Hi All
I have this UI5 App which is deployed on Cloud Platform, which will access oData service from a backend Gateway System. For this, a destination has been created. For accessing the Service, I have defined the models and path as follows
manifest.json
-------
"dataSources": {
"RGT_INSPRES_SRV": {
"uri": "destinations/gateway/sap/opu/odata/<odata_service>",
"type": "OData",
"settings": {
"odataVersion": "2.0",
"localUri": "localService/metadata.xml"
}
}
}
The Path entry in the neo-app.json
{
"path": "destinations",
"target": {
"type": "destination",
"name": "gateway",
"entryPath": "/sap/opu/odata"
},
"description": "<<someDescription>>"
}
Accessing the App after a fresh deployment gives 403 error on the metadata
Any inputs what could be wrong here?
Thanks
Sandip
Hello Sandip,
I am afraid your your path entry in neo-app.json does not look right.
If you were new to SAPUI5, I would suggest that you build an SAPUI5 application from one of the templates and examine the neo-app.json it creates. This will give you an isight how to confugure your own.
Very best regards
Farnk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Frank, Abhishek
The path mentioned in the neo-app wasn't right. Now it works fine.
{"path": "/sap/opu/odata","target": {"type": "destination","name": "gateway","entryPath": "/sap/opu/odata"},"description": "<<someDescription>>"}
Thanks
Sandip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandip,
Please try updating your manifest.json as below :
"dataSources": {
"GWSAMPLE_BASIC": {
"uri": "/es4/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/",
"type": "OData",
"settings": {
"odataVersion": "2.0",
"localUri": "localService/metadata.xml",
"annotations": []
}
}
}
In Uri parameter put '/' at end.
Thanks-
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.