Driver


Click here for a complete list of operations.

DriverOdometers

Returns beginning and ending odometers in tenths of miles for all drivers associated with the depot for the day specified (only logged-in time), excluding off-duty driving. Times returned are in depot-local time. Includes only tractors with MCP units.

Test

The test form is only available for requests from the local machine.

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 /QHOSWSNA/driver.asmx HTTP/1.1
Host: hosx.omnitracs.ca
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.omnitracs.com/DriverOdometers"

<?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>
    <DriverOdometers xmlns="http://www.omnitracs.com">
      <request>
        <Depot>int</Depot>
        <Date>dateTime</Date>
      </request>
    </DriverOdometers>
  </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>
    <DriverOdometersResponse xmlns="http://www.omnitracs.com">
      <DriverOdometersResult>
        <DriverCount>int</DriverCount>
        <TimeZone>string</TimeZone>
        <Drivers>
          <DriverOdometersDriverData>
            <DriverId>string</DriverId>
            <Tractors xsi:nil="true" />
          </DriverOdometersDriverData>
          <DriverOdometersDriverData>
            <DriverId>string</DriverId>
            <Tractors xsi:nil="true" />
          </DriverOdometersDriverData>
        </Drivers>
      </DriverOdometersResult>
    </DriverOdometersResponse>
  </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 /QHOSWSNA/driver.asmx HTTP/1.1
Host: hosx.omnitracs.ca
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>
    <DriverOdometers xmlns="http://www.omnitracs.com">
      <request>
        <Depot>int</Depot>
        <Date>dateTime</Date>
      </request>
    </DriverOdometers>
  </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>
    <DriverOdometersResponse xmlns="http://www.omnitracs.com">
      <DriverOdometersResult>
        <DriverCount>int</DriverCount>
        <TimeZone>string</TimeZone>
        <Drivers>
          <DriverOdometersDriverData>
            <DriverId>string</DriverId>
            <Tractors xsi:nil="true" />
          </DriverOdometersDriverData>
          <DriverOdometersDriverData>
            <DriverId>string</DriverId>
            <Tractors xsi:nil="true" />
          </DriverOdometersDriverData>
        </Drivers>
      </DriverOdometersResult>
    </DriverOdometersResponse>
  </soap12:Body>
</soap12:Envelope>