getObjectByPath($path); $props = $f->properties; foreach($props as $pk => $pv) { echo sprintf("%s = %s\r\n", $pk, $pv); } } catch(CmisObjectNotFoundException $ex) { echo "$path does not exist\r\n"; } } $client = new CMISService('http://localhost:8080/chemistry/atom', 'test', 'test'); // read dump($client, "/RW/demo.txt"); // create $s = "A\r\nBB\r\nCCC\r\n"; $dir = $client->getObjectByPath("/RW"); try { $client->createDocument($dir->properties['cmis:objectId'], 'demo.txt', array(), $s, 'text/plain'); } catch(CmisConstraintException $ex) { echo "demo.txt did already exist\r\n"; } // read dump($client, "/RW/demo.txt"); // delete $client->deleteObject($client->getObjectByPath("/RW/demo.txt")->properties['cmis:objectId']); // read dump($client, "/RW/demo.txt"); ?>