Skip to Content

Unable to Consume northwind ODATA service in WEBIDE

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."

  1. statusCode:404
  2. statusText:"Not Found"
  3. __proto__:Object

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"
			}]
		}
	}



destination.png (13.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 09 at 09:09 AM

    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" }
    }
    }
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 08 at 06:03 PM
    -1

    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

    Add comment
    10|10000 characters needed characters exceeded