Guest User

CMIS_Test

a guest
Feb 7th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Curl command
  2.  
  3. curl -X POST -uadmin:admin "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom/p/children" -H "Content-Type:application/atom+xml" -d @/home/ev-developer/Desktop/CMIS\ Test/Scripts/createSomecoFolder.atom.xml
  4.  
  5.  
  6.  
  7. Folder creation script
  8.  
  9. <?xml version="1.0" encoding="utf-8"?>
  10. <entry xmlns="http://www.w3.org/2005/Atom"
  11. xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/"
  12. xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/">
  13. <title>Someco</title>
  14. <cmisra:object>
  15. <cmis:properties>
  16. <cmis:propertyId propertyDefinitionId="cmis:objectTypeId">
  17. <cmis:value>cmis:folder</cmis:value>
  18. </cmis:propertyId>
  19. </cmis:properties>
  20. </cmisra:object>
  21. </entry>
  22.  
  23.  
  24.  
  25.  
  26.  
  27. Exception
  28.  
  29. <body>
  30.  
  31. <h1>HTTP Status 405 - Unknown operation</h1>
  32.  
  33. <HR size="1" noshade="noshade">
  34.  
  35. <p><b>type</b> Status report</p><p><b>message</b> <u>Unknown operation</u></p><p><b>description</b> <u>The specified HTTP method is not allowed for the requested resource.</u></p>
  36.  
  37. <HR size="1" noshade="noshade">
  38.  
  39. <h3>Apache Tomcat/7.0.47</h3>
  40.  
  41.  
  42. </body>
Add Comment
Please, Sign In to add comment