cancel
Showing results for 
Search instead for 
Did you mean: 

I want to update properties with CMIS using Atompub, but how can I do this?

disruptivenl
Champ in-the-making
Champ in-the-making

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/">
<cmisraSmiley Surprisedbject xmlns:ns3="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
<cmisSmiley Tongueroperties>
<!--<cmisSmiley TongueropertyId localName="cmis:repositoryId" propertyDefinitionId="cmis:repositoryId">
<cmis:value>e71b7d23-632a-42e0-becd-132815a3ebb4</cmis:value>
</cmisSmiley TongueropertyId>-->
<!--<cmisSmiley TongueropertyId localName="cmisSmiley SurprisedbjectId" propertyDefinitionId="cmisSmiley SurprisedbjectId">
<cmis:value>414e3d52-eca7-4f08-9921-4b37341b9df6;1.0</cmis:value>
</cmisSmiley TongueropertyId>-->
<cmisSmiley TongueropertyString localName="cmis:name" propertyDefinitionId="cmis:name">
<cmis:value>SampleDocument9</cmis:value>
</cmisSmiley TongueropertyString>
<cmisSmiley TongueropertyId localName="cmisSmiley SurprisedbjectTypeId" propertyDefinitionId="cmisSmiley SurprisedbjectTypeId">
<cmis:value>D:test:FLD</cmis:value>
</cmisSmiley TongueropertyId>
<cmisSmiley TongueropertyString localName="test:gegeven" propertyDefinitionId="test:gegeven">
<cmis:value>B-BLA-B</cmis:value>
</cmisSmiley TongueropertyString>
</cmisSmiley Tongueroperties>
</cmisraSmiley Surprisedbject>
</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.

3 REPLIES 3

afaust
Legendary Innovator
Legendary Innovator

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.

disruptivenl
Champ in-the-making
Champ in-the-making

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...

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....