<?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 Get content from web service in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-content-from-web-service/m-p/233906#M187036</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;SPAN&gt;I'm trying to read content from a java web service and I can't figure out what Store and Reference I need to use. It seems there is no examples in the Alfresco forum!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a web project named "site1" and the content is in the staging sandbox. In the ROOT folder there is a article.html file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;String path = "/article.html"&lt;BR /&gt;Store store = new Store("avm", "site1");&lt;BR /&gt;&lt;BR /&gt;ContentServiceSoapBindingStub contentService = WebServiceFactory.getContentService(); &lt;BR /&gt;Reference ref = new Reference(store, null, path);&lt;BR /&gt;Content[] readResult = contentService.read(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Predicate(new Reference[]{ref}, store, null), &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Constants.PROP_CONTENT);&lt;BR /&gt;Content content = readResult[0];&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Which result in&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Failed to resolve to a single NodeRef with parameters (store=avm:site1 uuid=null path=/article.html), found 0 nodes.&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Also tried with the workspace store SpacesStore and site1 in the path, same result. (Obviously the path is wrong).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've seen examples with a syntax like "/app:company_home/cm: bla bla bla" but I'm under the impression it's used for DM content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, in summary, how can get the file article.html in the root of a web project named site1, using the web service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 May 2010 12:35:55 GMT</pubDate>
    <dc:creator>drvolks</dc:creator>
    <dc:date>2010-05-27T12:35:55Z</dc:date>
    <item>
      <title>Get content from web service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-content-from-web-service/m-p/233906#M187036</link>
      <description>Hi,I'm trying to read content from a java web service and I can't figure out what Store and Reference I need to use. It seems there is no examples in the Alfresco forum!I have a web project named "site1" and the content is in the staging sandbox. In the ROOT folder there is a article.html file.Strin</description>
      <pubDate>Thu, 27 May 2010 12:35:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-content-from-web-service/m-p/233906#M187036</guid>
      <dc:creator>drvolks</dc:creator>
      <dc:date>2010-05-27T12:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get content from web service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-content-from-web-service/m-p/233907#M187037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;found it. the path is /cm:www/cm:avm_webapps/cm:ROOT/cm:article.html&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 13:38:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-content-from-web-service/m-p/233907#M187037</guid>
      <dc:creator>drvolks</dc:creator>
      <dc:date>2010-05-27T13:38:30Z</dc:date>
    </item>
  </channel>
</rss>

