当前位置:网站首页>SAP S/4HANA OData Mock Service 介绍
SAP S/4HANA OData Mock Service 介绍
2022-07-02 17:02:00 【华为云】
OData Mock Service
此存储库还包含一个简单的基于 Node.js 的服务器,它代表分支模拟服务器中的 OData 模拟服务器。 该服务器可以在不访问 SAP S/4HANA 系统的情况下测试 SAP S/4HANA Cloud SDK 的 SAP S/4HANA 集成功能。 该服务器托管一个 OData v2 模拟服务,该服务在一定程度上模仿 SAP S/4HANA Cloud 的业务合作伙伴 API。
如果没有可用的 SAP S/4HANA 系统,模拟服务器可用作 SAP S/4HANA Cloud SDK 的简单测试和实验的替代品。 它专门针对本书中的示例量身定制。 此页面解释了如何运行模拟服务器以及如何将其集成到示例应用程序的测试中。
注意:服务器没有任何安全措施。 运行服务器的风险由您自己承担,并且仅用于实验。 不要使用服务器来存储任何个人数据 - 只使用虚假数据。
How to run the server
克隆此存储库后,请检查分支模拟服务器。 或者,下载此存档并将其解压缩到您的本地计算机。 以下所有步骤都应在您检出或提取模拟服务器代码的文件夹中进行。
在启动模拟服务器之前,您需要手动将业务伙伴 OData 服务的元数据 EDMX 文档放入文件夹 business-partner 并准备文档:
转到 SAP API 业务中心中业务合作伙伴 API 的描述。
单击登录并使用您的凭据登录(您可能需要事先注册)。
单击详细信息选项卡,然后单击下载规范并选择 EDMX。
将下载的名为 API_BUSINESS_PARTNER.edmx 的文件存储在模拟服务器文件夹的子文件夹 business-partner 中。
在文本编辑器中打开文件 API_BUSINESS_PARTNER.edmx 并找到包含 EntityType Name=“A_BusinessPartnerType” 的行。 在此 EntityType 中,在包含 </Key> 的行之后添加以下两行:
<Property Name="YY1_AddrLastCheckedOn_bus" Type="Edm.DateTime" Precision="0" sap:display-format="Date" sap:label="Addresses Last Checked On"/><Property Name="YY1_AddrLastCheckedBy_bus" Type="Edm.String" MaxLength="50" sap:label="Addresses Last Checked By"/>
准备好模拟服务器后,您可以在本地计算机(http://localhost:3000)或 SAP Cloud Platform, Cloud Foundry 上运行模拟服务器,如以下两部分中的任一个所述。
Launch the mock server
npm install
npm start
等到您看到输出 Mock 服务器已启动。 在 http://localhost:3000/sap/opu/odata/sap/API_BUSINESS_PARTNER 访问模拟 OData 服务(不需要凭据)。 这应该有以下输出。
{"d":{"EntitySets":["A_BusinessPartner","A_BusinessPartnerAddress"]}}
要查看业务伙伴的示例响应,请访问 http://localhost:3000/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner。
边栏推荐
- NM02-独立于总线协议的NM模块调用序列图及代码解释
- matplotlib的安装教程以及简单调用
- MySQL about only_ full_ group_ By limit
- Typescript
- Babbitt | metauniverse daily must read: can you buy a virtual anchor for 1000 yuan? Is this the live gospel of small businesses or "cutting leeks"
- Aptos教程-参与官方激励测试网(AIT2 激励测试网)
- [Oracle final review] addition, deletion and modification of tablespaces, tables, constraints, indexes and views
- Detailed explanation of map set
- Redis(7)----数据库与过期键
- 利用DOSBox运行汇编超详细步骤「建议收藏」
猜你喜欢
Night God simulator +fiddler packet capture test app
MySQL installation and configuration
微信核酸检测预约小程序系统毕业设计毕设(5)任务书
Uncover the whole link communication process of dewu customer service im
Leetcode 面试题 17.04. 消失的数字
pycharm 修改 pep8 E501 line too long > 0 characters
再放宽!这些应届生,可直接落户上海
RDK仿真实验
再放寬!這些應届生,可直接落戶上海
Wechat nucleic acid detection appointment applet system graduation design completion (5) task statement
随机推荐
MySQL about only_ full_ group_ By limit
[Northwestern Polytechnic University] information sharing of the first and second postgraduate examinations
微信核酸检测预约小程序系统毕业设计毕设(1)开发概要
Leetcode 面试题 17.01. 不用加号的加法
iframe嵌套详解
Simulateur nightGod + application de test de capture de paquets Fiddler
Wechat applet video sharing platform system graduation design completion (4) opening report
Paddlepaddle 28 build an automatic coder based on convolution
Win10 uninstall CUDA
Aptos tutorial - participate in the official incentive testing network (ait2 incentive testing network)
Renren potential field method
Esp32-c3 introductory tutorial question ⑪ - ESP tls: create_ ssl_ handle failed, tls_ io_ instance->options. trusted_ certs null
ESP32-C3入门教程 问题篇⑩——error: implicit declaration of function ‘esp_blufi_close‘;
MySQL 关于 only_full_group_by 限制
Is Guojin securities a state-owned enterprise? Is it safe to open an account in Guojin securities?
Détends - toi encore! Ces nouveaux étudiants peuvent s'installer directement à Shanghai
Architecture design - ID generator "suggestions collection"
微信核酸检测预约小程序系统毕业设计毕设(2)小程序功能
拿起相机,便是最好的艺术疗愈
揭秘得物客服IM全链路通信过程