4.1 Obtain List Data and Schema

The minimal query simply sets the select attribute on the dsQuery node.

Request

<queryRequest xmlns="http://schemas.microsoft.com/sharepoint/dsp">
   <dsQuery select="/list[@id='{C13E4B16-9982-4C30-B533-2B4068B0C623}']" />
</queryRequest>

Response

 <queryResponse xmlns="http://schemas.microsoft.com/sharepoint/dsp">
    <dsQueryResponse status="success">
       <x:schema xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" 
          xmlns:x="http://www.w3.org/2001/XMLSchema">
          <x:element name="Widgets">
             <x:complexType>
                <x:sequence maxOccurs="unbounded">
                   <x:element name="Widgets_Row" minOccurs="0">
                      <x:complexType>
                         <x:sequence>
                            <x:element name="ID" minOccurs="0" d:readOnly="true"
                            d:filterSupport="IsNull;IsNotNull;Eq;Neq;Lt;
                            Gt;Leq;Geq;" d:displayName="ID" type="x:int" />
                            <x:element name="Title"
                               d:filterSupport="IsNull;IsNotNull;Eq;Neq;
                               Lt;Gt;Leq;Geq;Contains;BeginsWith;" 
                               d:displayName="Title" type="x:string" />
                            <x:element name="Count" minOccurs="0" 
                                       d:filterSupport="IsNull;IsNotNull;Eq;Neq;Lt;Gt;
                               Leq;Geq;" d:displayName="Count" type="x:float" />
                            <x:element name="Stock" minOccurs="0" 
                               d:filterSupport="IsNull;IsNotNull;Eq;Neq;" 
                               d:displayName="Stock" type="x:boolean" />
                         </x:sequence>
                      </x:complexType>
                   </x:element>
                </x:sequence>
             </x:complexType>
          </x:element>
       </x:schema>
       <Widgets xmlns="">
          <Widgets_Row>
             <ID>1</ID>
             <Title>Widget A</Title>
             <Count>100</Count>
             <Stock>0</Stock>
          </Widgets_Row>
          <Widgets_Row>
             <ID>2</ID>
             <Title>Widget B</Title>
             <Count>100</Count>
             <Stock>0</Stock>
          </Widgets_Row>
          <Widgets_Row>
             <ID>3</ID>
             <Title>Widget C</Title>
             <Count>23</Count>
             <Stock>1</Stock>
          </Widgets_Row>
       </Widgets>
    </dsQueryResponse>
 </queryResponse>