TruckService


Click here for a complete list of operations.

GetTruckByTemplate

Получает шаблон данных для редактирования машины по идентификатору машины шаблона, подставляя при необходимости наиболее вероятные контактные данные указанного пользователя

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/GetTruckByTemplate"

<?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>
    <GetTruckByTemplate xmlns="http://dev.cargogeo.com/">
      <IdTempalte>int</IdTempalte>
      <IsTemplate>boolean</IsTemplate>
      <IdUser>guid</IdUser>
    </GetTruckByTemplate>
  </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>
    <GetTruckByTemplateResponse xmlns="http://dev.cargogeo.com/">
      <GetTruckByTemplateResult>
        <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>
            <IsPricePerKm>boolean</IsPricePerKm>
            <Id>int</Id>
            <FromRadius>float</FromRadius>
            <Address>string</Address>
            <IdCountry>string</IdCountry>
            <IdCity>int</IdCity>
            <RegionName>string</RegionName>
            <DistrictName>string</DistrictName>
            <GeoPoint xsi:nil="true" />
            <Price>decimal</Price>
            <EnableAutoPassage>boolean</EnableAutoPassage>
            <PassageWidth>float</PassageWidth>
            <PassagePolygonText>string</PassagePolygonText>
            <Radius>float</Radius>
            <MinDistance>float</MinDistance>
            <PolygonText>string</PolygonText>
            <Description>string</Description>
          </TruckDirectionInfo>
          <TruckDirectionInfo>
            <IsPricePerKm>boolean</IsPricePerKm>
            <Id>int</Id>
            <FromRadius>float</FromRadius>
            <Address>string</Address>
            <IdCountry>string</IdCountry>
            <IdCity>int</IdCity>
            <RegionName>string</RegionName>
            <DistrictName>string</DistrictName>
            <GeoPoint xsi:nil="true" />
            <Price>decimal</Price>
            <EnableAutoPassage>boolean</EnableAutoPassage>
            <PassageWidth>float</PassageWidth>
            <PassagePolygonText>string</PassagePolygonText>
            <Radius>float</Radius>
            <MinDistance>float</MinDistance>
            <PolygonText>string</PolygonText>
            <Description>string</Description>
          </TruckDirectionInfo>
        </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>
            <IdSourceSystem>short</IdSourceSystem>
            <Key>string</Key>
            <IsNativeKey>boolean</IsNativeKey>
          </SourceKey>
          <SourceKey>
            <IdSourceSystem>short</IdSourceSystem>
            <Key>string</Key>
            <IsNativeKey>boolean</IsNativeKey>
          </SourceKey>
        </SourceKeys>
        <IdParentTruck>int</IdParentTruck>
        <ParentTruckAsString>string</ParentTruckAsString>
        <IsPremium>boolean</IsPremium>
      </GetTruckByTemplateResult>
    </GetTruckByTemplateResponse>
  </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>
    <GetTruckByTemplate xmlns="http://dev.cargogeo.com/">
      <IdTempalte>int</IdTempalte>
      <IsTemplate>boolean</IsTemplate>
      <IdUser>guid</IdUser>
    </GetTruckByTemplate>
  </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>
    <GetTruckByTemplateResponse xmlns="http://dev.cargogeo.com/">
      <GetTruckByTemplateResult>
        <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>
            <IsPricePerKm>boolean</IsPricePerKm>
            <Id>int</Id>
            <FromRadius>float</FromRadius>
            <Address>string</Address>
            <IdCountry>string</IdCountry>
            <IdCity>int</IdCity>
            <RegionName>string</RegionName>
            <DistrictName>string</DistrictName>
            <GeoPoint xsi:nil="true" />
            <Price>decimal</Price>
            <EnableAutoPassage>boolean</EnableAutoPassage>
            <PassageWidth>float</PassageWidth>
            <PassagePolygonText>string</PassagePolygonText>
            <Radius>float</Radius>
            <MinDistance>float</MinDistance>
            <PolygonText>string</PolygonText>
            <Description>string</Description>
          </TruckDirectionInfo>
          <TruckDirectionInfo>
            <IsPricePerKm>boolean</IsPricePerKm>
            <Id>int</Id>
            <FromRadius>float</FromRadius>
            <Address>string</Address>
            <IdCountry>string</IdCountry>
            <IdCity>int</IdCity>
            <RegionName>string</RegionName>
            <DistrictName>string</DistrictName>
            <GeoPoint xsi:nil="true" />
            <Price>decimal</Price>
            <EnableAutoPassage>boolean</EnableAutoPassage>
            <PassageWidth>float</PassageWidth>
            <PassagePolygonText>string</PassagePolygonText>
            <Radius>float</Radius>
            <MinDistance>float</MinDistance>
            <PolygonText>string</PolygonText>
            <Description>string</Description>
          </TruckDirectionInfo>
        </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>
            <IdSourceSystem>short</IdSourceSystem>
            <Key>string</Key>
            <IsNativeKey>boolean</IsNativeKey>
          </SourceKey>
          <SourceKey>
            <IdSourceSystem>short</IdSourceSystem>
            <Key>string</Key>
            <IsNativeKey>boolean</IsNativeKey>
          </SourceKey>
        </SourceKeys>
        <IdParentTruck>int</IdParentTruck>
        <ParentTruckAsString>string</ParentTruckAsString>
        <IsPremium>boolean</IsPremium>
      </GetTruckByTemplateResult>
    </GetTruckByTemplateResponse>
  </soap12:Body>
</soap12:Envelope>