bryanbarnard
4/1/2014 - 3:34 AM

Sample HTTP Request - ServiceNow Direct Web Service - Incidents

Sample HTTP Request - ServiceNow Direct Web Service - Incidents

POST https://demo006.service-now.com/incident.do?SOAP HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://www.service-now.com/incident/getRecords"
Content-Length: 326
Host: demo006.service-now.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Cookie: BIGipServerpool_demo006=808634890.33598.0000; JSESSIONID=4845EEC9C7ECAA69FBA52353A941BA52
Cookie2: $Version=1
Authorization: Basic YWRtaW46YWRtaW4=

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inc="http://www.service-now.com/incident">
   <soapenv:Header/>
   <soapenv:Body>
      <inc:getRecords>
         <active>true</active>        
         <__limit>1</__limit>        
      </inc:getRecords>
   </soapenv:Body>
</soapenv:Envelope>