Share via


4.2 PROPFIND On Collection Resource

In this scenario a protocol client sends a PROPFIND request with a collection resource Request-URI. The client also includes the Repl:repl element collection within the request entity body.

The client sets the Depth header to "infinity". So the server responds with property information for every descendent of the Request-URI.

Request

Header

 PROPFIND /subwebpath HTTP/1.1
 X-Office-Version: 12.0.6017
 Depth: infinity
 moss-uid: {C309FC17-42A0-4C99-A87F-5F2BCBF7AAB8}
 Pragma: no-cache
 User-Agent: Microsoft Office/12.0 (Windows NT 6.0; SyncMan 12.0.6017; Pro)
 Host: my
 Content-Length: 180
 Connection: Keep-Alive
 Cache-Control: no-cache
 Cookie: WSS_KeepSessionAuthenticated=80

Body

  
 <?xml version="1.0"?>
 <D:propfind xmlns:D="DAV:" xmlns:r="http://schemas.microsoft.com/repl/">
    <r:repl><r:collblob>2008-03-12T19:57:05Z</r:collblob></r:repl>
    <D:allprop/>
 </D:propfind>

Response

 HTTP/1.1 207 MULTI-STATUS
 Date: Wed, 12 Mar 2008 20:00:33 GMT
 Server: Microsoft-IIS/6.0
 MicrosoftSharePointTeamServices: 12.0.0.6210
 X-Powered-By: ASP.NET
 Cache-Control: no-cache
 Content-Type: text/xml
 Content-Length: 10739
 Public-Extension: http://schemas.microsoft.com/repl-2
 Set-Cookie: WSS_KeepSessionAuthenticated=80; path=/
  
 <?xml version="1.0" encoding="utf-8" ?>
 <D:multistatus 
   xmlns:D="DAV:" 
   xmlns:Office="urn:schemas-microsoft-com:office:office" 
   xmlns:Repl="http://schemas.microsoft.com/repl/" 
   xmlns:Z="urn:schemas-microsoft-com:">
  
   <Repl:repl> <Repl:collblob>2008-03-12T20:00:33Z</Repl:collblob></Repl:repl>
  
   <D:response>
     <D:href>http://hostpath/subwebpath</D:href>
     <D:propstat>
       <D:prop>
         <D:displayname>Shared Documents</D:displayname>
         <D:lockdiscovery/>
         <D:supportedlock/>
         <D:isFolder>t</D:isFolder>
         <D:iscollection>1</D:iscollection>
         <D:ishidden>0</D:ishidden>
         <D:getcontenttype>application/octet-stream</D:getcontenttype>
         <D:getcontentlength>0</D:getcontentlength>
         <D:resourcetype><D:collection/></D:resourcetype>
         <Repl:authoritative-directory>t</Repl:authoritative-directory>
         <D:getlastmodified>2008-03-12T19:57:00Z</D:getlastmodified>
         <D:creationdate>2008-03-12T19:56:57Z</D:creationdate>
         <Repl:repl-uid>rid:{C309FC17-42A0-4C99-A87F-5F2BCBF7AAB8}</Repl:repl-uid>
         <Repl:resourcetag>rt:C309FC17-42A0-4C99-A87F-5F2BCBF7AAB8@00000000000</Repl:resourcetag>
         <D:getetag>&quot;{C309FC17-42A0-4C99-A87F-5F2BCBF7AAB8},0&quot;</D:getetag>
       </D:prop>
       <D:status>HTTP/1.1 200 OK</D:status>
     </D:propstat>
   </D:response>
  
  
   <D:response>
     <D:href>http://hostpath/subwebpath/Document1.docx</D:href>
     <D:propstat>
       <D:prop>
         <D:displayname>Document1.docx</D:displayname>
         <D:lockdiscovery/>
         <D:supportedlock>
           <D:lockentry>
             <D:lockscope><D:exclusive/></D:lockscope>
             <D:locktype><D:write/></D:locktype>
           </D:lockentry>
         </D:supportedlock>
         <D:getlastmodified>2008-03-12T19:57:00Z</D:getlastmodified>
         <Z:Win32LastModifiedTime>Wed, 12 Mar 2008 19:56:56 GMT</Z:Win32LastModifiedTime>
         <D:creationdate>2008-03-12T19:57:00Z</D:creationdate>
         <D:getcontentlength>15348</D:getcontentlength>
         <Repl:repl-uid>rid:{12F6054D-5A1F-4D5C-8170-702BABEF1C04}</Repl:repl-uid>
         <Repl:resourcetag>rt:12F6054D-5A1F-4D5C-8170-702BABEF1C04@00000000003</Repl:resourcetag>
         <Z:Win32CreationTime>Wed, 12 Mar 2008 19:56:55 GMT</Z:Win32CreationTime>
         <Z:Win32LastAccessTime>Wed, 12 Mar 2008 19:56:56 GMT</Z:Win32LastAccessTime>
         <D:getetag>&quot;{12F6054D-5A1F-4D5C-8170-702BABEF1C04},3&quot;</D:getetag>
         <Office:modifiedby>REDMOND\mingweiw</Office:modifiedby>
         <Z:Win32FileAttributes>00000020</Z:Win32FileAttributes>
       </D:prop>
       <D:status>HTTP/1.1 200 OK</D:status>
     </D:propstat>
   </D:response>
  
   <D:response>
     <D:href>http://hostpath/subwebpath/subsubwebpath</D:href>
     <D:propstat>
       <D:prop>
         <D:displayname>Forms</D:displayname>
         <D:lockdiscovery/>
         <D:supportedlock/>
         <D:isFolder>t</D:isFolder>
         <D:iscollection>1</D:iscollection>
         <D:ishidden>0</D:ishidden>
         <D:getcontenttype>application/octet-stream</D:getcontenttype>
         <D:getcontentlength>0</D:getcontentlength>
         <D:resourcetype>
         <D:collection/></D:resourcetype>
         <Repl:authoritative-directory>t</Repl:authoritative-directory>
         <D:getlastmodified>2008-03-12T19:56:57Z</D:getlastmodified>
         <D:creationdate>2008-03-12T19:56:57Z</D:creationdate>
         <Repl:repl-uid>rid:{5A3ADA17-D8B8-49C2-9B72-ECEFDDDAC6C0}</Repl:repl-uid>
         <Repl:resourcetag>rt:5A3ADA17-D8B8-49C2-9B72-ECEFDDDAC6C0@00000000000</Repl:resourcetag>
         <D:getetag>&quot;{5A3ADA17-D8B8-49C2-9B72-ECEFDDDAC6C0},0&quot;</D:getetag>
         <Z:Win32FileAttributes>00000012</Z:Win32FileAttributes>
       </D:prop>
       <D:status>HTTP/1.1 200 OK</D:status>
     </D:propstat>
   </D:response>
  
  
   <D:response>
     <D:href>http://hostpath/subwebpath/subsubwebpath/Combine.aspx</D:href>
     <D:propstat>
       <D:prop>
         <D:displayname>Combine.aspx</D:displayname>
         <D:lockdiscovery/>
         <D:supportedlock>
           <D:lockentry>
             <D:lockscope>
             <D:exclusive/></D:lockscope>
             <D:locktype><D:write/></D:locktype>
           </D:lockentry>
         </D:supportedlock>
         <D:getlastmodified>2008-03-12T19:56:57Z</D:getlastmodified>
         <D:creationdate>2008-03-12T19:56:57Z</D:creationdate>
         <D:getcontentlength>2649</D:getcontentlength>
         <Repl:repl-uid>rid:{54BC015F-5825-47E2-9E85-3D231BDDFE04}</Repl:repl-uid>
         <Repl:resourcetag>rt:54BC015F-5825-47E2-9E85-3D231BDDFE04@00000000001</Repl:resourcetag>
         <D:getetag>&quot;{54BC015F-5825-47E2-9E85-3D231BDDFE04},1&quot;</D:getetag>
         <Office:modifiedby></Office:modifiedby>
       </D:prop>
       <D:status>HTTP/1.1 200 OK</D:status>
     </D:propstat>
   </D:response>
  
   <D:response>
     <D:href>http://hostpath/subwebpath/subsubwebpath/Document2.doc</D:href>
     <D:propstat>
       <D:prop>
         <D:displayname>Document2.doc</D:displayname>
         <D:lockdiscovery/>
         <D:supportedlock>
           <D:lockentry>
             <D:lockscope><D:exclusive/></D:lockscope>
             <D:locktype><D:write/></D:locktype>
           </D:lockentry>
         </D:supportedlock>
         <D:getlastmodified>2008-03-12T19:56:57Z</D:getlastmodified>
         <D:creationdate>2008-03-12T19:56:57Z</D:creationdate>
         <D:getcontentlength>21504</D:getcontentlength>
         <Repl:repl-uid>rid:{4634A4B2-B48C-4A4B-879D-64C10E6B52D0}</Repl:repl-uid>
         <Repl:resourcetag>rt:4634A4B2-B48C-4A4B-879D-64C10E6B52D0@00000000001</Repl:resourcetag>
         <D:getetag>&quot;{4634A4B2-B48C-4A4B-879D-64C10E6B52D0},1&quot;</D:getetag>
         <Office:modifiedby></Office:modifiedby>
       </D:prop>
       <D:status>HTTP/1.1 200 OK</D:status>
     </D:propstat>
   </D:response>
 </D:multistatus>