AnsweredAssumed Answered

createFolder

Question asked by adn741 on Jan 15, 2009
Latest reply on Jun 24, 2009 by lelejill
Hi,

I am new in CMIS and I try to implement some functions in php.

I try to create a Folder in another one.

I send the following http request and I always have a 400 error (bad request):

POST /alfresco/s/api/path/workspace/SpacesStore/Company%20Home/children HTTP/1.1
Host: share.alfresco.com
User-Agent: PEAR HTTP_Request class ( http://pear.php.net/ )
Connection: close
Authorization: Basic YWRuNzQxOlcxcjJkNm84
Content-Type: text/xml; charset=utf-8
Content-Length: 726
<?xml version="1.0" encoding="UTF-8"?>
<createFolder xmlns:cmis="http://www.cmis.org/2008/05" xmlns:p="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cmis.org/2008/05 CMIS.xsd ">
<cmis:repositoryId>192f0f98-98a0-4986-acce-4d8413c5054c</cmis:repositoryId>
<cmis:typeId>folder</cmis:typeId>
<cmis:object>
<cmis:properties>
<cmis:propertyId cmis:name="ObjectTypeId">
<cmis:value>folder</cmis:value>
</cmis:propertyId>
<cmis:propertyString cmis:name="Name">
<cmis:value>Le nom de mon dossier</cmis:value>
</cmis:propertyString>
</cmis:properties>
</cmis:object>
<cmis:folderId>e732596d-84a4-4773-851a-0a007cc27367</cmis:folderId>
</createFolder>

If somebody could help me, I really don't understand why

Thanks

Dan

Outcomes