首先在SAP雲平臺裏建立一個destination,維護service的end point:html
而後打開SAP雲平臺的WebIDE,建立一個新的文件夾和新的HTML5 Application Descriptor:json
將下列內容粘貼到neo-app.json去:app
{ "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": "/distance", "target": { "type": "destination", "name": "google_map" }, "description": "Google map" } ] }
新建一個index.html, 輸入如下內容:測試
<a href="distance/xml?origins=Walldorf&destinations=Paris"> Distance from Walldorf to Paris:</a>
測試該應用,點擊超連接:ui
會發現第一步建立的destination已經生效了。google
要獲取更多Jerry的原創技術文章,請關注公衆號"汪子熙"或者掃描下面二維碼:3d