sforce logo

Sample SOAP Messages-queryMore


This topic provides the following sample SOAP messages for the queryMore call:

Sample Request Message-queryMore Call-Enterprise API

POST /services/Soap/c/5.0 HTTP/1.0  
Content-Type: text/xml; charset=utf-8  
Accept: application/soap+xml, application/dime, multipart/related, text/*  
User-Agent: Axis/1.1  
Host: na1.salesforce.com  
Cache-Control: no-cache  
Pragma: no-cache  
SOAPAction: ""  
Content-Length: 870   
 
<?xml version="1.0" encoding="UTF-8"?> 
   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance">  
      <soapenv:Header>   
         <ns1:SessionHeader soapenv:mustUnderstand="0" 
xmlns:ns1="urn:enterprise.soap.sforce.com">    
            <ns2:sessionId 
xmlns:ns2="urn:enterprise.soap.sforce.com">WgMUbbkPmBoH_dI9Z89Nvxm_jXlNKOSU</
ns2:sessionId>   
         </ns1:SessionHeader>   
         <ns3:QueryOptions soapenv:mustUnderstand="0" xmlns:ns3="SoapService">    
            <ns4:batchSize xmlns:ns4="urn:enterprise.soap.sforce.com">3</
ns4:batchSize>   
         </ns3:QueryOptions>  
      </soapenv:Header>  
      <soapenv:Body>   
         <queryMore xmlns="urn:enterprise.soap.sforce.com">    
            <queryLocator>01g30000000590JAAQ-3</queryLocator>   
         </queryMore>  
      </soapenv:Body> 
   </soapenv:Envelope> 

Sample Response Message-queryMore Call-Enterprise API

HTTP/1.0 200 OK  
Server: sfdc  
Content-Type: text/xml; charset=utf-8  
Date: Wed, 07 Jul 2004 18:04:04 GMT   
 
<?xml version="1.0" encoding="UTF-8"?> 
   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance">  
      <soapenv:Body>   
         <queryMoreResponse xmlns="urn:enterprise.soap.sforce.com">    
            <result>     
               <done>false</done>     
               <queryLocator>01g30000000590JAAQ-6</queryLocator>     
               <records xsi:type="sf:Contact" 
xmlns:sf="urn:sobject.enterprise.soap.sforce.com">      
                  <sf:FirstName>Query</sf:FirstName>      
                  <sf:LastName>Nested04</sf:LastName>     
               </records>     
               <records xsi:type="sf:Contact" 
xmlns:sf="urn:sobject.enterprise.soap.sforce.com">      
                  <sf:FirstName>Query</sf:FirstName>      
                  <sf:LastName>Nested10</sf:LastName>     
               </records>     
               <records xsi:type="sf:Contact" 
xmlns:sf="urn:sobject.enterprise.soap.sforce.com">      
                  <sf:FirstName>Query</sf:FirstName>      
                  <sf:LastName>Nested22</sf:LastName>     
               </records>     
               <size>82</size>    
            </result>   
         </queryMoreResponse>  
      </soapenv:Body> 
   </soapenv:Envelope> 

Sample Request Message-queryMore Call-Partner API

POST https://na1.salesforce.com/services/Soap/u/5.0 HTTP/1.1  
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 
1.1.4322.573)  
Content-Type: text/xml; charset=utf-8  
SOAPAction: ""  
Content-Length: 656  
Expect: 100-continue  
Host: na1.salesforce.com   
 
      <?xml version="1.0" encoding="utf-8"?> 
         <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://
www.w3.org/2001/XMLSchema"> 
            <soap:Header> 
               <QueryOptions xmlns="urn:partner.soap.sforce.com"> 
                  <batchSize>3</batchSize> 
               </QueryOptions> 
               <SessionHeader xmlns="urn:partner.soap.sforce.com"> 
                  <sessionId>4I1yNabX_5FyOGOnuFO64VpRP079_jXlNKOSU</sessionId> 
               </SessionHeader> 
            </soap:Header> 
            <soap:Body> 
               <queryMore xmlns="urn:partner.soap.sforce.com"> 
                  <queryLocator>01g30000000590HAAQ-3</queryLocator> 
               </queryMore> 
            </soap:Body> 
         </soap:Envelope> 

Sample Response Message-queryMore Call-Partner API

HTTP/1.1 200 OK  
Server: sfdc  
Content-Type: text/xml; charset=utf-8  
Transfer-Encoding: chunked  
Date: Wed, 07 Jul 2004 16:42:42 GMT   
 
      <?xml version="1.0" encoding="UTF-8"?> 
         <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance">  
            <soapenv:Body>   
               <queryMoreResponse xmlns="urn:partner.soap.sforce.com">    
                  <result>     
                     <done>false</done>     
                     <queryLocator>01g30000000590HAAQ-6</queryLocator>     
                     <records xsi:type="sf:sObject" 
xmlns:sf="urn:sobject.partner.soap.sforce.com">      
                        <sf:type>Contact</sf:type>      
                        <sf:FirstName>Query</sf:FirstName>      
                        <sf:LastName>Nested04</sf:LastName>     
                     </records>     
                     <records xsi:type="sf:sObject" 
xmlns:sf="urn:sobject.partner.soap.sforce.com">      
                        <sf:type>Contact</sf:type>      
                        <sf:FirstName>Query</sf:FirstName>      
                        <sf:LastName>Nested10</sf:LastName>     
                     </records>     
                     <records xsi:type="sf:sObject" 
xmlns:sf="urn:sobject.partner.soap.sforce.com">      
                        <sf:type>Contact</sf:type>      
                        <sf:FirstName>Query</sf:FirstName>      
                        <sf:LastName>Nested22</sf:LastName>     
                     </records>     
                     <size>80</size>    
                  </result>   
               </queryMoreResponse>  
            </soapenv:Body> 
         </soapenv:Envelope> 

© Copyright 2000-2003 SalesForce.com, Inc.
All rights reserved • Various trademarks held by their respective owners.