![700](https://i-blog.csdnimg.cn/blog_migrate/ce8563070397d8e10edf70c54f242acf.webp?x-image-process=image/format,png)
首先在SAP云平台里创建一个destination,维护service的end point:
![700](https://i-blog.csdnimg.cn/blog_migrate/71af58a634472c6e45114d8d9ad1df53.webp?x-image-process=image/format,png)
然后打开SAP云平台的WebIDE,创建一个新的文件夹和新的HTML5 Application Descriptor:
![700](https://i-blog.csdnimg.cn/blog_migrate/5c43db7b50d65e6aae1213bb56c0ce13.webp?x-image-process=image/format,png)
将下列内容粘贴到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": "/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>
![700](https://i-blog.csdnimg.cn/blog_migrate/7cdd46697ecde9f666925cac562bb4d0.webp?x-image-process=image/format,png)
测试该应用,点击超链接:
![700](https://i-blog.csdnimg.cn/blog_migrate/b340b7155e90484bc23bd0a494b18096.webp?x-image-process=image/format,png)
会发现第一步创建的destination已经生效了。
![700](https://i-blog.csdnimg.cn/blog_migrate/97996ccb6b2a2a08a65ff17c9bdbd352.webp?x-image-process=image/format,png)
要获取更多Jerry的原创技术文章,请关注公众号"汪子熙"或者扫描下面二维码:
![321](https://i-blog.csdnimg.cn/blog_migrate/8f78ecbe9f820e292e3b16fcdde8272c.webp?x-image-process=image/format,png)
![531](https://i-blog.csdnimg.cn/blog_migrate/28f78a91dd8ac113576a15d113fccd06.webp?x-image-process=image/format,png)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24475491/viewspace-2154380/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24475491/viewspace-2154380/