AnsweredAssumed Answered

Unable to execute CMIS query

Question asked by pbrea on May 10, 2013
I'm currently using the PHP CMIS Client trying to execute a simple query to ensure I can execute queries on the trial Alfresco repo:

SELECT * FROM cmis:document

This is the body of the request (using POST):

<cmis:query xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"
xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app"
xmlns:cmisra="http://docs.oasisopen.org/ns/cmis/restatom/200908/">
<cmis:statement>SELECT * FROM cmis:document</cmis:statement>
<cmis:searchAllVersions></cmis:searchAllVersions>
<cmis:includeAllowableActions></cmis:includeAllowableActions>
<cmis:includeRelationships></cmis:includeRelationships>
<cmis:renditionFilter></cmis:renditionFilter>
<cmis:maxItems></cmis:maxItems>
<cmis:skipCount></cmis:skipCount>
<cmis:token></cmis:token>
</cmis:query>

The problem is when I send this request this is the response I get:

{
  "error":"invalid_request",
  "error_description":"Missing access token"
}

How do I pass the access token so I can execute any query?

I'm using the PHP client library from Apache here: https://svn.apache.org/repos/asf/chemistry/phpclient/trunk/lib/cmis_repository_wrapper.php

Any ideas how to solve this will be greatly appreciated. Thank you.

Outcomes