We have a client whom we are trying to convert over to Laserfiche. There is one task they would like to perform as a demonstration that I think would be made simple through CMIS. That is:
-Import a document to Laserfiche
-Return the web URL to the document in XML
Is there a way to have the URL returned from a document in the repository? If not, constructing it ourselves wouldn't be hard. Can it be returned as XML or do we have to build it in XML ourselves?
Additionally, I tried creating a folder and a document through CMIS, and each time I get an UnsupportedMediaType exception. Here is a code example for creating a folder. When I run this I get the exception. I can retrieve information from a document in the repository such as name and ID, so I'm properly authenticated.
IFolder rootFolder = session.GetRootFolder(); IDictionary<string, object> properties = new Dictionary<string, object>(); properties[PropertyIds.ObjectTypeId] = "cmis:folder"; properties[PropertyIds.Name] = "a new folder"; IFolder newFolder = rootFolder.CreateFolder(properties);