AnsweredAssumed Answered

Create folders with Abdera

Question asked by tremalnaik on Nov 25, 2011
Latest reply on Nov 29, 2011 by tremalnaik
Hi,

I'm trying create a new Space across a Web Script with an Abdera Client. I've tried the six POST in http://localhost:8080/alfresco/service/index/all



Abdera abdera = new Abdera();
AbderaClient client = new AbderaClient(abdera);

InputStream is = Utilidades.stringToInputStream(""); //Personal method

ClientResponse resp =
  client.post("http://localhost:8080/alfresco/service/cmis/s/SpaceStore/id_parent_folder/children +
                   "?alf_ticket=ticket", is2);

  // OR

  ClientResponse resp =
         client.post("http://localhost:8080/alfresco/service +
                "/cmis" +
                "/s/SpaceStore" +
                "/p/One/Two/Three" +
                "/children" +
                "?alf_ticket=ticket", is2);

All the time the response is:


400 Description: Request sent by the client was syntactically incorrect.    
Message:Posting of media resource not supported          
Community v3.4.0 (d 3370) schema 4.113
Diagnostics:Inspect Web Script (org/alfresco/cmis/children.post)

POST /alfresco/service/cmis/i/{id}/children?sourceFolderId={sourceFolderId}&versioningState={versioningState?}
POST /alfresco/service/cmis/s/{store}/i/{id}/children?sourceFolderId={sourceFolderId}&versioningState={versioningState?}
POST /alfresco/service/cmis/p{path}/children?sourceFolderId={sourceFolderId}&versioningState={versioningState?}
POST /alfresco/service/cmis/s/{store}/p{path}/children?sourceFolderId={sourceFolderId}&versioningState={versioningState?}
POST /alfresco/service/api/node/{store_type}/{store_id}/{id}/children?sourceFolderId={sourceFolderId}&versioningState={versioningState?}
POST /alfresco/service/api/path/{store_type}/{store_id}/{nodepath}/children?sourceFolderId={sourceFolderId}&versioningState={versioningState?}

Outcomes