SAPUI5: Invalid metadata document & DataMetadata 初始加载元数据失败

问题描述 投票:0回答:0

早上好孩子们。

我的 SAPUI5 应用程序告诉我以下内容:

enter image description here

但是数据源配置正确,如下所示

manifest.json
.

一切配置完美,我已经消费了“Northwind”的OData服务 (https://services.odata.org/V2/Northwind/Northwind.svc/) 以同样的方式工作,但我尝试使用的服务不起作用。

服务和邮递员告诉我“200 ok”。

enter image description here

enter image description here

邮递员说:

无法获取本地颁发者证书

我正在尝试使用我所在公司的 OData 服务。

Manifest.json
的内容:

{
    "_version": "1.8.0",
    "sap.app": {
        "id": "com.cooperacion.z_fspm_car_valuation",
        "type": "application",
        "i18n": "i18n/i18n.properties",
        "applicationVersion": {
            "version": "1.0.0"
        },
        "title": "{{appTitle}}",
        "description": "{{appDescription}}",
        "sourceTemplate": {
            "id": "servicecatalog.connectivityComponentForManifest",
            "version": "0.0.0"
        },
        "dataSources": {
            "ZGW_CAR_VALUATION_SRV": {
                "uri": "https://aws-wdq.mycompany.com.ar:51025/sap/opu/odata/sap/ZGW_CAR_VALUATION_SRV/",
                "type": "OData",
                "settings":{
                    "odataVersion": "2.0"
                }
            }
        }
    },
    "sap.ui": {
        "technology": "UI5",
        "icons": {
            "icon": "",
            "favIcon": "",
            "phone": "",
            "phone@2": "",
            "tablet": "",
            "tablet@2": ""
        },
        "deviceTypes": {
            "desktop": true,
            "tablet": true,
            "phone": true
        },
        "supportedThemes": [
            "sap_hcb",
            "sap_belize"
        ]
    },
    "sap.ui5": {
        "rootView": {
            "viewName": "com.cooperacion.z_fspm_car_valuation.view.AppView",
            "type": "XML"
        },
        "dependencies": {
            "minUI5Version": "1.30.0",
            "libs": {
                "sap.ui.layout": {},
                "sap.ui.core": {},
                "sap.m": {}
            }
        },
        "contentDensities": {
            "compact": true,
            "cozy": true
        },
        "models": {
            "i18n": {
                "type": "sap.ui.model.resource.ResourceModel",
                "settings": {
                    "bundleName": "com.cooperacion.z_fspm_car_valuation.i18n.i18n"
                }
            },
            "": {
                "uri": "https://aws-wdq.mycompany.com.ar:51025/sap/opu/odata/sap/ZGW_CAR_VALUATION_SRV/",
                "type": "sap.ui.model.odata.v2.ODataModel",
                "settings": {
                    "defaultOperationMode": "Server",
                    "defaultBindingMode": "OneWay",
                    "defaultCountMode": "Request",
                    "useBatch": false
                },
                "dataSource": "ZGW_CAR_VALUATION_SRV",
                "preload": true
            }
        },
        "resources": {
            "css": [
                {
                    "uri": "css/style.css"
                }
            ]
        },
        "routing": {
            "config": {
                "routerClass": "sap.m.routing.Router",
                "viewType": "XML",
                "async": true,
                "viewPath": "com.cooperacion.z_fspm_car_valuation.view",
                "controlAggregation": "pages",
                "controlId": "idAppControl",
                "clearControlAggregation": false
            },
            "routes": [
                {
                    "name": "main",
                    "pattern": "",
                    "target": [
                        "AppView"
                    ]
                },
                {
                    "name": "detail",
                    "pattern": "detail/{YEAR}/{CODVAL}/",
                    "target": [
                        "VehicleDetail"
                    ]
                }
            ],
            "targets": {
                "AppView": {
                    "viewType": "XML",
                    "transition": "slide",
                    "clearControlAggregation": false,
                    "viewName": "AppView"
                },
                "VehicleDetail": {
                    "viewType": "XML",
                    "transition": "slide",
                    "clearControlAggregation": false,
                    "viewName": "VehicleDetail"
                }
            }
        }
    },
    "sap.platform.abap": {
        "uri": "/sap/bc/ui5_ui5/sap/zfspm_car_val",
        "_version": "1.1.0"
    }
}
sapui5 ui5-tooling ui5-webcomponents
© www.soinside.com 2019 - 2024. All rights reserved.