Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand the Document Service of SAP cloud platform

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

What this article shares with you is how to understand the Document Service of SAP cloud platform. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

SAP cloud platform provides CRUD (add, delete, modify and search) operation of Document in the form of micro-services. The microservice is based on the standard CMIS protocol (Content Management Interoperability Service).

Compared with the standard CMIS, the Document Service of SAP cloud platform adds some features:

Learn how to consume the Document Service of the SAP cloud platform in a Java application through a Hello World application.

Download the example program from this link.

Click the hyperlink to download Java Web Tomcat 8 SDK.

The example program is located in the samples folder of the SDK.

After the application is deployed to the SAP cloud platform, visit the application and see the following prompt:

The prompt is output by the goGet method of the applied DocumentStoreServlet:

Once you click the Connect hyperlink:

Call the doGet method of another Servlet DocumentStoreConnectServlet to execute three logic:

The Ecm of Step 1 is Enterprise Content Management, which refers to the Document Service on the SAP cloud platform.

The instance handle of the Document Service is obtained through JNDI:

Configure in web.xml:

The first time you click Connect, the code in the catch branch below is executed to create a new repository with a hard-coded key. The second execution enters line 85 logic, so repository already exists at this point.

Click the output of Connect for the first time:

The second output:

You can see the successfully created repository in the Cockpit of SAP cloud platform:

If you need to delete the repository, you need to provide the key abcdef0123456789 that is hard-coded at the time of creation.

The above is how to understand the Document Service of SAP cloud platform. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report