<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: New developerWorks article on cmislib</title>
	<atom:link href="http://ecmarchitect.com/archives/2010/03/23/1145/feed" rel="self" type="application/rss+xml" />
	<link>http://ecmarchitect.com/archives/2010/03/23/1145</link>
	<description>Jeff Potts on ECM, portals, search, collaboration, and a bunch of personal stuff</description>
	<lastBuildDate>Mon, 06 Feb 2012 17:48:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Automating useful tasks within a CMIS repository &#124; Ditanauts</title>
		<link>http://ecmarchitect.com/archives/2010/03/23/1145/comment-page-1#comment-92485</link>
		<dc:creator>Automating useful tasks within a CMIS repository &#124; Ditanauts</dc:creator>
		<pubDate>Tue, 03 Jan 2012 00:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=1145#comment-92485</guid>
		<description>[...] further contributions from the community (or maybe even repo testing, hint hint).  Thanks to Jeff Potts for [...]</description>
		<content:encoded><![CDATA[<p>[...] further contributions from the community (or maybe even repo testing, hint hint).  Thanks to Jeff Potts for [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jpotts</title>
		<link>http://ecmarchitect.com/archives/2010/03/23/1145/comment-page-1#comment-49074</link>
		<dc:creator>jpotts</dc:creator>
		<pubDate>Thu, 25 Mar 2010 20:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=1145#comment-49074</guid>
		<description>Nate,

If you get a ticket back, you are authenticated. Once you get the ticket, you pass it in the alf_ticket argument on every request. When you pass it as an argument, it looks like this:

http://localhost:8080/alfresco/s/somewebscript?alf_ticket=TICKET_44740de7943f7bab5be61f787c62660ff3008299

An alternative is to use basic authentication. If you want to use basic authentication, exactly how you do that depends on the tool/language you&#039;re using. For example, in Python, the code looks something like this:
        # create a password manager
        passwordManager = HTTPPasswordMgrWithDefaultRealm()
        passwordManager.add_password(None, url, username, password)

        opener = build_opener(SmartRedirectHandler(),
                                      DefaultErrorHandler(),
                                      HTTPBasicAuthHandler(passwordManager))

Regarding your second question, I don&#039;t know what that &quot;a&quot; argument is, but let&#039;s assume you&#039;ve got a node reference to an object. You could construct a URL that looks like this:

/alfresco/s/api/node/content/workspace/spacesstore/a410c988-6b21-4875-83db-d03ce03661d7

And that would retrieve the object. If the object is plain text, you&#039;ll get the plain text back. If it is a binary, you&#039;ll get the binary object. In the case of cmislib, you can look at getContentStream to see an example of how it retrieves objects via CMIS and writes them out to the file system.

Jeff</description>
		<content:encoded><![CDATA[<p>Nate,</p>
<p>If you get a ticket back, you are authenticated. Once you get the ticket, you pass it in the alf_ticket argument on every request. When you pass it as an argument, it looks like this:</p>
<p><a href="http://localhost:8080/alfresco/s/somewebscript?alf_ticket=TICKET_44740de7943f7bab5be61f787c62660ff3008299" rel="nofollow">http://localhost:8080/alfresco/s/somewebscript?alf_ticket=TICKET_44740de7943f7bab5be61f787c62660ff3008299</a></p>
<p>An alternative is to use basic authentication. If you want to use basic authentication, exactly how you do that depends on the tool/language you&#8217;re using. For example, in Python, the code looks something like this:<br />
        # create a password manager<br />
        passwordManager = HTTPPasswordMgrWithDefaultRealm()<br />
        passwordManager.add_password(None, url, username, password)</p>
<p>        opener = build_opener(SmartRedirectHandler(),<br />
                                      DefaultErrorHandler(),<br />
                                      HTTPBasicAuthHandler(passwordManager))</p>
<p>Regarding your second question, I don&#8217;t know what that &#8220;a&#8221; argument is, but let&#8217;s assume you&#8217;ve got a node reference to an object. You could construct a URL that looks like this:</p>
<p>/alfresco/s/api/node/content/workspace/spacesstore/a410c988-6b21-4875-83db-d03ce03661d7</p>
<p>And that would retrieve the object. If the object is plain text, you&#8217;ll get the plain text back. If it is a binary, you&#8217;ll get the binary object. In the case of cmislib, you can look at getContentStream to see an example of how it retrieves objects via CMIS and writes them out to the file system.</p>
<p>Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://ecmarchitect.com/archives/2010/03/23/1145/comment-page-1#comment-49036</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Wed, 24 Mar 2010 00:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/?p=1145#comment-49036</guid>
		<description>Jeff, I know that this is not the forum for this but with Alfresco, there isnt enough examples no matter how many hours spent. I have two question 1) How do you use REST to authenticate? I can use the URI such as 
http://localhost:8080/alfresco/service/api/login?u=admin&amp;pw=admin
to get a ticket back via the url but that is all I can do because I cannot get authenticated. What would the code look like.
2) How would I use the following to retrieve a document? Do yo have any example? There is just so much that is not answered about this product. Could you please point me in the right direction? Thanks


http://:8080/alfresco/service/api/node/content/workspace/spacesstore/?a=false</description>
		<content:encoded><![CDATA[<p>Jeff, I know that this is not the forum for this but with Alfresco, there isnt enough examples no matter how many hours spent. I have two question 1) How do you use REST to authenticate? I can use the URI such as<br />
<a href="http://localhost:8080/alfresco/service/api/login?u=admin&#038;pw=admin" rel="nofollow">http://localhost:8080/alfresco/service/api/login?u=admin&#038;pw=admin</a><br />
to get a ticket back via the url but that is all I can do because I cannot get authenticated. What would the code look like.<br />
2) How would I use the following to retrieve a document? Do yo have any example? There is just so much that is not answered about this product. Could you please point me in the right direction? Thanks</p>
<p><a href="http://:8080/alfresco/service/api/node/content/workspace/spacesstore/?a=false" rel="nofollow">http://:8080/alfresco/service/api/node/content/workspace/spacesstore/?a=false</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

