How do I use CMIS browser binding to get the document content by node reference.?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member II

How do I use CMIS browser binding to get the document content by node reference.?

I am using CMIS 1.1 with browser binding. How do I use browser binging to get the document content and its data?

I tried the below query but I don't get any error and I doubt it executes the below query.

http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser?cmisaction=query&state... * from cmis:document where object_id='e4d42c21-22ab-4c28-ada0-4237ba339b30'

I have a site by name test-stite and I have some documents within the documentLibrary.

How do I use CMIS browser binding to get the document content by node reference within my test-site.?

2 Replies
Highlighted
Active Member

Re: How do I use CMIS browser binding to get the document content by node reference.?

Highlighted
Established Member II

Re: How do I use CMIS browser binding to get the document content by node reference.?

For getting the content stream:

http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=workspac...

For getting the object:

http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=workspac...

For getting the property:

http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=workspac...properties

You may use alf_ticket appended in your request to avoid adding the basic authentication details for each time:

http://localhost:8080/alfresco/s/api/login?u=admin&pw=admin

You would get ticket in response

<?xml version="1.0" encoding="UTF-8"?>

<ticket>TICKET_c98c483f4ebd30f980d43b55e6a8e8c641a9c00b</ticket>

Now you can have your request as 

http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=workspac...&alf_ticket=TICKET_c98c483f4ebd30f980d43b55e6a8e8c641a9c00b

and so on for the object and properties.