Enterprise Query More

Sample Request Message-queryMore Call-Enterprise API

POST https://na1.salesforce.com/services/Soap/c/10.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: 510 
Expect: 100-continue 
Host: na1.salesforce.com 

<?xml version="1.0" encoding="utf-8"?>   
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:urn="urn:enterprise.soap.sforce.com">
  <soapenv:Header>
     <urn:QueryOptions>
        <urn:batchSize>200</urn:batchSize>
     </urn:QueryOptions>
     <urn:SessionHeader>
        <urn:sessionId>QwWsHJyTPW.1pd0_jXlNKOSU</urn:sessionId>
     </urn:SessionHeader>
  </soapenv:Header>
  <soapenv:Body>
     <urn:queryMore>
        <urn:queryLocator>01gD0000001vELkIAM-200</urn:queryLocator>
     </urn:queryMore>
  </soapenv:Body>
</soapenv:Envelope>

Sample Response Message-queryMore Call-Enterprise API

HTTP/1.1 200 OK 
Server: sfdc 
Content-Type: text/xml; charset=utf-8 
Transfer-Encoding: chunked 
Date: Thu, 29 May 2007 21:38:17 GMT
  
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns="urn:enterprise.soap.sforce.com">
  <soapenv:Body>
     <queryMoreResponse>
        <result xsi:type="QueryResult">
           <done>false</done>
           <queryLocator>01gD0000001vELkIAM-400</queryLocator>
           <records xsi:type="sf:sObject">
              <sf:type>Account</sf:type>
              <sf:Id>001D000000HS2PPIA1</sf:Id>
              <sf:Id>001D000000HS2PPIA1</sf:Id>
              <sf:Name>MarketRemedy, Inc.</sf:Name>
           </records>
           <records xsi:type="sf:sObject">
              <sf:type>Account</sf:type>
              <sf:Id>001D000000HS2PMIA1</sf:Id>
              <sf:Id>001D000000HS2PMIA1</sf:Id>
              <sf:Name>Forex Capital Markets Japan</sf:Name>
           </records>
           
           ... 

           <records xsi:type="sf:sObject">
              <sf:type>Account</sf:type>
              <sf:Id>001D000000HS2PNIA1</sf:Id>
              <sf:Id>001D000000HS2PNIA1</sf:Id>
              <sf:Name>Vizrt</sf:Name>
           </records>
        <size>427</size>
      </result>
    </queryMoreResponse>
  </soapenv:Body>
</soapenv:Envelope>

Back to Sample SOAP Messages