Skip to Content
Sep 27, 2017 at 11:54 AM

import Build into Web IDE and connect OData service


Good day.

I have imported Build prototype into Web IDE. It goes work and show test data from json files. But I cannot connect OData service to this project to get data from our SAP server. I use this blog to connect service but it does not help.

I have changed:

dataSources in manifest:

"main":   {
  "uri": "/virtualgateway/sap/opu/odata/sap/Z_AME_DEMO_GW_BUILDER_SRV/",      "type": "OData",     
  "settings": {
    "localUri": "localService/metadata.xml"

destination in neo-app

"routes": [
    "path": "/virtualgateway",
    "target": {
      "type": "destination",
      "name": "virtualgateway"
     "description": "virtualgateway"

And change component.js

line 14: //server.init();
line 47: this.setModel(new sap.ui.model.json.JSONModel({
	 "uri": "\"/virtualgateway/sap/opu/odata/sap/Z_AME_DEMO_GW_BUILDER_SRV/\""
	 }), "dataSource");

Best what i get is an error

	"requestUri": "/virtualgateway/sap/opu/odata/sap/Z_AME_DEMO_GW_BUILDER_SRV/$metadata",
	"statusCode": 404,
	"statusText": "Not Found",
	"headers": [],
	"body": "<html><head><title>Error report</title></head><body><h1>HTTP Status 404 - Not Found</h1></body></html>"

P.S. I use SAP Cloud Connector to send OData throught firewall.