Welcome to Office & SharePoint Pro Sign in | Join | Help

SUBSCRIBE to Windows IT Pro Magazine & SAVE 30%      FREE Email Newsletters Vista UPDATE, Windows IT Pro UPDATE & More

Lists web service to return files in folders or folder details

  •  01-02-2008, 10:18 PM

    Lists web service to return files in folders or folder details

    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

View Complete Thread
SPONSORED LINKS FEATURED LINKS

SharePoint Security SimplifiedHaving trouble with Permissions in your SharePoint environment? Check out USPM v2007® Order Your Fundamentals CD Today!Get up to speed quickly and learn how to uncover rich information management and deployment capabilities with this free SharePoint CD. Simplify Content Migration for SharePointEase the job of SharePoint migration and ongoing site maintenance. Michael Noel outlines your migration options in this white paper. Download today! Prepare Yourself for Exchange CatastropheRead this white paper to learn how you can keep Exchange server healthy, as well as predict and respond to server failure. Featured eBook - Fundamentals of Fax Server TechnologyTake advantage of the benefits of fax servers and find out how you can implement a solution that is easy to support, secure, and integrate. Dramatically Accelerate Microsoft SharePointDeliver unimpeded access to SharePoint - Learn how to fix more than just the symptoms of slow application delivery and poor performance. Protect Your Company’s Digital AssetsDo you know the risks of sending important files over email or FTP? Read this white paper to learn what you can do to safeguard your company’s data. Boost Customer Confidence and SatisfactionRead this eBook to learn how fax servers can ease communication with less computer-savvy customers while reducing your security, compliance, and support woes. Implement a Successful Archiving SolutionView this web seminar to learn the best practices for creating an email archive that is secure, compliant, and searchable.