GetTripsByQuery

This function is used to fetch trips.

Tags: GetTripsByQuery, GetTripsQuery, GetTripsByQueryResponse, GetTripsResult, TripInfo, TripHeader

Request XML

POST /xxx/Service.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/WSI/GetTripsByQuery"

<?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>
    <GetTripsByQuery xmlns="http://ongoingsystems.se/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <TripsQuery>
        <TripIdsToGet>
          <int>int</int>
          <int>int</int>
        </TripIdsToGet>
      </TripsQuery>
    </GetTripsByQuery>
  </soap:Body>
</soap:Envelope>

Request specification

GetTripsByQuery
GoodsOwnerCode string(400) Req. The name/code of your client
UserName string(50) Req. Your username
Password string(50) Req. Your password
TripsQuery GetTripsQuery Req.
GetTripsQuery
TripIdsToGet int[]

Response XML

<?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>
    <GetTripsByQueryResponse xmlns="http://ongoingsystems.se/WSI">
      <GetTripsByQueryResult>
        <Success>boolean</Success>
        <Message>string</Message>
        <Trips>
          <TripInfo>
            <TripHeader>
              <TripId>int</TripId>
              <TripName>string</TripName>
              <TripNumber>string</TripNumber>
              <TripCode>string</TripCode>
              <TripOrderNumber>string</TripOrderNumber>
              <VehicleRegistrationNumber>string</VehicleRegistrationNumber>
              <VehicleCode>string</VehicleCode>
              <RegistrationNumber>string</RegistrationNumber>
              <ExternalSystemId>int</ExternalSystemId>
              <StartTime>dateTime</StartTime>
              <TripFreeDecimal1>decimal</TripFreeDecimal1>
              <TripWayBill>string</TripWayBill>
              <RouteCode>string</RouteCode>
              <GoodsOwnerName>string</GoodsOwnerName>
              <GoodsOwnerId>int</GoodsOwnerId>
            </TripHeader>
          </TripInfo>
          <TripInfo>
            <TripHeader>
              <TripId>int</TripId>
              <TripName>string</TripName>
              <TripNumber>string</TripNumber>
              <TripCode>string</TripCode>
              <TripOrderNumber>string</TripOrderNumber>
              <VehicleRegistrationNumber>string</VehicleRegistrationNumber>
              <VehicleCode>string</VehicleCode>
              <RegistrationNumber>string</RegistrationNumber>
              <ExternalSystemId>int</ExternalSystemId>
              <StartTime>dateTime</StartTime>
              <TripFreeDecimal1>decimal</TripFreeDecimal1>
              <TripWayBill>string</TripWayBill>
              <RouteCode>string</RouteCode>
              <GoodsOwnerName>string</GoodsOwnerName>
              <GoodsOwnerId>int</GoodsOwnerId>
            </TripHeader>
          </TripInfo>
        </Trips>
      </GetTripsByQueryResult>
    </GetTripsByQueryResponse>
  </soap:Body>
</soap:Envelope>

Response specification

GetTripsByQueryResponse
GetTripsByQueryResult GetTripsResult
GetTripsResult
Success boolean
Message string
Trips TripInfo[]
TripInfo
TripHeader TripHeader An element of type TripHeader.
TripHeader
TripId int
TripName string
TripNumber string
TripCode string
TripOrderNumber string
VehicleRegistrationNumber string
VehicleCode string
RegistrationNumber string
ExternalSystemId int
StartTime dateTime
TripFreeDecimal1 decimal
TripWayBill string
RouteCode string
GoodsOwnerName string
GoodsOwnerId int