PartnerQueryAll

Sample Request Message-queryAll Call-Partner API

POST https://na1.salesforce.com/services/Soap/u/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:partner.soap.sforce.com">
  <soapenv:Header>
     <urn:SessionHeader>
        <urn:sessionId>QwWsHJyTPW.1pd0_jXlNKOSU</urn:sessionId>
     </urn:SessionHeader>
  </soapenv:Header>
  <soapenv:Body>
     <urn:queryAll>
        <urn:queryString>SELECT Id, Name, IsDeleted FROM Account 
                          WHERE Name LIKE '%acme%'</urn:queryString>
     </urn:queryAll>
  </soapenv:Body>
</soapenv:Envelope>

Sample Response Message-queryAll Call-Partner API

HTTP/1.1 200 OK 
Server: sfdc 
Content-Type: text/xml; charset=utf-8 
Transfer-Encoding: chunked 
Date: Thu, 24 May 2007 20:32:17 GMT
  
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns="urn:partner.soap.sforce.com">
  <soapenv:Body>
     <queryAllResponse>
        <result xsi:type="QueryResult">
           <done>true</done>
           <queryLocator xsi:nil="true"/>
           <records xsi:type="sf:sObject">
              <sf:type>Account</sf:type>
              <sf:Id>001D000000HRzTRIA1</sf:Id>
              <sf:Id>001D000000HRzTRIA1</sf:Id>
              <sf:Name>Acme Rocket Co.</sf:Name>
              <sf:IsDeleted>true</sf:IsDeleted>
           </records>
           <records xsi:type="sf:sObject">
              <sf:type>Account</sf:type>
              <sf:Id>001D000000HRzKDIA1</sf:Id>
              <sf:Id>001D000000HRzKDIA1</sf:Id>
              <sf:Name>Acme Rocket Superstore</sf:Name>
              <sf:IsDeleted>false</sf:IsDeleted>
           </records>
           <records xsi:type="sf:sObject">
              <sf:type>Account</sf:type>
              <sf:Id>001D000000HS2SuIAL</sf:Id>
              <sf:Id>001D000000HS2SuIAL</sf:Id>
              <sf:Name>Acme</sf:Name>
              <sf:IsDeleted>false</sf:IsDeleted>
           </records>
           <records xsi:type="sf:sObject">
              <sf:type>Account</sf:type>
              <sf:Id>001D000000HSDQZIA5</sf:Id>
              <sf:Id>001D000000HSDQZIA5</sf:Id>
              <sf:Name>Acme Medical Supplies</sf:Name>
              <sf:IsDeleted>true</sf:IsDeleted>
           </records>
           <size>4</size>
        </result>
     </queryAllResponse>
  </soapenv:Body>
</soapenv:Envelope>


Back to Sample SOAP Messages