<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trying to check out Doc with Rest api in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230694#M183824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you would like to use Web Services API you must invoke any WS API call with the right SOAP Header in the request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Service_SOAP_Header" rel="nofollow noopener noreferrer"&gt;Here&lt;/A&gt;&lt;SPAN&gt; you can see all the informations you need about SOAP Headers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are developing in Java language, maybe you could try to use the Alfresco Web Service Client, this is the Web Service Java stub precompilated from Alfresco and you can download it &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Labs_3_Final_download_files#Alfresco_Web_Service_Client" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt; (here for Alfresco Labs project).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using this client you don't need to create SOAP Headers but you need only to use the &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/CML" rel="nofollow noopener noreferrer"&gt;Content Manipulation Language (CML)&lt;/A&gt;&lt;SPAN&gt; to invoke your queries on the repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2009 21:56:35 GMT</pubDate>
    <dc:creator>openpj</dc:creator>
    <dc:date>2009-06-08T21:56:35Z</dc:date>
    <item>
      <title>Trying to check out Doc with Rest api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230693#M183823</link>
      <description>Alright,&amp;nbsp; I am using the following to check out a file from the api.&amp;nbsp; It returns the atom/xml&amp;nbsp; but doesn't checkout the doc.&amp;nbsp; GetMethod method = new GetMethod(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"http://&amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;/alfresco/service/api/node/workspace/SpacesStore/48bd0658-1261-4b0a-a74c-3d57b8094208/checkedout")</description>
      <pubDate>Mon, 08 Jun 2009 20:59:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230693#M183823</guid>
      <dc:creator>erictice</dc:creator>
      <dc:date>2009-06-08T20:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to check out Doc with Rest api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230694#M183824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you would like to use Web Services API you must invoke any WS API call with the right SOAP Header in the request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Service_SOAP_Header" rel="nofollow noopener noreferrer"&gt;Here&lt;/A&gt;&lt;SPAN&gt; you can see all the informations you need about SOAP Headers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are developing in Java language, maybe you could try to use the Alfresco Web Service Client, this is the Web Service Java stub precompilated from Alfresco and you can download it &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Labs_3_Final_download_files#Alfresco_Web_Service_Client" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt; (here for Alfresco Labs project).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using this client you don't need to create SOAP Headers but you need only to use the &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/CML" rel="nofollow noopener noreferrer"&gt;Content Manipulation Language (CML)&lt;/A&gt;&lt;SPAN&gt; to invoke your queries on the repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 21:56:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230694#M183824</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2009-06-08T21:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to check out Doc with Rest api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230695#M183825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to use the REST version not the SOAP version.&amp;nbsp; But the documentation only says to do the following:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;POST /alfresco/service/api/checkedout&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously you need to supply the id of the document you wish to checkout, so based on the format of other calls, it was reasonable to assume that the url would be &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;/alfresco/service/api/node/workspace/SpacesStore/&amp;lt;id&amp;gt;/checkedout&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will return an atom-xml with some information and doesn't fail, but it does say that checkout is false and it was not checked out.&amp;nbsp; So the question is, what is the proper url for the REST call?&amp;nbsp; Is there an additional parameter that needs to be passed in?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 13:45:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230695#M183825</guid>
      <dc:creator>erictice</dc:creator>
      <dc:date>2009-06-09T13:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to check out Doc with Rest api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230696#M183826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's the script definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a private working copy of the object, copies the metadata and optionally content. It is up to the repository to determine if updates to the current version (not PWC) and prior versions are allowed if checked-out.&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Inputs:&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ID documentId: ObjectID of Doc Version to checkout&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Outputs:&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ID documentId: ObjectID of Private Working Copy&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bool contentCopied&amp;lt;br&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Notes:&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is repository-specific to determine the scope of visibility to the private working copy.&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Other users not in the scope of checkout will see the public (pre-checkout) version while those in scope will be able to work on the checked-out version.&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Copying content on checkout or not is repository-specific.&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CheckOut() may remove update permission on prior versions.&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CheckOut() on a non-document object will throw OperationNotSupportedException.&amp;lt;br&amp;gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Some repositories may not support updating of private working copies and the updates MUST be supplied via checkIn().&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 14:06:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230696#M183826</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-06-09T14:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to check out Doc with Rest api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230697#M183827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, but then it has below that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;POST /alfresco/service/api/checkedout&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Requirements:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Default Format: atomentry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Authentication: user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Transaction: required&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Format Style: any &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Id: org/alfresco/repository/store/checkedout.post&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Description: classpath:alfresco/templates/webscripts/org/alfresco/repository/store/checkedout.post.desc.xml&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 14:13:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230697#M183827</guid>
      <dc:creator>erictice</dc:creator>
      <dc:date>2009-06-09T14:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to check out Doc with Rest api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230698#M183828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried posting some atom to this script?&amp;nbsp;&amp;nbsp; Looking at the code, i'm fairly sure that you do not specify the ID on the URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the code you started with is doing a GET not a POST.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 15:07:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230698#M183828</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-06-09T15:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to check out Doc with Rest api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230699#M183829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I switched to a post and I am told with that URL that the Post method is not supported, even though the scripts exist for it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 15:28:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trying-to-check-out-doc-with-rest-api/m-p/230699#M183829</guid>
      <dc:creator>erictice</dc:creator>
      <dc:date>2009-06-09T15:28:19Z</dc:date>
    </item>
  </channel>
</rss>

