2017-08-13 59 views
0

为什么会发生这种情况,我该如何解决它?SAPUI5:为什么我无法访问ES4的数据?

我有一个问题让来自hanatrial.ondemand.com数据,我不断收到验证警报: enter image description here

我的继承人目的地的conf: enter image description here

和我的继承人conf文件:

新app.json

{ 
"welcomeFile": "index.html", 
"routes": [{ 
    "path": "/resources", 
    "target": { 
     "type": "service", 
     "name": "sapui5", 
     "entryPath": "/resources" 
    }, 
    "description": "SAPUI5 Resources" 
}, { 
    "path": "/test-resources", 
    "target": { 
     "type": "service", 
     "name": "sapui5", 
     "entryPath": "/test-resources" 
    }, 
    "description": "SAPUI5 Test Resources" 
}, { 
    "path": "/destinations/ES4", 
    "target": { 
     "type": "destination", 
     "name": "ES4" 
    }, 
    "description": "ES4 Demo Service" 
} 
] 

}

menifest.json

{ 
"_version": "1.3.0", 

"sap.app": { 
    "_version": "1.3.0", 
    "id": "opensap.myapp", 
    "type": "application", 
    "title": "{{appTitle}}", 
    "description": "{{appDescription}}", 
    "applicationVersion": { 
     "version": "1.0.0" 
    }, 

    "dataSources": { 
     "ES4": { 
      "uri": "/destinations/ES4/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/", 
      "type": "OData", 
      "settings": { 
       "odataVersion": "2.0" 
      } 
     } 
    }, 
    "i18n": "i18n/i18n.properties" 
}, 
"sap.ui": { 
    "_version": "1.3.0", 
    "technology": "UI5", 
    "deviceTypes": { 
     "desktop": true, 
     "tablet": true, 
     "phone": true 
    }, 
    "supportedThemes": [ 
     "sap_bluecrystal" 
    ] 
}, 
"sap.ui5": { 
    "_version": "1.2.0", 
    "rootView": { 
     "viewName": "opensap.myapp.view.App", 
     "type": "XML", 
     "id": "app" 
    }, 
    "autoPrefixId": true, 
    "dependencies": { 
     "minUI5Version": "1.34", 
     "libs": { 
      "sap.ui.core": { 
       "minVersion": "1.34.0" 
      }, 
      "sap.m": { 
       "minVersion": "1.34.0" 
      }, 
      "sap.ui.layout": { 
       "minVersion": "1.34.0" 
      } 
     } 
    }, 
    "contentDensities": { 
     "compact": true, 
     "cozy": true 
    }, 
    "models": { 
     "": { 
      "dataSource": "ES4" 
     }, 
     "i18n": { 
      "type": "sap.ui.model.resource.ResourceModel", 
      "settings": { 
       "bundleName": "opensap.myapp.i18n.i18n" 
      } 
     }, 
     "address": { 
      "type": "sap.ui.model.json.JSONModel", 
      "uri": "model/Address.json" 
     }, 
     "helloPanel": { 
      "type": "sap.ui.model.json.JSONModel", 
      "uri": "model/HelloPanel.json" 
     } 
    } 
} 

}

这究竟是为什么,以及如何我可以解决呢?

这是我应该以检索数据的文件,但仍然没有成功: https://sapes4.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/ $元

那么我怎样才能解决这个问题?

回答

相关问题