<?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 Read Content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/read-content/m-p/232033#M185163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to read a content. My code works fine for one space but for another space don't work. Space that can't I read contains is &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;/app:company_home/cm:portal/cm:Game/cm:Content/cm:The_x0020_Example/*/cm:050109.html&lt;BR /&gt;or&lt;BR /&gt;/app:company_home/cm:portal/cm:Game/cm:Content/cm:The_x0020_Example/cm:2009/cm:050109.html&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;My code, that work fine with another space, is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;…&lt;BR /&gt;WebServiceFactory.setEndpointAddress(Alfresco.ENDPOINT);&lt;BR /&gt;AuthenticationUtils.startSession(AlfrescoConstants.USERNAME, AlfrescoConstants.PASSWORD);&lt;BR /&gt;Reference ref = new Reference(AlfrescoConstants.STORE, null, "/app:company_home/cm:portal/cm:Game/cm:Content/cm:The_x0020_Example/*/cm:050109.html");&lt;BR /&gt;ContentServiceSoapBindingStub contentService = WebServiceFactory.getContentService();&lt;BR /&gt;Content[] readResult = contentService.read(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Predicate(new Reference[]{ref}, AlfrescoConstants.STORE, null), &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Constants.PROP_CONTENT);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Mar 2010 10:04:51 GMT</pubDate>
    <dc:creator>ant_batt</dc:creator>
    <dc:date>2010-03-25T10:04:51Z</dc:date>
    <item>
      <title>Read Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-content/m-p/232033#M185163</link>
      <description>Hi,I want to read a content. My code works fine for one space but for another space don't work. Space that can't I read contains is /app:company_home/cm&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ortal/cm:Game/cm:Content/cm:The_x0020_Example/*/cm:050109.htmlor/app:company_home/cm&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ortal/cm:Game/cm:Content/cm:The_x0020_Example/cm:2009/cm:050</description>
      <pubDate>Thu, 25 Mar 2010 10:04:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-content/m-p/232033#M185163</guid>
      <dc:creator>ant_batt</dc:creator>
      <dc:date>2010-03-25T10:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-content/m-p/232034#M185164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to encode all the space name using the helper class ISO9075.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For each space (and only for all the subspaces!) you have to append a string to create the related child name for the space as the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;cm:spaceName&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;The spaceName value must be encoded using the encode method of the ISO9075 helper class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.alfresco.webservice.util.ISO9075&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Try to use it in this way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;WebServiceFactory.setEndpointAddress(Alfresco.ENDPOINT);&lt;BR /&gt;AuthenticationUtils.startSession(AlfrescoConstants.USERNAME, AlfrescoConstants.PASSWORD);&lt;BR /&gt;Reference ref = new Reference(AlfrescoConstants.STORE, null, "/app:company_home/cm:"+ISO9075.encode(portal)+"/cm:"+ISO9075.encode(Game)+"/cm:"+ISO9075.encode(Content)+"/cm:"+ISO9075.encode(The_x0020_Example)+"/*/cm:050109.html");&lt;BR /&gt;ContentServiceSoapBindingStub contentService = WebServiceFactory.getContentService();&lt;BR /&gt;Content[] readResult = contentService.read(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Predicate(new Reference[]{ref}, AlfrescoConstants.STORE, null), &lt;BR /&gt;&amp;nbsp;&amp;nbsp; Constants.PROP_CONTENT);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 12:40:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-content/m-p/232034#M185164</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2010-03-26T12:40:32Z</dc:date>
    </item>
  </channel>
</rss>

