I have done little research, found Apache’s library. I written the below code but getting error which is been given in comments. Kindly help if someone encountered the same issue.
org.apache.chemistry.opencmis.client.api.Document visaDocument = (org.apache.chemistry.opencmis.client.api.Document) session.getObject(session.createObjectId(doc_id)); [b]( this statment is giving error 'org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: One or more of the input parameters to the service method is missing or invalid' ) [/b]
My intention is to delete the file using document ID ( considering already documents exist in sharepoint and having a unique document id for each file ).
Try to compile the program step wise, find out which step is giving this error, see the syntax of that particular function so that you will understand signature of the function and accordingly you can pass the parameters to make use of functionality. Share the API if you have which will helpful to others as well.
FYI - For integration with Sharepoint, you can use webMethods SharePoint Adapter or webMethods CMIS Adapter released as part of wM 9.12 October 2016 release.
You can perform basic create, read, update, and delete (CRUD) operations by using the Representational State Transfer (REST) interface provided by SharePoint. The REST interface exposes all the SharePoint entities and operations that are available in the other SharePoint client APIs. One advantage of using REST is that you don’t have to add references to any SharePoint libraries or client assemblies. Instead, you make HTTP requests to the appropriate endpoints to retrieve or update SharePoint entities, such as webs, lists, and list items.
To know more about Microsoft Share Point, you can visit: Apps4Rent
I hope this helps!
Ben Martin