06-01-2019 07:40 AM
Hi,
I am using CMIS (1.1) and I want to update properties. How can I do this? The below version does not work....
http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom/children?id=a0a64f47-7abd-4397-bd29-f94194b3a224
<?xml version="1.0" encoding="UTF-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/">
<cmisrabject xmlns:ns3="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
<cmisroperties>
<!--<cmisropertyId localName="cmis:repositoryId" propertyDefinitionId="cmis:repositoryId">
<cmis:value>e71b7d23-632a-42e0-becd-132815a3ebb4</cmis:value>
</cmisropertyId>-->
<!--<cmisropertyId localName="cmisbjectId" propertyDefinitionId="cmisbjectId">
<cmis:value>414e3d52-eca7-4f08-9921-4b37341b9df6;1.0</cmis:value>
</cmisropertyId>-->
<cmisropertyString localName="cmis:name" propertyDefinitionId="cmis:name">
<cmis:value>SampleDocument9</cmis:value>
</cmisropertyString>
<cmisropertyId localName="cmisbjectTypeId" propertyDefinitionId="cmisbjectTypeId">
<cmis:value>D:test:FLD</cmis:value>
</cmisropertyId>
<cmisropertyString localName="test:gegeven" propertyDefinitionId="test:gegeven">
<cmis:value>B-BLA-B</cmis:value>
</cmisropertyString>
</cmisroperties>
</cmisrabject>
</atom:entry>
The URL with children does not seem to handle the update POST like it should?
There are 6 urls for collections:
And I thought I will use the update, but then I get some missing Bulk Data messages....
Who has some thought?
With SOAP I can use all the operations... but there Bulk Update Properties is not there and it seems to be CMIS 1.0?
Thanks in advance.
06-01-2019 08:57 AM
Are you trying to work with AtomPub CMIS "by hand"? Why don't you "just" use a client library for dealing with the CMIS AtomPub (and other) binding, which includes dealing with the proper URLs to call for the various operations. OpenCMIS typically has the widest collection of sub-projects of client libraries for various programming environment, so that would be my first recommendation to check.
I don't expect (m)any people to deal with AtomPub CMIS on a low-level basis to provide some insight here. When people work with CMIS on a low-level, they typically use the Browser / ReST binding instead of AtomPub.
06-01-2019 09:03 AM
Hi Axel,
The BizTalk services do not want any "API gateway" or client libraries. And I have the most working with SOAP. Also managed to get a file in through an attachment and MTOM.
But I want to do the samen with Postman and Atom(pub)....?? This must work right?
Also it would be great if I could update multiple (bulUpdate) a metadata field (property [custom with readwrite policy] based on a or document Type or other property from multiple objects at once.... like an UPDATE query...
06-01-2019 12:05 PM
Oke I have managed to solve the update problem with Atom....
Now i have to create a document, but when I use SOAP I can reference with cid: to a file. In Atom and with Postman I have to paste the Base64 string (which can be very large!!..... how too solve this?
The bulkUpdate question stays the same....
Explore our Alfresco products with the links below. Use labels to filter content by product module.