I am using SOAP requests to the Lists web service to get results back from a document library. What I want is the list of documents in a sub-folder. There is a <Folder> option in <QueryOptions>, and I am using that with the sub-folder name (eg. as per below), but I can't seem to make this work.
<
SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/
" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
" xmlns:xsd="http://www.w3.org/2001/XMLSchema
">
<SOAP-ENV:Body>
<m:GetListItems xmlns:m="http://schemas.microsoft.com/sharepoint/soap/">
<m:listName>{my list name here}</m:listName>
<m:queryOptions>
<QueryOptions><Folder>FlashExamples</Folder></QueryOptions>
</m:queryOptions>
</m:GetListItems>
</SOAP-ENV:Body>
</
SOAP-ENV:Envelope>
This returns no records, even though I know there are documents in the FlashExamples folder. (Without the query options the list returns exactly what I expect -- a combination of documents and folders, as per my default view.)
My problem is, I don't even really know how to identify folders in a list, otherwise I maybe could use a where clause.
Can anyone suggest how I might do it?
Thanks