This article includes:
- JSON queryDevice Request (Transactional API)
- JSON queryDevice Response (Transactional API)
- SOAP queryDevice Request (Transactional API)
- SOAP downloadSummaryFile Request (Reporting API)
- SOAP downloadSummaryFile Response (Reporting API)
JSON queryDevice Request (Transactional API)
The following requests are actual calls to and responses from the PRiSMPro API. Sensitive data has been changed to fictional values to ensure confidentiality. The basic authentication string has also been changed to ***.
All calls made to the PRiSMPro API are made via HTTPS, but these requests and responses have been decrypted so that you can see exactly how the calls are made and the format of the responses.
POST https://PRiSMProAPI.koretelematics.com/4/TransactionalAPI.svc/json/queryDevice HTTP/1.1
Content-Type: application/json; charset=utf-8
Authorization: Basic ***
Host: PRiSMProAPI.koretelematics.com
Content-Length: 39
Expect: 100-continue
Connection: Keep-Alive
{"deviceNumber":"11111222223333344444"}
JSON queryDevice Response (Transactional API)
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
Set-Cookie: .SIDWebClientRoles=aIQ2YCv6Zcgl_YbTmVk8F066dZiF6yUDZA-dezNfQJkpBiBGJ7tuZPnxWRwTfL0meOypiAd335wI8b-1II9Uya2nNxR18CxFqB9UrGDxy5_xO8Ksu3P6sT6aAeZTXpQgfb8SRylciJcckWpf_php_A6NqrEdMveifcOoERYgZz-CzloHyUIkG-K-7wM9a5rgiaJqGmwwxI-cZkrGZd2a4CalRhX3FImlO0v2o4yk9TlDsNMZd4TYYnEEbfUCHlRl63M190slgCmUnnwJk2KHvxnpy1DDzv-qB9IUpPmJpApYTL91fdjnwd3j2Nh0yfBtsjn1N_KzDkjQ_xiZSy_npNYbZHKaoex5pAFpOTOkgLQ4pnCvhSzDANgzOkt9V4cwZa7rXXA0ewBwi9FAlddDIaAFyBJPznSOuM7Trv1raR0Hyat9Rw8SVK2auFPjTIkpRYxSu-ZbFoFCY-guOIPxurvnq-LKSTNaZ67-9vU1GEHx2zBJvkZh0Ga09eH8RaVkZE_nTDnshaitBYZIAWnyTN1IRoVbfo58cdn_5BYvx3hyS-OXsTQrc1gp12PByrmcEOGAS2BO87FzyM3QSufkuX30QX9AbSfGKNEsOSktou_XykNH0; path=/; HttpOnly
X-Powered-By: ASP.NET
Date: Thu, 10 Feb 2011 18:01:28 GMT
Content-Length: 1223
{"d":{"__type":"DeviceInformation:https:\/\/PRiSMProAPI.koretelematics.com\/types","requestStatus":0,"MSISDNOrMDN":"1234567890","IMSIOrMIN":"999888777666555","status":"Active","currentDataPlan":"PLAN000067: USG GPRS pay per use","currentSMSPlan":"PLAN000060: USG SMS pay per use","futureDataPlan":"PLAN000067: USG GPRS pay per use","futureSMSPlan":"PLAN000060: USG SMS pay per use","dailyDataThreshold":30,"dailySMSThreshold":2,"monthlyDataThreshold":null,"monthlySMSThreshold":null,"customField1":null,"customField2":null,"customField3":null,"customField4":null,"customField5":null,"customField6":null,"lstHistoryOverLastYear":[],"lstFeatures":["FEAT000601: USG Service - Data","FEAT000602: USG GPRS Enabled","FEAT000603: USG SMS MO\/MT"],"staticIP":"","voiceDispatchNumber":null,"mostRecentLocateId":111,"previousLocateId":110,"mostRecentLocateDate":"\/Date(1296916420000-0600)\/","mostRecentLatitude":35.598510833333336,"mostRecentLongitude":-108.25793444444444,"mostRecentAddress":"111 Any Street, Any Town, Any County, Any State, Any Country 12345","previousLocateDate":"\/Date(1296913780000-0600)\/","previousLatitude":35.598510833333336,"previousLongitude":-108.25793444444444,"previousAddress":null,"lstExtFeatures":[]}}
SOAP queryDevice Request (Transactional API)
POST https://PRiSMProAPI.koretelematics.com/4/TransactionalAPI.svc/soap HTTP/1.1
MIME-Version: 1.0
Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:af15f224-47a2-4f49-a456-c52c8c112ea8+id=1";start-info="text/xml"
SOAPAction: "https://PRiSMProAPI.koretelematics.com/contract/ITransactionalAPI/queryDevice"
Authorization: Basic ***
Host: PRiSMProAPI.koretelematics.com
Content-Length: 468
Expect: 100-continue
--uuid:af15f224-47a2-4f49-a456-c52c8c112ea8+id=1
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><queryDevice xmlns="https://PRiSMProAPI.koretelematics.com/contract"><deviceNumber>11111222223333344444</deviceNumber></queryDevice></s:Body></s:Envelope>
--uuid:af15f224-47a2-4f49-a456-c52c8c112ea8+id=1--
SOAP downloadSummaryFile Request (Reporting API)
POST https://PRiSMProAPI.koretelematics.com/4/ReportingAPI.svc/soap HTTP/1.1
MIME-Version: 1.0
Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:512f5a97-58f1-4924-beca-6d58dd5a9d87+id=3";start-info="text/xml"
SOAPAction: "https://PRiSMProAPI.koretelematics.com/contract/IReportingAPI/downloadSummaryFile"
Authorization: Basic ***
Host: PRiSMProAPI.koretelematics.com
Content-Length: 488
Expect: 100-continue
--uuid:512f5a97-58f1-4924-beca-6d58dd5a9d87+id=3
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><downloadSummaryFile xmlns="https://PRiSMProAPI.koretelematics.com/contract"><fileName>SummaryFiles-2008-01-1000000.zip</fileName></downloadSummaryFile></s:Body></s:Envelope>
--uuid:512f5a97-58f1-4924-beca-6d58dd5a9d87+id=3—
SOAP downloadSummaryFile Response (Reporting API)
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:5860230d-52bd-41a9-b848-b2cfe8901ea4+id=2";start-info="text/xml"
Server: Microsoft-IIS/7.0
MIME-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Thu, 10 Feb 2011 18:16:48 GMT
Content-Length: 52565
--uuid:5860230d-52bd-41a9-b848-b2cfe8901ea4+id=2
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><downloadSummaryFileResponse xmlns="https://PRiSMProAPI.koretelematics.com/contract"><downloadSummaryFileResult><xop:Include href="cid:http%3A%2F%2Ftempuri.org%2F1%2F634329370088395z
842" xmlns:xop="http://www.w3.org/2004/08/xop/include"/></downloadSummaryFileResult></downloadSummaryFileResponse></s:Body></s:Envelope>
--uuid:5860230d-52bd-41a9-b848-b2cfe8901ea4+id=2
Content-ID: <http://tempuri.org/1/634329370088395842>
Content-Transfer-Encoding: binary
Content-Type: application/octet-stream
... file data ...
--uuid:5860230d-52bd-41a9-b848-b2cfe8901ea4+id=2--