bryanbarnard
5/13/2015 - 1:54 PM

Sample SOAP GetRecords request using _limit parameter made against Demo ServiceNow instance

Sample SOAP GetRecords request using _limit parameter made against Demo ServiceNow instance

POST https://demo010.service-now.com/incident_list.do?SOAP HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://www.service-now.com/incident/getRecords"
Authorization: Basic YWRtaW46YWRtaW4=
Content-Length: 350
Host: demo010.service-now.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inc="http://www.service-now.com/incident">
   <soapenv:Header/>
   <soapenv:Body>
      <inc:getRecords>
         <__encoded_query>state=7</__encoded_query>         
         <__limit>300</__limit>        
      </inc:getRecords>
   </soapenv:Body>
</soapenv:Envelope>