GetRating


Click here for a complete list of operations.

GetRating

Get Rating

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 /wtkservices/getrating.asmx HTTP/1.1
Host: awctest.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetRating"

<?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>
    <GetRating xmlns="http://tempuri.org/">
      <RatingParam>
        <RatingInput>
          <RequestID>int</RequestID>
          <OriginCountry>string</OriginCountry>
          <OriginCity>string</OriginCity>
          <OriginState>string</OriginState>
          <OriginZip>string</OriginZip>
          <DestinationCountry>string</DestinationCountry>
          <DestinationCity>string</DestinationCity>
          <DestinationState>string</DestinationState>
          <DestinationZip>string</DestinationZip>
          <ShipmentTerms>string</ShipmentTerms>
          <PickupDate>dateTime</PickupDate>
          <PickupTime>dateTime</PickupTime>
          <PickupLocationCloseTime>dateTime</PickupLocationCloseTime>
          <LiabilityType>string</LiabilityType>
          <DeclaredValue>decimal</DeclaredValue>
          <Palletized>string</Palletized>
          <Stackable>string</Stackable>
          <ServiceLevelID>string</ServiceLevelID>
          <WebTrakUserID>string</WebTrakUserID>
        </RatingInput>
        <AccessorialInput>
          <AccessorialInput>
            <AccessorialCode>string</AccessorialCode>
          </AccessorialInput>
          <AccessorialInput>
            <AccessorialCode>string</AccessorialCode>
          </AccessorialInput>
        </AccessorialInput>
        <CommodityInput>
          <CommodityInput>
            <CommodityClass>decimal</CommodityClass>
            <CommodityPieces>int</CommodityPieces>
            <CommodityPieceType>string</CommodityPieceType>
            <CommodityWeightPerPiece>int</CommodityWeightPerPiece>
            <CommodityWeight>int</CommodityWeight>
            <CommodityLength>int</CommodityLength>
            <CommodityWidth>int</CommodityWidth>
            <CommodityHeight>int</CommodityHeight>
            <CommodityHazmat>string</CommodityHazmat>
          </CommodityInput>
          <CommodityInput>
            <CommodityClass>decimal</CommodityClass>
            <CommodityPieces>int</CommodityPieces>
            <CommodityPieceType>string</CommodityPieceType>
            <CommodityWeightPerPiece>int</CommodityWeightPerPiece>
            <CommodityWeight>int</CommodityWeight>
            <CommodityLength>int</CommodityLength>
            <CommodityWidth>int</CommodityWidth>
            <CommodityHeight>int</CommodityHeight>
            <CommodityHazmat>string</CommodityHazmat>
          </CommodityInput>
        </CommodityInput>
      </RatingParam>
    </GetRating>
  </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>
    <GetRatingResponse xmlns="http://tempuri.org/">
      <GetRatingResult>
        <RatingOutput>
          <RequestID>int</RequestID>
          <ServiceLevelID>string</ServiceLevelID>
          <DeliveryDate>string</DeliveryDate>
          <DeliveryTime>string</DeliveryTime>
          <StandardFreightCharge>string</StandardFreightCharge>
          <StandardTotalRate>string</StandardTotalRate>
          <Message>string</Message>
          <AccessorialOutput>
            <AccessorialOutput xsi:nil="true" />
            <AccessorialOutput xsi:nil="true" />
          </AccessorialOutput>
          <TransitDays>int</TransitDays>
        </RatingOutput>
        <RatingOutput>
          <RequestID>int</RequestID>
          <ServiceLevelID>string</ServiceLevelID>
          <DeliveryDate>string</DeliveryDate>
          <DeliveryTime>string</DeliveryTime>
          <StandardFreightCharge>string</StandardFreightCharge>
          <StandardTotalRate>string</StandardTotalRate>
          <Message>string</Message>
          <AccessorialOutput>
            <AccessorialOutput xsi:nil="true" />
            <AccessorialOutput xsi:nil="true" />
          </AccessorialOutput>
          <TransitDays>int</TransitDays>
        </RatingOutput>
      </GetRatingResult>
    </GetRatingResponse>
  </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 /wtkservices/getrating.asmx HTTP/1.1
Host: awctest.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>
    <GetRating xmlns="http://tempuri.org/">
      <RatingParam>
        <RatingInput>
          <RequestID>int</RequestID>
          <OriginCountry>string</OriginCountry>
          <OriginCity>string</OriginCity>
          <OriginState>string</OriginState>
          <OriginZip>string</OriginZip>
          <DestinationCountry>string</DestinationCountry>
          <DestinationCity>string</DestinationCity>
          <DestinationState>string</DestinationState>
          <DestinationZip>string</DestinationZip>
          <ShipmentTerms>string</ShipmentTerms>
          <PickupDate>dateTime</PickupDate>
          <PickupTime>dateTime</PickupTime>
          <PickupLocationCloseTime>dateTime</PickupLocationCloseTime>
          <LiabilityType>string</LiabilityType>
          <DeclaredValue>decimal</DeclaredValue>
          <Palletized>string</Palletized>
          <Stackable>string</Stackable>
          <ServiceLevelID>string</ServiceLevelID>
          <WebTrakUserID>string</WebTrakUserID>
        </RatingInput>
        <AccessorialInput>
          <AccessorialInput>
            <AccessorialCode>string</AccessorialCode>
          </AccessorialInput>
          <AccessorialInput>
            <AccessorialCode>string</AccessorialCode>
          </AccessorialInput>
        </AccessorialInput>
        <CommodityInput>
          <CommodityInput>
            <CommodityClass>decimal</CommodityClass>
            <CommodityPieces>int</CommodityPieces>
            <CommodityPieceType>string</CommodityPieceType>
            <CommodityWeightPerPiece>int</CommodityWeightPerPiece>
            <CommodityWeight>int</CommodityWeight>
            <CommodityLength>int</CommodityLength>
            <CommodityWidth>int</CommodityWidth>
            <CommodityHeight>int</CommodityHeight>
            <CommodityHazmat>string</CommodityHazmat>
          </CommodityInput>
          <CommodityInput>
            <CommodityClass>decimal</CommodityClass>
            <CommodityPieces>int</CommodityPieces>
            <CommodityPieceType>string</CommodityPieceType>
            <CommodityWeightPerPiece>int</CommodityWeightPerPiece>
            <CommodityWeight>int</CommodityWeight>
            <CommodityLength>int</CommodityLength>
            <CommodityWidth>int</CommodityWidth>
            <CommodityHeight>int</CommodityHeight>
            <CommodityHazmat>string</CommodityHazmat>
          </CommodityInput>
        </CommodityInput>
      </RatingParam>
    </GetRating>
  </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>
    <GetRatingResponse xmlns="http://tempuri.org/">
      <GetRatingResult>
        <RatingOutput>
          <RequestID>int</RequestID>
          <ServiceLevelID>string</ServiceLevelID>
          <DeliveryDate>string</DeliveryDate>
          <DeliveryTime>string</DeliveryTime>
          <StandardFreightCharge>string</StandardFreightCharge>
          <StandardTotalRate>string</StandardTotalRate>
          <Message>string</Message>
          <AccessorialOutput>
            <AccessorialOutput xsi:nil="true" />
            <AccessorialOutput xsi:nil="true" />
          </AccessorialOutput>
          <TransitDays>int</TransitDays>
        </RatingOutput>
        <RatingOutput>
          <RequestID>int</RequestID>
          <ServiceLevelID>string</ServiceLevelID>
          <DeliveryDate>string</DeliveryDate>
          <DeliveryTime>string</DeliveryTime>
          <StandardFreightCharge>string</StandardFreightCharge>
          <StandardTotalRate>string</StandardTotalRate>
          <Message>string</Message>
          <AccessorialOutput>
            <AccessorialOutput xsi:nil="true" />
            <AccessorialOutput xsi:nil="true" />
          </AccessorialOutput>
          <TransitDays>int</TransitDays>
        </RatingOutput>
      </GetRatingResult>
    </GetRatingResponse>
  </soap12:Body>
</soap12:Envelope>