Note that there are some explanatory texts on larger screens.

plurals
  1. POSharePoint List.getListItems WebService to return sub folder contents, recursively
    primarykey
    data
    text
    <p>I am calling the lists.asmx webservice from <a href="http://cxf.apache.org/" rel="noreferrer">CXF</a>. The following soap call does not return files from list sub folders. It returns folder1,folder2 and file1.pdf</p> <pre><code>Shared Documents folder1 file2.docx file3.pdf folder2 sub-folder1 file5.pdf file4.pdf file1.pdf </code></pre> <p>SOAP call</p> <pre><code>POST /_vti_bin/lists.asmx HTTP/1.1 Accept-Encoding: gzip,deflate &lt;soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:soap1="http://schemas.microsoft.com/sharepoint/soap/"&gt; &lt;soap:Header/&gt; &lt;soap:Body&gt; &lt;soap1:GetListItems&gt; &lt;soap1:listName&gt;Shared Documents&lt;/soap1:listName&gt; &lt;queryOptions&gt; &lt;QueryOptions&gt; &lt;IncludeMandatoryColumns&gt;TRUE&lt;/IncludeMandatoryColumns&gt; &lt;ViewAttributes Scope="RecursiveAll"/&gt; &lt;DateInUtc&gt;TRUE&lt;/DateInUtc&gt; &lt;/QueryOptions&gt; &lt;/queryOptions&gt; &lt;/soap1:GetListItems&gt; &lt;/soap:Body&gt; &lt;/soap:Envelope&gt; </code></pre> <p>Any clues on how to get files from folder1, folder3 and sub-folder1 included in the result?. If Lists web service cannot do it, is there an alternative service/method?</p> <p><strong>Additional Information:</strong> There is another webservice, <code>SiteData (_vti_bin/sitedata.asmx)</code>. It has a similar method ( getListItems) and returns all files with just the list name and no additional parameters.The issue is I could not figure out how/where to specify the Paging parameter, as there is NO queryOptions input element like in the Lists webservice.</p> <pre><code> &lt;soap1:strListName&gt;?&lt;/soap1:strListName&gt; &lt;soap1:strQuery&gt;?&lt;/soap1:strQuery&gt; &lt;soap1:strViewFields&gt;?&lt;/soap1:strViewFields&gt; &lt;soap1:uRowLimit&gt;?&lt;/soap1:uRowLimit&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload