icrservice


Click here for a complete list of operations.

GetICRResultsForLastDayOrWeek

This method is used for pulling all results for the last day or week. The passed value should either be 'day' or 'week'. Not providing a value will return results for the last day.

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
strDayOrWeek:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /webservices/icrservice.asmx HTTP/1.1
Host: ppd.henrico.us
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://henrico.us/police/public-data-access/help/GetICRResultsForLastDayOrWeek"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetICRResultsForLastDayOrWeek xmlns="https://henrico.us/police/public-data-access/help/">
      <strDayOrWeek>string</strDayOrWeek>
    </GetICRResultsForLastDayOrWeek>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetICRResultsForLastDayOrWeekResponse xmlns="https://henrico.us/police/public-data-access/help/">
      <GetICRResultsForLastDayOrWeekResult>
        <ICRResults>
          <offenseKey>int</offenseKey>
          <icrNumber>string</icrNumber>
          <offSequenceID>string</offSequenceID>
          <MagisDistrict>string</MagisDistrict>
          <comments>string</comments>
          <specCrime>string</specCrime>
          <block>string</block>
          <locationType>string</locationType>
          <status>string</status>
          <policeServiceArea>string</policeServiceArea>
          <disposition>string</disposition>
          <smallReportingArea>string</smallReportingArea>
          <beginDateTime>dateTime</beginDateTime>
          <endDateTime>dateTime</endDateTime>
        </ICRResults>
        <ICRResults>
          <offenseKey>int</offenseKey>
          <icrNumber>string</icrNumber>
          <offSequenceID>string</offSequenceID>
          <MagisDistrict>string</MagisDistrict>
          <comments>string</comments>
          <specCrime>string</specCrime>
          <block>string</block>
          <locationType>string</locationType>
          <status>string</status>
          <policeServiceArea>string</policeServiceArea>
          <disposition>string</disposition>
          <smallReportingArea>string</smallReportingArea>
          <beginDateTime>dateTime</beginDateTime>
          <endDateTime>dateTime</endDateTime>
        </ICRResults>
      </GetICRResultsForLastDayOrWeekResult>
    </GetICRResultsForLastDayOrWeekResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /webservices/icrservice.asmx HTTP/1.1
Host: ppd.henrico.us
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetICRResultsForLastDayOrWeek xmlns="https://henrico.us/police/public-data-access/help/">
      <strDayOrWeek>string</strDayOrWeek>
    </GetICRResultsForLastDayOrWeek>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetICRResultsForLastDayOrWeekResponse xmlns="https://henrico.us/police/public-data-access/help/">
      <GetICRResultsForLastDayOrWeekResult>
        <ICRResults>
          <offenseKey>int</offenseKey>
          <icrNumber>string</icrNumber>
          <offSequenceID>string</offSequenceID>
          <MagisDistrict>string</MagisDistrict>
          <comments>string</comments>
          <specCrime>string</specCrime>
          <block>string</block>
          <locationType>string</locationType>
          <status>string</status>
          <policeServiceArea>string</policeServiceArea>
          <disposition>string</disposition>
          <smallReportingArea>string</smallReportingArea>
          <beginDateTime>dateTime</beginDateTime>
          <endDateTime>dateTime</endDateTime>
        </ICRResults>
        <ICRResults>
          <offenseKey>int</offenseKey>
          <icrNumber>string</icrNumber>
          <offSequenceID>string</offSequenceID>
          <MagisDistrict>string</MagisDistrict>
          <comments>string</comments>
          <specCrime>string</specCrime>
          <block>string</block>
          <locationType>string</locationType>
          <status>string</status>
          <policeServiceArea>string</policeServiceArea>
          <disposition>string</disposition>
          <smallReportingArea>string</smallReportingArea>
          <beginDateTime>dateTime</beginDateTime>
          <endDateTime>dateTime</endDateTime>
        </ICRResults>
      </GetICRResultsForLastDayOrWeekResult>
    </GetICRResultsForLastDayOrWeekResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /webservices/icrservice.asmx/GetICRResultsForLastDayOrWeek?strDayOrWeek=string HTTP/1.1
Host: ppd.henrico.us
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfICRResults xmlns="https://henrico.us/police/public-data-access/help/">
  <ICRResults>
    <offenseKey>int</offenseKey>
    <icrNumber>string</icrNumber>
    <offSequenceID>string</offSequenceID>
    <MagisDistrict>string</MagisDistrict>
    <comments>string</comments>
    <specCrime>string</specCrime>
    <block>string</block>
    <locationType>string</locationType>
    <status>string</status>
    <policeServiceArea>string</policeServiceArea>
    <disposition>string</disposition>
    <smallReportingArea>string</smallReportingArea>
    <beginDateTime>dateTime</beginDateTime>
    <endDateTime>dateTime</endDateTime>
  </ICRResults>
  <ICRResults>
    <offenseKey>int</offenseKey>
    <icrNumber>string</icrNumber>
    <offSequenceID>string</offSequenceID>
    <MagisDistrict>string</MagisDistrict>
    <comments>string</comments>
    <specCrime>string</specCrime>
    <block>string</block>
    <locationType>string</locationType>
    <status>string</status>
    <policeServiceArea>string</policeServiceArea>
    <disposition>string</disposition>
    <smallReportingArea>string</smallReportingArea>
    <beginDateTime>dateTime</beginDateTime>
    <endDateTime>dateTime</endDateTime>
  </ICRResults>
</ArrayOfICRResults>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /webservices/icrservice.asmx/GetICRResultsForLastDayOrWeek HTTP/1.1
Host: ppd.henrico.us
Content-Type: application/x-www-form-urlencoded
Content-Length: length

strDayOrWeek=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfICRResults xmlns="https://henrico.us/police/public-data-access/help/">
  <ICRResults>
    <offenseKey>int</offenseKey>
    <icrNumber>string</icrNumber>
    <offSequenceID>string</offSequenceID>
    <MagisDistrict>string</MagisDistrict>
    <comments>string</comments>
    <specCrime>string</specCrime>
    <block>string</block>
    <locationType>string</locationType>
    <status>string</status>
    <policeServiceArea>string</policeServiceArea>
    <disposition>string</disposition>
    <smallReportingArea>string</smallReportingArea>
    <beginDateTime>dateTime</beginDateTime>
    <endDateTime>dateTime</endDateTime>
  </ICRResults>
  <ICRResults>
    <offenseKey>int</offenseKey>
    <icrNumber>string</icrNumber>
    <offSequenceID>string</offSequenceID>
    <MagisDistrict>string</MagisDistrict>
    <comments>string</comments>
    <specCrime>string</specCrime>
    <block>string</block>
    <locationType>string</locationType>
    <status>string</status>
    <policeServiceArea>string</policeServiceArea>
    <disposition>string</disposition>
    <smallReportingArea>string</smallReportingArea>
    <beginDateTime>dateTime</beginDateTime>
    <endDateTime>dateTime</endDateTime>
  </ICRResults>
</ArrayOfICRResults>