CapturedFuelWS


Click here for a complete list of operations.

GetCapturedFuelByID

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 /WebServices/CapturedFuelWebSvc/CapturedFuelWS.asmx HTTP/1.1
Host: mixmobile.mixtelematics.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://mixtelematics.com/WebServices/CapturedFuel/GetCapturedFuelByID"

<?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:Header>
    <TokenHeader xmlns="http://mixtelematics.com/WebServices/CapturedFuel">
      <Token>string</Token>
    </TokenHeader>
  </soap:Header>
  <soap:Body>
    <GetCapturedFuelByID xmlns="http://mixtelematics.com/WebServices/CapturedFuel">
      <FromID>int</FromID>
      <ToID>int</ToID>
    </GetCapturedFuelByID>
  </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>
    <GetCapturedFuelByIDResponse xmlns="http://mixtelematics.com/WebServices/CapturedFuel">
      <GetCapturedFuelByIDResult>
        <FuelTransaction>
          <VehicleID>short</VehicleID>
          <Date>dateTime</Date>
          <Odometer>float</Odometer>
          <EngineSeconds>int</EngineSeconds>
          <Litres>float</Litres>
          <Currency>string</Currency>
          <Cost>float</Cost>
          <BaseCurrency>string</BaseCurrency>
          <BaseCost>float</BaseCost>
        </FuelTransaction>
        <FuelTransaction>
          <VehicleID>short</VehicleID>
          <Date>dateTime</Date>
          <Odometer>float</Odometer>
          <EngineSeconds>int</EngineSeconds>
          <Litres>float</Litres>
          <Currency>string</Currency>
          <Cost>float</Cost>
          <BaseCurrency>string</BaseCurrency>
          <BaseCost>float</BaseCost>
        </FuelTransaction>
      </GetCapturedFuelByIDResult>
    </GetCapturedFuelByIDResponse>
  </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/CapturedFuelWebSvc/CapturedFuelWS.asmx HTTP/1.1
Host: mixmobile.mixtelematics.com
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:Header>
    <TokenHeader xmlns="http://mixtelematics.com/WebServices/CapturedFuel">
      <Token>string</Token>
    </TokenHeader>
  </soap12:Header>
  <soap12:Body>
    <GetCapturedFuelByID xmlns="http://mixtelematics.com/WebServices/CapturedFuel">
      <FromID>int</FromID>
      <ToID>int</ToID>
    </GetCapturedFuelByID>
  </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>
    <GetCapturedFuelByIDResponse xmlns="http://mixtelematics.com/WebServices/CapturedFuel">
      <GetCapturedFuelByIDResult>
        <FuelTransaction>
          <VehicleID>short</VehicleID>
          <Date>dateTime</Date>
          <Odometer>float</Odometer>
          <EngineSeconds>int</EngineSeconds>
          <Litres>float</Litres>
          <Currency>string</Currency>
          <Cost>float</Cost>
          <BaseCurrency>string</BaseCurrency>
          <BaseCost>float</BaseCost>
        </FuelTransaction>
        <FuelTransaction>
          <VehicleID>short</VehicleID>
          <Date>dateTime</Date>
          <Odometer>float</Odometer>
          <EngineSeconds>int</EngineSeconds>
          <Litres>float</Litres>
          <Currency>string</Currency>
          <Cost>float</Cost>
          <BaseCurrency>string</BaseCurrency>
          <BaseCost>float</BaseCost>
        </FuelTransaction>
      </GetCapturedFuelByIDResult>
    </GetCapturedFuelByIDResponse>
  </soap12:Body>
</soap12:Envelope>