on 01-08-2018 11:31 AM
Hi Experts,
I am new to WEBIDE, I am trying to consume northwind odata services, but so far I have been unsuccessful. Please see my code & help.
connection test on destination also was successful. but still I am getting error: /V3/Northwind/Northwind.svc/$metadata", statusCode: 404, statusText: "Not Found", headers: Array(0), body: "The resource you are looking for has been removed,… its name changed, or is temporarily unavailable."} responseText:"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
neo-app.json:
{
"path": "/destinations/northwind",
"target": {
"type": "destination",
"name": "northwind"
},
"description": "Northwind OData Service"
}
manifest.json:
"sap.app": {
"id": "Mod3Act3",
"type": "application",
"i18n": "i18n/i18n.properties",
"title": "{{appTitle}}",
"description": "{{appDescription}}",
"applicationVersion": {
"version": "1.0.0"
},
"dataSources": {
"northwind": {
"uri": "/V3/Northwind/Northwind.svc/",
"type": "OData",
"settings": {
"odataVersion": "2.0"
}
}
}
},
"sap.ui5": {
"rootView": {
"viewName": "Mod3Act3.view.Main",
"type": "XML"
},
"dependencies": {
"minUI5Version": "1.30.0",
"libs": {
"sap.ui.core": {},
"sap.m": {},
"sap.ui.layout": {},
"sap.ushell": {},
"sap.collaboration": {},
"sap.ui.comp": {},
"sap.uxap": {}
}
},
"contentDensities": {
"compact": true,
"cozy": true
},
"models": {
"": {
"dataSource": "northwind"
}
},
"resources": {
"css": [{
"uri": "css/style.css"
}]
}
}
Hi Armoghan Abbas,
It seems the NEO-APP.json file contains the path /destinations/northwind. Kindly use the same path in the Manifest file also as shown below.
"dataSources": {
"northwind": {
"uri": "/destinations/northwind/V3/Northwind/Northwind.svc/",
"type": "OData",
"settings": {"odataVersion": "2.0" }
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Couple of quick checks.
1. Configure additional properties as per step 4 here - https://www.sap.com/india/developer/tutorials/hcp-create-destination.html
2. In manifest.json change name to northwind and not northiwind
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Request URL: https://webidetesting6428088-p1942271708trial.dispatcher.hanatrial.ondemand.com/V3/Northwind/Northwi...
Request Method: GET
Status Code: 404 Not Found
Remote Address: 155.56.219.29:443
Referrer Policy: no-referrer-when-downgrade
User | Count |
---|---|
93 | |
10 | |
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.