【问题标题】:SAPUI5: Why i'm Not able to access data of ES4?SAPUI5:为什么我无法访问 ES4 的数据?
【发布时间】:2017-08-13 16:49:18
【问题描述】:

为什么会发生这种情况,我该如何解决?

我从 hanatrial.ondemand.com 获取数据时遇到问题,我不断收到身份验证警报:

这是我的目的地配置:

这是我的 conf 文件:

neo-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/$元数据

那我该如何解决呢?

【问题讨论】:

    标签: sapui5


    【解决方案1】:

    看起来目的地中的用户或密码是错误的。在目标配置中使用与访问相同的凭据: https://sapes4.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/$元数据

    【讨论】:

      【解决方案2】:

      该对话框用于提供 ES4 的系统凭据。但是,您可以通过将其添加到 SAP Cloud 平台的目标来消除这种情况。

      尽管如此,系统 ES4 不再活跃,您可以通过简单地创建用户来将 ES5 用于示例 Odata。 https://sapes5.sapdevcenter.com/sap/opu/odata/iwbep/GWSAMPLE_BASIC/

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-04-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-01-11
        • 2014-04-06
        • 1970-01-01
        相关资源
        最近更新 更多