ITPub博客

首页 > 云计算 > 开源云工具 > 让SAP云平台上的Web应用使用destination服务

让SAP云平台上的Web应用使用destination服务

原创 开源云工具 作者:i042416 时间:2018-05-12 16:10:16 0 删除 编辑

首先在SAP云平台里创建一个destination,维护service的end point:

然后打开SAP云平台的WebIDE,创建一个新的文件夹和新的HTML5 Application Descriptor:

将下列内容粘贴到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> 

测试该应用,点击超链接:

会发现第一步创建的destination已经生效了。

要获取更多Jerry的原创技术文章,请关注公众号"汪子熙"或者扫描下面二维码:

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24475491/viewspace-2154380/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
测试

注册时间:2018-01-20

  • 博文量
    3822
  • 访问量
    1982160