<?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: Repository Service: Batching of results in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/repository-service-batching-of-results/m-p/139037#M97449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm experiencing exactly the same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody please post a successful soap request that takes fetchSize into consideration? I'm trying to connect to Alfresco 2.0.1E.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2007 08:03:55 GMT</pubDate>
    <dc:creator>mruflin</dc:creator>
    <dc:date>2007-11-05T08:03:55Z</dc:date>
    <item>
      <title>Repository Service: Batching of results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-service-batching-of-results/m-p/139035#M97447</link>
      <description>Hi,I am trying to batch results returned from a query. I have specified a QueryConfiguration header with a deliberately small fetchSize of 5. I still get all results returned, 52 rows in this case.This is the SOAP message sent:&amp;lt;?xml version="1.0"?&amp;gt;&amp;lt;SOAP-ENV:Envelope xmlns&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;OAP-ENV="http://s</description>
      <pubDate>Fri, 02 Nov 2007 11:23:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-service-batching-of-results/m-p/139035#M97447</guid>
      <dc:creator>marian</dc:creator>
      <dc:date>2007-11-02T11:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Repository Service: Batching of results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-service-batching-of-results/m-p/139036#M97448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I created the header as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;QueryHeader&amp;gt;&amp;lt;QueryConfiguration&amp;gt;&amp;lt;fetchSize&amp;gt;5&amp;lt;/fetchSize&amp;gt;&amp;lt;/QueryConfiguration&amp;gt;&amp;lt;/QueryHeader&amp;gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The behaviour is the same&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 16:11:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-service-batching-of-results/m-p/139036#M97448</guid>
      <dc:creator>marian</dc:creator>
      <dc:date>2007-11-02T16:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Repository Service: Batching of results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-service-batching-of-results/m-p/139037#M97449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm experiencing exactly the same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody please post a successful soap request that takes fetchSize into consideration? I'm trying to connect to Alfresco 2.0.1E.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 08:03:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-service-batching-of-results/m-p/139037#M97449</guid>
      <dc:creator>mruflin</dc:creator>
      <dc:date>2007-11-05T08:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Repository Service: Batching of results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-service-batching-of-results/m-p/139038#M97450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got it working now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following snippet is produced by the Java Alfresco Webservice API, omitting soapenv:actor and soapenv:mustUnderstand did also work for me (I need to get paging working using the php-sdk):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;ns1:QueryHeader&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;xmlns:ns1="&lt;A href="http://www.alfresco.org/ws/service/repository/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/ws/service/repository/1.0&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;soapenv:actor="&lt;A href="http://schemas.xmlsoap.org/soap/actor/next" rel="nofollow noopener noreferrer"&gt;http://schemas.xmlsoap.org/soap/actor/next&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;soapenv:mustUnderstand="0"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;ns2:fetchSize xmlns:ns2="&lt;A href="http://www.alfresco.org/ws/headers/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/ws/headers/1.0&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/ns2:fetchSize&amp;gt;&lt;BR /&gt;&amp;lt;/ns1:QueryHeader&amp;gt;&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;Put the QueryHeader element directly into the soap header. Note the two different namespaces for QueryHeader and fetchSize.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 17:03:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-service-batching-of-results/m-p/139038#M97450</guid>
      <dc:creator>mruflin</dc:creator>
      <dc:date>2007-11-06T17:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Repository Service: Batching of results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-service-batching-of-results/m-p/139039#M97451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I got it working now.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So did I thanks to your sample header.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So to answer my further questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The query() returns a result where the TotalRows member is set to the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;size of the batch or less. It does NOT contain information on how many &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rows to expect, only how many are in the current response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The QuerySession-Member will be set only if there are more rows to be &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fetched by a call to fetchMore().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The same is true of fetchMore(): The QuerySession it returns is valid for &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the next call to fetchMore() or empty, indicating that all results have been &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fetched.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is all strictly by observation, not based on deeper digging in the code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would still appreciate a pointer to some documentation to substanciate &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;these observations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But other than that it works for me fine now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ciao, MM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2007 15:15:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-service-batching-of-results/m-p/139039#M97451</guid>
      <dc:creator>marian</dc:creator>
      <dc:date>2007-11-08T15:15:45Z</dc:date>
    </item>
  </channel>
</rss>

