当前位置:网站首页>Introduction to sap s/4hana OData mock service
Introduction to sap s/4hana OData mock service
2022-07-02 18:42:00 【Hua Weiyun】
OData Mock Service
This repository also contains a simple, based on Node.js Server for , It represents the... In the branch simulation server OData Simulate server . The server can be accessed without SAP S/4HANA Test the system in the case of SAP S/4HANA Cloud SDK Of SAP S/4HANA Integration features . The server hosts a OData v2 Simulation services , The service imitates to some extent SAP S/4HANA Cloud Business partners API.
If nothing is available SAP S/4HANA System , The simulation server can be used as SAP S/4HANA Cloud SDK An alternative to simple tests and experiments . It is tailored to the examples in this book . This page explains how to run the simulation server and how to integrate it into the test of the sample application .
Be careful : The server has no security measures . Running the server is at your own risk , And only for experiments . Do not use the server to store any personal data - Use only false data .
How to run the server
After cloning this repository , Please check the branch Emulation Server . perhaps , Download this The archive And extract it to your local computer . All of the following steps should be performed in the folder where you check out or extract the simulation server code .
Before starting the impersonation server , You need to manually transfer the business partner OData Metadata of the service EDMX Put the document in the folder business-partner And prepare documents :
go to SAP API Business partners in the business center API Description of .
Click sign in and sign in with your credentials ( You may need to register in advance ).
Click the details tab , Then click download specification and select EDMX.
The download will be named API_BUSINESS_PARTNER.edmx The file is stored in a subfolder of the impersonation server folder business-partner in .
Open the file in a text editor API_BUSINESS_PARTNER.edmx And find the containing EntityType Name=“A_BusinessPartnerType” The line of . Here it is EntityType in , Include in </Key> Add the following two lines after the line of :
<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"/>
When the simulation server is ready , You can on your local computer (http://localhost:3000) or SAP Cloud Platform, Cloud Foundry Run the simulation server on , As described in either of the following two parts .
Launch the mock server
npm install
npm start
Wait until you see the output Mock The server has started . stay http://localhost:3000/sap/opu/odata/sap/API_BUSINESS_PARTNER Access simulation OData service ( No credentials are required ). This should have the following output .
{"d":{"EntitySets":["A_BusinessPartner","A_BusinessPartnerAddress"]}}
To view a sample response from a business partner , Please visit http://localhost:3000/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner.
边栏推荐
- ESP32-C3入门教程 问题篇⑪——esp-tls: create_ssl_handle failed, tls_io_instance->options.trusted_certs null
- Unity learning shader notes [81] simple color adjustment post-processing (brightness, saturation, contrast)
- PR曲线和ROC曲线概念及其区别
- Stretchdibits function
- Web实时通信技术之Websocket
- Vi/vim delete: one line, one character, word, the first character of each line command
- Steamos 3.3 beta release, steam deck Chinese keyboard finally came
- 719. 找出第 K 小的数对距离
- Tower safety monitoring system unattended inclination vibration monitoring system
- A good programmer is worth five ordinary programmers!
猜你喜欢
A good programmer is worth five ordinary programmers!
27:第三章:开发通行证服务:10:【注册/登录】接口:注册/登录OK后,把用户会话信息(uid,utoken)保存到redis和cookie中;(一个主要的点:设置cookie)
ESP32-C3入门教程 问题篇⑩——error: implicit declaration of function ‘esp_blufi_close‘;
Unity learning shader notes [82] black and white processing of enhanced single channel color rendering
Leetcode 面试题 16.17. 连续数列
300+ documents! This article explains the latest progress of multimodal learning based on transformer
如何清理废弃pv和其对应的文件夹
Ue4 dessine un cercle avec une ligne de contour
[Northwestern Polytechnic University] information sharing of the first and second postgraduate examinations
Leetcode 面试题 16.15. 珠玑妙算
随机推荐
UE4 用spline画正圆
SteamOS 3.3 Beta 发布,Steam Deck 中文键盘终于来了
2020 Internet industry terminology
QQmlApplicationEngine
再放寬!這些應届生,可直接落戶上海
iframe嵌套详解
MySQL 关于 only_full_group_by 限制
实施阴影介绍
Responses of different people in technology companies to bugs | daily anecdotes
怎么用ps提取图片颜色分析色彩搭配
Web version 3D visualization tool, 97 things programmers should know, AI frontier paper | information daily # 2022.07.01
cJSON 使用详解
Interview, about thread pool
Qt官方示例:Qt Quick Controls - Gallery
什么是云原生?这回终于能搞明白了!
Eliminate the yellow alarm light on IBM p750 small computer [easy to understand]
RTE11- 中断解耦功能
Pychar modify pep8 e501 line too long > 0 characters
Is Guojin securities a state-owned enterprise? Is it safe to open an account in Guojin securities?
元宇宙链游系统开发(逻辑开发)丨链游系统开发(详细分析)