CargoService


Click here for a complete list of operations.

UpdateCargo

Allow add new cargo or update existing cargo

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

<?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>
    <UpdateCargo xmlns="http://dev.cargogeo.com/">
      <cargo>
        <Id>int</Id>
        <DateFrom>dateTime</DateFrom>
        <DateTo>dateTime</DateTo>
        <CargoName>string</CargoName>
        <PackageDefinition>string</PackageDefinition>
        <AllowUpperLoad>boolean</AllowUpperLoad>
        <AllowSideLoad>boolean</AllowSideLoad>
        <AllowBackLoad>boolean</AllowBackLoad>
        <CanAddLoading>boolean</CanAddLoading>
        <AllowUpperUpLoad>boolean</AllowUpperUpLoad>
        <AllowSideUpLoad>boolean</AllowSideUpLoad>
        <AllowBackUpLoad>boolean</AllowBackUpLoad>
        <Quantity>float</Quantity>
        <Volume>float</Volume>
        <NumberOfTrucks>int</NumberOfTrucks>
        <CargoSizes>string</CargoSizes>
        <Price>decimal</Price>
        <IsPricePerKm>boolean</IsPricePerKm>
        <IsPriceWithVAT>boolean</IsPriceWithVAT>
        <IdCurrency>string</IdCurrency>
        <FromAddress>string</FromAddress>
        <IdFromCountry>string</IdFromCountry>
        <IdFromCity>int</IdFromCity>
        <FromGeoPoint>
          <Lat>float</Lat>
          <Lon>float</Lon>
          <Description>string</Description>
        </FromGeoPoint>
        <ToAddress>string</ToAddress>
        <IdToCountry>string</IdToCountry>
        <IdToCity>int</IdToCity>
        <ToGeoPoint>
          <Lat>float</Lat>
          <Lon>float</Lon>
          <Description>string</Description>
        </ToGeoPoint>
        <IsRoundtrip>boolean</IsRoundtrip>
        <TIR>boolean</TIR>
        <T1>boolean</T1>
        <ADR>unsignedByte</ADR>
        <IdSourceSystem>short</IdSourceSystem>
        <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>
        <ExternalId>long</ExternalId>
        <ExternalFirmId>long</ExternalFirmId>
        <ExternalFirmAddId>long</ExternalFirmAddId>
        <Distance>decimal</Distance>
        <Description>string</Description>
        <Route>
          <LatLon>
            <Lat>float</Lat>
            <Lon>float</Lon>
            <Description>string</Description>
          </LatLon>
          <LatLon>
            <Lat>float</Lat>
            <Lon>float</Lon>
            <Description>string</Description>
          </LatLon>
        </Route>
        <AddPoints>
          <CargoAddPointData>
            <Id>long</Id>
            <Sequence>short</Sequence>
            <IdSourceCargo>long</IdSourceCargo>
            <CargoName>string</CargoName>
            <Quantity>float</Quantity>
            <Volume>float</Volume>
            <UnloadQuantity>float</UnloadQuantity>
            <UnloadVolume>float</UnloadVolume>
            <Address>string</Address>
            <IdCity>long</IdCity>
            <IdCountry>string</IdCountry>
            <GeoPoint xsi:nil="true" />
            <Description>string</Description>
          </CargoAddPointData>
          <CargoAddPointData>
            <Id>long</Id>
            <Sequence>short</Sequence>
            <IdSourceCargo>long</IdSourceCargo>
            <CargoName>string</CargoName>
            <Quantity>float</Quantity>
            <Volume>float</Volume>
            <UnloadQuantity>float</UnloadQuantity>
            <UnloadVolume>float</UnloadVolume>
            <Address>string</Address>
            <IdCity>long</IdCity>
            <IdCountry>string</IdCountry>
            <GeoPoint xsi:nil="true" />
            <Description>string</Description>
          </CargoAddPointData>
        </AddPoints>
        <CargoTruckTypes>
          <short>short</short>
          <short>short</short>
        </CargoTruckTypes>
        <InformICQ>boolean</InformICQ>
        <InformSMS>boolean</InformSMS>
        <InformSkype>boolean</InformSkype>
        <InformEMail>boolean</InformEMail>
        <IdParentCargo>int</IdParentCargo>
        <ParentCargoAsString>string</ParentCargoAsString>
        <IsCargoOwner>boolean</IsCargoOwner>
        <SourceKeys>
          <SourceKey>
            <IdSourceSystem>short</IdSourceSystem>
            <Key>string</Key>
            <IsNativeKey>boolean</IsNativeKey>
          </SourceKey>
          <SourceKey>
            <IdSourceSystem>short</IdSourceSystem>
            <Key>string</Key>
            <IsNativeKey>boolean</IsNativeKey>
          </SourceKey>
        </SourceKeys>
        <ExternalRequests>
          <ExternalRequest>
            <ExternalId>long</ExternalId>
            <IdSourceSystem>short</IdSourceSystem>
            <ElevationPeriod>unsignedByte</ElevationPeriod>
            <CreateDate>dateTime</CreateDate>
            <ChangeDate>dateTime</ChangeDate>
          </ExternalRequest>
          <ExternalRequest>
            <ExternalId>long</ExternalId>
            <IdSourceSystem>short</IdSourceSystem>
            <ElevationPeriod>unsignedByte</ElevationPeriod>
            <CreateDate>dateTime</CreateDate>
            <ChangeDate>dateTime</ChangeDate>
          </ExternalRequest>
        </ExternalRequests>
        <IsPremium>boolean</IsPremium>
      </cargo>
    </UpdateCargo>
  </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>
    <UpdateCargoResponse xmlns="http://dev.cargogeo.com/">
      <UpdateCargoResult>int</UpdateCargoResult>
    </UpdateCargoResponse>
  </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 /CargoService.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>
    <UpdateCargo xmlns="http://dev.cargogeo.com/">
      <cargo>
        <Id>int</Id>
        <DateFrom>dateTime</DateFrom>
        <DateTo>dateTime</DateTo>
        <CargoName>string</CargoName>
        <PackageDefinition>string</PackageDefinition>
        <AllowUpperLoad>boolean</AllowUpperLoad>
        <AllowSideLoad>boolean</AllowSideLoad>
        <AllowBackLoad>boolean</AllowBackLoad>
        <CanAddLoading>boolean</CanAddLoading>
        <AllowUpperUpLoad>boolean</AllowUpperUpLoad>
        <AllowSideUpLoad>boolean</AllowSideUpLoad>
        <AllowBackUpLoad>boolean</AllowBackUpLoad>
        <Quantity>float</Quantity>
        <Volume>float</Volume>
        <NumberOfTrucks>int</NumberOfTrucks>
        <CargoSizes>string</CargoSizes>
        <Price>decimal</Price>
        <IsPricePerKm>boolean</IsPricePerKm>
        <IsPriceWithVAT>boolean</IsPriceWithVAT>
        <IdCurrency>string</IdCurrency>
        <FromAddress>string</FromAddress>
        <IdFromCountry>string</IdFromCountry>
        <IdFromCity>int</IdFromCity>
        <FromGeoPoint>
          <Lat>float</Lat>
          <Lon>float</Lon>
          <Description>string</Description>
        </FromGeoPoint>
        <ToAddress>string</ToAddress>
        <IdToCountry>string</IdToCountry>
        <IdToCity>int</IdToCity>
        <ToGeoPoint>
          <Lat>float</Lat>
          <Lon>float</Lon>
          <Description>string</Description>
        </ToGeoPoint>
        <IsRoundtrip>boolean</IsRoundtrip>
        <TIR>boolean</TIR>
        <T1>boolean</T1>
        <ADR>unsignedByte</ADR>
        <IdSourceSystem>short</IdSourceSystem>
        <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>
        <ExternalId>long</ExternalId>
        <ExternalFirmId>long</ExternalFirmId>
        <ExternalFirmAddId>long</ExternalFirmAddId>
        <Distance>decimal</Distance>
        <Description>string</Description>
        <Route>
          <LatLon>
            <Lat>float</Lat>
            <Lon>float</Lon>
            <Description>string</Description>
          </LatLon>
          <LatLon>
            <Lat>float</Lat>
            <Lon>float</Lon>
            <Description>string</Description>
          </LatLon>
        </Route>
        <AddPoints>
          <CargoAddPointData>
            <Id>long</Id>
            <Sequence>short</Sequence>
            <IdSourceCargo>long</IdSourceCargo>
            <CargoName>string</CargoName>
            <Quantity>float</Quantity>
            <Volume>float</Volume>
            <UnloadQuantity>float</UnloadQuantity>
            <UnloadVolume>float</UnloadVolume>
            <Address>string</Address>
            <IdCity>long</IdCity>
            <IdCountry>string</IdCountry>
            <GeoPoint xsi:nil="true" />
            <Description>string</Description>
          </CargoAddPointData>
          <CargoAddPointData>
            <Id>long</Id>
            <Sequence>short</Sequence>
            <IdSourceCargo>long</IdSourceCargo>
            <CargoName>string</CargoName>
            <Quantity>float</Quantity>
            <Volume>float</Volume>
            <UnloadQuantity>float</UnloadQuantity>
            <UnloadVolume>float</UnloadVolume>
            <Address>string</Address>
            <IdCity>long</IdCity>
            <IdCountry>string</IdCountry>
            <GeoPoint xsi:nil="true" />
            <Description>string</Description>
          </CargoAddPointData>
        </AddPoints>
        <CargoTruckTypes>
          <short>short</short>
          <short>short</short>
        </CargoTruckTypes>
        <InformICQ>boolean</InformICQ>
        <InformSMS>boolean</InformSMS>
        <InformSkype>boolean</InformSkype>
        <InformEMail>boolean</InformEMail>
        <IdParentCargo>int</IdParentCargo>
        <ParentCargoAsString>string</ParentCargoAsString>
        <IsCargoOwner>boolean</IsCargoOwner>
        <SourceKeys>
          <SourceKey>
            <IdSourceSystem>short</IdSourceSystem>
            <Key>string</Key>
            <IsNativeKey>boolean</IsNativeKey>
          </SourceKey>
          <SourceKey>
            <IdSourceSystem>short</IdSourceSystem>
            <Key>string</Key>
            <IsNativeKey>boolean</IsNativeKey>
          </SourceKey>
        </SourceKeys>
        <ExternalRequests>
          <ExternalRequest>
            <ExternalId>long</ExternalId>
            <IdSourceSystem>short</IdSourceSystem>
            <ElevationPeriod>unsignedByte</ElevationPeriod>
            <CreateDate>dateTime</CreateDate>
            <ChangeDate>dateTime</ChangeDate>
          </ExternalRequest>
          <ExternalRequest>
            <ExternalId>long</ExternalId>
            <IdSourceSystem>short</IdSourceSystem>
            <ElevationPeriod>unsignedByte</ElevationPeriod>
            <CreateDate>dateTime</CreateDate>
            <ChangeDate>dateTime</ChangeDate>
          </ExternalRequest>
        </ExternalRequests>
        <IsPremium>boolean</IsPremium>
      </cargo>
    </UpdateCargo>
  </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>
    <UpdateCargoResponse xmlns="http://dev.cargogeo.com/">
      <UpdateCargoResult>int</UpdateCargoResult>
    </UpdateCargoResponse>
  </soap12:Body>
</soap12:Envelope>