Document Service on SAP Cloud Platform

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

Compared with the standard CMIS, the Document Service of the SAP cloud platform adds support for some functions:

Learn how to consume Document Service of SAP Cloud Platform in Java program through a Hello World application.

Download the sample program from this link .

Click this hyperlink to download the Java Web Tomcat 8 SDK.

The sample programs are located in the samples folder of the SDK.

After deploying the application to the SAP cloud platform, access the application and see the following prompt information:

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

Once the Connect hyperlink is clicked:

Call the doGet method of another servlet DocumentStoreConnectServlet to perform three logics:

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

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

Configure in web.xml:

When you click Connect for the first time, the code in the catch branch in the figure below is executed, creating a new repository with the hardcoded key. The second execution enters the logic of line 85, so the repository already exists at this time.

The output of the first click of Connect:

The second output:

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

If you need to delete the repository, you need to provide the hardcoded key abcdef0123456789 when it was created.

To get more original technical articles from Jerry, please follow the public account "Wang Zixi" or scan the QR code below:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325348612&siteId=291194637
Recommended