TruckService


Click here for a complete list of operations.

UpdateTrucks

Добавляет или изменяет группу машин с проверкой прав доступа

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 /TruckService.asmx HTTP/1.1
Host: dev.cargogeo.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://dev.cargogeo.com/UpdateTrucks"

<?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>
    <UpdateTrucks xmlns="http://dev.cargogeo.com/">
      <trucks>
        <TruckData>
          <IdCurrency>string</IdCurrency>
          <IsCash>boolean</IsCash>
          <PricePerKm>decimal</PricePerKm>
          <IsPriceWithVAT>boolean</IsPriceWithVAT>
          <EnableFreeMode>boolean</EnableFreeMode>
          <Id>int</Id>
          <DateFrom>dateTime</DateFrom>
          <DateTo>dateTime</DateTo>
          <IdCompanyProfile>int</IdCompanyProfile>
          <AllowPassingBoards>boolean</AllowPassingBoards>
          <IdTruckType>short</IdTruckType>
          <IdTruckView>unsignedByte</IdTruckView>
          <CanAddLoading>boolean</CanAddLoading>
          <MainSizes>string</MainSizes>
          <AddSizes>string</AddSizes>
          <AllowUpperLoad>boolean</AllowUpperLoad>
          <AllowBackLoad>boolean</AllowBackLoad>
          <AllowSideLoad>boolean</AllowSideLoad>
          <MinQuantity>float</MinQuantity>
          <MaxQuantity>float</MaxQuantity>
          <MinVolume>float</MinVolume>
          <MaxVolume>float</MaxVolume>
          <FromAddress>string</FromAddress>
          <IdFromCountry>string</IdFromCountry>
          <IdFromCity>int</IdFromCity>
          <FromRadius>float</FromRadius>
          <FromGeoPoint>
            <Lat>float</Lat>
            <Lon>float</Lon>
          </FromGeoPoint>
          <TruckDirections>
            <TruckDirectionInfo xsi:nil="true" />
            <TruckDirectionInfo xsi:nil="true" />
          </TruckDirections>
          <MaxRadius>float</MaxRadius>
          <TIR>boolean</TIR>
          <EKMT>boolean</EKMT>
          <ADR>unsignedByte</ADR>
          <IdSourceSystem>short</IdSourceSystem>
          <ExternalId>long</ExternalId>
          <ExternalFirmId>long</ExternalFirmId>
          <ExternalFirmAddId>long</ExternalFirmAddId>
          <Company>string</Company>
          <Contact>string</Contact>
          <Phone>string</Phone>
          <MobilePhone>string</MobilePhone>
          <ICQ>long</ICQ>
          <Skype>string</Skype>
          <EMail>string</EMail>
          <Rating>decimal</Rating>
          <GoodRefsCount>int</GoodRefsCount>
          <BadRefsCount>int</BadRefsCount>
          <ContextPrice>decimal</ContextPrice>
          <IsAnonymous>boolean</IsAnonymous>
          <AnonymousID>guid</AnonymousID>
          <CreateDate>dateTime</CreateDate>
          <ChangeDate>dateTime</ChangeDate>
          <Description>string</Description>
          <InformICQ>boolean</InformICQ>
          <InformSkype>boolean</InformSkype>
          <InformSMS>boolean</InformSMS>
          <InformEMail>boolean</InformEMail>
          <IsTruckOwner>boolean</IsTruckOwner>
          <SourceKeys>
            <SourceKey xsi:nil="true" />
            <SourceKey xsi:nil="true" />
          </SourceKeys>
          <IdParentTruck>int</IdParentTruck>
          <ParentTruckAsString>string</ParentTruckAsString>
          <IsPremium>boolean</IsPremium>
        </TruckData>
        <TruckData>
          <IdCurrency>string</IdCurrency>
          <IsCash>boolean</IsCash>
          <PricePerKm>decimal</PricePerKm>
          <IsPriceWithVAT>boolean</IsPriceWithVAT>
          <EnableFreeMode>boolean</EnableFreeMode>
          <Id>int</Id>
          <DateFrom>dateTime</DateFrom>
          <DateTo>dateTime</DateTo>
          <IdCompanyProfile>int</IdCompanyProfile>
          <AllowPassingBoards>boolean</AllowPassingBoards>
          <IdTruckType>short</IdTruckType>
          <IdTruckView>unsignedByte</IdTruckView>
          <CanAddLoading>boolean</CanAddLoading>
          <MainSizes>string</MainSizes>
          <AddSizes>string</AddSizes>
          <AllowUpperLoad>boolean</AllowUpperLoad>
          <AllowBackLoad>boolean</AllowBackLoad>
          <AllowSideLoad>boolean</AllowSideLoad>
          <MinQuantity>float</MinQuantity>
          <MaxQuantity>float</MaxQuantity>
          <MinVolume>float</MinVolume>
          <MaxVolume>float</MaxVolume>
          <FromAddress>string</FromAddress>
          <IdFromCountry>string</IdFromCountry>
          <IdFromCity>int</IdFromCity>
          <FromRadius>float</FromRadius>
          <FromGeoPoint>
            <Lat>float</Lat>
            <Lon>float</Lon>
          </FromGeoPoint>
          <TruckDirections>
            <TruckDirectionInfo xsi:nil="true" />
            <TruckDirectionInfo xsi:nil="true" />
          </TruckDirections>
          <MaxRadius>float</MaxRadius>
          <TIR>boolean</TIR>
          <EKMT>boolean</EKMT>
          <ADR>unsignedByte</ADR>
          <IdSourceSystem>short</IdSourceSystem>
          <ExternalId>long</ExternalId>
          <ExternalFirmId>long</ExternalFirmId>
          <ExternalFirmAddId>long</ExternalFirmAddId>
          <Company>string</Company>
          <Contact>string</Contact>
          <Phone>string</Phone>
          <MobilePhone>string</MobilePhone>
          <ICQ>long</ICQ>
          <Skype>string</Skype>
          <EMail>string</EMail>
          <Rating>decimal</Rating>
          <GoodRefsCount>int</GoodRefsCount>
          <BadRefsCount>int</BadRefsCount>
          <ContextPrice>decimal</ContextPrice>
          <IsAnonymous>boolean</IsAnonymous>
          <AnonymousID>guid</AnonymousID>
          <CreateDate>dateTime</CreateDate>
          <ChangeDate>dateTime</ChangeDate>
          <Description>string</Description>
          <InformICQ>boolean</InformICQ>
          <InformSkype>boolean</InformSkype>
          <InformSMS>boolean</InformSMS>
          <InformEMail>boolean</InformEMail>
          <IsTruckOwner>boolean</IsTruckOwner>
          <SourceKeys>
            <SourceKey xsi:nil="true" />
            <SourceKey xsi:nil="true" />
          </SourceKeys>
          <IdParentTruck>int</IdParentTruck>
          <ParentTruckAsString>string</ParentTruckAsString>
          <IsPremium>boolean</IsPremium>
        </TruckData>
      </trucks>
    </UpdateTrucks>
  </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>
    <UpdateTrucksResponse xmlns="http://dev.cargogeo.com/">
      <UpdateTrucksResult>
        <string>string</string>
        <string>string</string>
      </UpdateTrucksResult>
    </UpdateTrucksResponse>
  </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 /TruckService.asmx HTTP/1.1
Host: dev.cargogeo.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:Body>
    <UpdateTrucks xmlns="http://dev.cargogeo.com/">
      <trucks>
        <TruckData>
          <IdCurrency>string</IdCurrency>
          <IsCash>boolean</IsCash>
          <PricePerKm>decimal</PricePerKm>
          <IsPriceWithVAT>boolean</IsPriceWithVAT>
          <EnableFreeMode>boolean</EnableFreeMode>
          <Id>int</Id>
          <DateFrom>dateTime</DateFrom>
          <DateTo>dateTime</DateTo>
          <IdCompanyProfile>int</IdCompanyProfile>
          <AllowPassingBoards>boolean</AllowPassingBoards>
          <IdTruckType>short</IdTruckType>
          <IdTruckView>unsignedByte</IdTruckView>
          <CanAddLoading>boolean</CanAddLoading>
          <MainSizes>string</MainSizes>
          <AddSizes>string</AddSizes>
          <AllowUpperLoad>boolean</AllowUpperLoad>
          <AllowBackLoad>boolean</AllowBackLoad>
          <AllowSideLoad>boolean</AllowSideLoad>
          <MinQuantity>float</MinQuantity>
          <MaxQuantity>float</MaxQuantity>
          <MinVolume>float</MinVolume>
          <MaxVolume>float</MaxVolume>
          <FromAddress>string</FromAddress>
          <IdFromCountry>string</IdFromCountry>
          <IdFromCity>int</IdFromCity>
          <FromRadius>float</FromRadius>
          <FromGeoPoint>
            <Lat>float</Lat>
            <Lon>float</Lon>
          </FromGeoPoint>
          <TruckDirections>
            <TruckDirectionInfo xsi:nil="true" />
            <TruckDirectionInfo xsi:nil="true" />
          </TruckDirections>
          <MaxRadius>float</MaxRadius>
          <TIR>boolean</TIR>
          <EKMT>boolean</EKMT>
          <ADR>unsignedByte</ADR>
          <IdSourceSystem>short</IdSourceSystem>
          <ExternalId>long</ExternalId>
          <ExternalFirmId>long</ExternalFirmId>
          <ExternalFirmAddId>long</ExternalFirmAddId>
          <Company>string</Company>
          <Contact>string</Contact>
          <Phone>string</Phone>
          <MobilePhone>string</MobilePhone>
          <ICQ>long</ICQ>
          <Skype>string</Skype>
          <EMail>string</EMail>
          <Rating>decimal</Rating>
          <GoodRefsCount>int</GoodRefsCount>
          <BadRefsCount>int</BadRefsCount>
          <ContextPrice>decimal</ContextPrice>
          <IsAnonymous>boolean</IsAnonymous>
          <AnonymousID>guid</AnonymousID>
          <CreateDate>dateTime</CreateDate>
          <ChangeDate>dateTime</ChangeDate>
          <Description>string</Description>
          <InformICQ>boolean</InformICQ>
          <InformSkype>boolean</InformSkype>
          <InformSMS>boolean</InformSMS>
          <InformEMail>boolean</InformEMail>
          <IsTruckOwner>boolean</IsTruckOwner>
          <SourceKeys>
            <SourceKey xsi:nil="true" />
            <SourceKey xsi:nil="true" />
          </SourceKeys>
          <IdParentTruck>int</IdParentTruck>
          <ParentTruckAsString>string</ParentTruckAsString>
          <IsPremium>boolean</IsPremium>
        </TruckData>
        <TruckData>
          <IdCurrency>string</IdCurrency>
          <IsCash>boolean</IsCash>
          <PricePerKm>decimal</PricePerKm>
          <IsPriceWithVAT>boolean</IsPriceWithVAT>
          <EnableFreeMode>boolean</EnableFreeMode>
          <Id>int</Id>
          <DateFrom>dateTime</DateFrom>
          <DateTo>dateTime</DateTo>
          <IdCompanyProfile>int</IdCompanyProfile>
          <AllowPassingBoards>boolean</AllowPassingBoards>
          <IdTruckType>short</IdTruckType>
          <IdTruckView>unsignedByte</IdTruckView>
          <CanAddLoading>boolean</CanAddLoading>
          <MainSizes>string</MainSizes>
          <AddSizes>string</AddSizes>
          <AllowUpperLoad>boolean</AllowUpperLoad>
          <AllowBackLoad>boolean</AllowBackLoad>
          <AllowSideLoad>boolean</AllowSideLoad>
          <MinQuantity>float</MinQuantity>
          <MaxQuantity>float</MaxQuantity>
          <MinVolume>float</MinVolume>
          <MaxVolume>float</MaxVolume>
          <FromAddress>string</FromAddress>
          <IdFromCountry>string</IdFromCountry>
          <IdFromCity>int</IdFromCity>
          <FromRadius>float</FromRadius>
          <FromGeoPoint>
            <Lat>float</Lat>
            <Lon>float</Lon>
          </FromGeoPoint>
          <TruckDirections>
            <TruckDirectionInfo xsi:nil="true" />
            <TruckDirectionInfo xsi:nil="true" />
          </TruckDirections>
          <MaxRadius>float</MaxRadius>
          <TIR>boolean</TIR>
          <EKMT>boolean</EKMT>
          <ADR>unsignedByte</ADR>
          <IdSourceSystem>short</IdSourceSystem>
          <ExternalId>long</ExternalId>
          <ExternalFirmId>long</ExternalFirmId>
          <ExternalFirmAddId>long</ExternalFirmAddId>
          <Company>string</Company>
          <Contact>string</Contact>
          <Phone>string</Phone>
          <MobilePhone>string</MobilePhone>
          <ICQ>long</ICQ>
          <Skype>string</Skype>
          <EMail>string</EMail>
          <Rating>decimal</Rating>
          <GoodRefsCount>int</GoodRefsCount>
          <BadRefsCount>int</BadRefsCount>
          <ContextPrice>decimal</ContextPrice>
          <IsAnonymous>boolean</IsAnonymous>
          <AnonymousID>guid</AnonymousID>
          <CreateDate>dateTime</CreateDate>
          <ChangeDate>dateTime</ChangeDate>
          <Description>string</Description>
          <InformICQ>boolean</InformICQ>
          <InformSkype>boolean</InformSkype>
          <InformSMS>boolean</InformSMS>
          <InformEMail>boolean</InformEMail>
          <IsTruckOwner>boolean</IsTruckOwner>
          <SourceKeys>
            <SourceKey xsi:nil="true" />
            <SourceKey xsi:nil="true" />
          </SourceKeys>
          <IdParentTruck>int</IdParentTruck>
          <ParentTruckAsString>string</ParentTruckAsString>
          <IsPremium>boolean</IsPremium>
        </TruckData>
      </trucks>
    </UpdateTrucks>
  </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>
    <UpdateTrucksResponse xmlns="http://dev.cargogeo.com/">
      <UpdateTrucksResult>
        <string>string</string>
        <string>string</string>
      </UpdateTrucksResult>
    </UpdateTrucksResponse>
  </soap12:Body>
</soap12:Envelope>