Share via


3.1.4.24.2.2 GetListItemsResponse

The GetListItemsResponse element contains the protocol server response for the GetListItems request (section 3.1.4.24).

 <s:element name="GetListItemsResponse">
   <s:complexType>
     <s:sequence>
       <s:element minOccurs="0" maxOccurs="1" name="GetListItemsResult">
         <s:complexType mixed="true">
           <s:sequence>
             <s:element name="listitems" >
               <s:complexType mixed="true" >
                 <s:sequence>
                   <s:any />
                 </s:sequence>
               </s:complexType>
             </s:element>
           </s:sequence>
         </s:complexType>
       </s:element>
     </s:sequence>
   </s:complexType>
 </s:element>
  

GetListItemsResult: This protocol server response included in the listitems element is modeled on the Microsoft ADO 2.6 Persistence format [MS-PRSTFR], excluding the <s:schema> element. The listitems element includes attributes describing the namespaces for the ADO 2.6 Persistence format, that MAY be ignored by the protocol client, and contains an inner element named rs:data, that is of type DataDefinition (section 2.2.4.7). Protocol clients SHOULD make a GetList call (section 3.1.4.15) to get the schema of the list. The names of the attributes containing the list item data in this response correspond to the Name attribute in the Field elements of GetList and are prefixed by "ows_". Note that the set of fields returned by the method is restricted by the viewField or viewName parameter.

The following is an example response:

 <GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
 <GetListItemsResult>
 <listitems xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882' xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882' xmlns:rs='urn:schemas-microsoft-com:rowset'  xmlns:z='#RowsetSchema'>
 <rs:data ItemCount="1" ListItemCollectionPositionNext="Paged=TRUE&amp;p_ID=11">
 <z:row ows_Attachments='0' ows_LinkTitle='TestItem' ows_Num='20.0000000000000' ows_Text='TestItem' ows_FileDirRef='1;#Lists/TestItem' ows_FSObjType='1;#0' ows_MetaInfo='1;#' ows__ModerationStatus='0' ows__Level='1' ows_Title='Test new entry' ows_ID='1' ows_owshiddenversion='1' ows_UniqueId='1;#{078CAB5C-5FEA-43EA-B23A-FB93EF35397D}' ows_Created_x0020_Date='1;#2008-01-28 08:06:11' ows_Created='2008-01-28 08:06:11' ows_FileLeafRef='1;#1_.000' ows_FileRef='1;#Lists/TestListItem/1_.000' />
 </rs:data>
 </listitems>
 </GetListItemsResult>
 </GetListItemsResponse>
  

The listitems element contains attributes that define the namespaces. Inside of this element is the <rs:data> element, which specifies how many rows of data are being returned, where a row of data corresponds to a list item, and the paging token (if there are more rows in the view than were returned).