Skip to Content
avatar image
Former Member

CRUD operations for SAP document service repository via proxy bridge(java app)

Hello experts,

I have created an UI application where user can upload and download the documents to sap document service repository via proxy bridge(java app deployed on the cloud).

Same way I tried update/delete operations for uploaded documents but I'm facing method not allowed error.

I'm looking if anyone implemented CRUD operation for SAP document service repository if yes could please assist me to achieve update/delete methods on the same.

thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 03, 2018 at 10:11 PM


    I get method not allowed when I do not specify the repository id and folder id where I want to upload the document.

    Are you trying this with postman or by using the example provided in the documentation (web form hidden fields)?

    For instance, if you do a get on the /cmis/atom endpoint, you will get the root folder link:

            <app:collection href="https://cmisproxy<account>.<landscape><repo_id>/children?id=<root_folder_id>">
                <atom:title type="text">Root Collection</atom:title>

    Therefore, the URL to post to the root folder should be:


    Once you have it, copy the link as a POST request, and use the atom xml below to send the file:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    --------> Paste the base64 converted file here
                <cmis:propertyId propertyDefinitionId="cmis:objectTypeId">
                <cmis:propertyId propertyDefinitionId="cmis:name">
                    <cmis:value>PDF Document Upload</cmis:value>

    As you can see, it is not as easy as using the CMIS Java Library or the form in an HTML5 application, since most operations are taken care by the UI. You still need to know the root folder collection URI to be used in the destination. If you want it to manage uploads to different folders your need to create the UI to retrieve the folder list.

    Best regards,

    Add comment
    10|10000 characters needed characters exceeded