Skip to main content
Omnitracs Knowledge Base

Driver->UpdateCarrier

UpdateCarrier (Driver Function)

This function updates the Carrier Name of a driver to the newly specified Carrier Name. The new Carrier Name should exist in the database or else this call fails and throws an exception.

XML Request

   
<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>  
    <UpdateCarrier xmlns="http://www.qualcomm.com">  
      <updateCarrierRequest>  
        <DriverId>string</DriverId>  
        <CarrierName>string</CarrierName>  
      </updateCarrierRequest>  
    </UpdateCarrier>  
  </soap:Body>  
</soap:Envelope>  

XML Response

The return result contains the Boolean parameter <IsUpdated>, which indicates whether the update was successful (true) or not (false).

   
<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>  
    <UpdateCarrierResponse xmlns="http://www.qualcomm.com">  
      <UpdateCarrierResult>  
        <IsUpdated>boolean</IsUpdated>  
      </UpdateCarrierResult>  
    </UpdateCarrierResponse>  
  </soap:Body>  
</soap:Envelope>  
  • Was this article helpful?