08-28-2014 08:56 AM
require_once ('cmis/cmis_repository_wrapper.php');
require_once('cmis/cmis_service.php');
$repo_url = 'http://localhost/alfresco/service/api/cmis';
$repo_username = 'admin';
$repo_password = 'admin';
$client = new CMISService($repo_url, $repo_username, $repo_password);
if ($repo_debug)
{
print "Repository Information:\n</br>===========================================</br>\n";
print_r($client->workspace);
print "\n</br>===========================================</br></br>\n\n";
}
$objs = $client->query("select * from cmis:folder");
if ($repo_debug)
{
print "Returned Objects\n:\n</br>===========================================</br>\n";
print_r($objs);
print "\n</br>===========================================</br></br>\n\n";
}
Notice: Trying to get property of non-object in C:\xampp\htdocs\cmis\cmis_repository_wrapper.php on line 726
Notice: Trying to get property of non-object in C:\xampp\htdocs\cmis\cmis_repository_wrapper.php on line 726
Notice: Trying to get property of non-object in C:\xampp\htdocs\cmis\cmis_repository_wrapper.php on line 726
Notice: Trying to get property of non-object in C:\xampp\htdocs\cmis\cmis_repository_wrapper.php on line 726
Notice: Trying to get property of non-object in C:\xampp\htdocs\cmis\cmis_repository_wrapper.php on line 726
Notice: Trying to get property of non-object in C:\xampp\htdocs\cmis\cmis_repository_wrapper.php on line 726
Notice: Trying to get property of non-object in C:\xampp\htdocs\cmis\cmis_repository_wrapper.php on line 726
Repository Information:
===========================================
stdClass Object ( [links] => Array ( ) [uritemplates] => Array ( ) [collections] => Array ( [] => http://localhost:80/alfresco/service/api/query ) [capabilities] => Array ( [cmis:capabilityMultifiling] => true [cmis:capabilityUnfiling] => false [cmis:capabilityVersionSpecificFiling] => false [cmis:capabilityPWCUpdateable] => true [cmis:capabilityPWCSearchable] => true [cmis:capabilityAllVersionsSearchable] => false [cmis:capabilityQuery] => both [cmis:capabilityJoin] => nojoin [cmis:capabilityFullText] => fulltextandstructured ) [repositoryInfo] => Array ( ) [permissions] => Array ( ) [permissionsMapping] => Array ( ) )
===========================================
Notice: Undefined index: query in C:\xampp\htdocs\cmis\cmis_service.php on line 579
Fatal error: Uncaught exception 'CmisRuntimeException' in C:\xampp\htdocs\cmis\cmis_repository_wrapper.php:176 Stack trace: #0 C:\xampp\htdocs\cmis\cmis_repository_wrapper.php(233): CMISRepositoryWrapper->convertStatusCode(0, false) #1 C:\xampp\htdocs\cmis\cmis_service.php(579): CMISRepositoryWrapper->doPost(NULL, '<?xml version="…', 'application/cmi…') #2 C:\xampp\htdocs\cmis_test.php(38): CMISService->query('select * from c…') #3 {main} thrown in C:\xampp\htdocs\cmis\cmis_repository_wrapper.php on line 176
09-03-2014 05:31 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.