alfresco - curl query to check out a document using the CMIS protocol -


i trying checkout document using rest-based cmis protocol, error server (alfresco).

am misusing curl? or missing in request?

curl --user admin:admin -f "atomentry=@atomentry.xml" http://localhost:8080/alfresco/service/cmis/checkedout 

with atomentry.xml being:

<?xml version="1.0" encoding="utf-8"?> <entry xmlns="http://www.w3.org/2005/atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"> <cmisra:object> <cmis:properties> <cmis:propertyid propertydefinitionid="cmis:objectid"> <cmis:value>workspace://spacesstore/3e13d089-39cf-48a4-b0b6-773b602bbcc0</cmis:value> </cmis:propertyid> </cmis:properties> </cmisra:object> </entry> 

i wrong both curl , xml... here worked:

curl -x post -uadmin:admin "http://localhost:8080/alfresco/s/cmis/checkedout" -h "content-type:application/atom+xml;type=entry;charset=utf-8" -d @atomentry.xml 

with atomentry.xml being:

<?xml version="1.0" encoding="utf-8"?> <entry xmlns="http://www.w3.org/2005/atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"> <cmisra:object> <cmis:properties> <cmis:propertyid propertydefinitionid="cmis:objectid"> <cmis:value>workspace://spacesstore/3e13d089-39cf-48a4-b0b6-773b602bbcc0</cmis:value> </cmis:propertyid> </cmis:properties> </cmisra:object> </entry> 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -