前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >让SAP云平台上的Web应用使用destination服务

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

作者头像
Jerry Wang
发布2019-05-30 19:40:33
4120
发布2019-05-30 19:40:33
举报

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

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

将下列内容粘贴到neo-app.json去:

代码语言:javascript
复制
{
  "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, 输入以下内容:

代码语言:javascript
复制
<a href="distance/xml?origins=Walldorf&destinations=Paris">

Distance from Walldorf to Paris:</a>

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

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

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018年05月12日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档