RateQuote


Click here for a complete list of operations.

GetRateQuoteXml

Retieve rate quote by passing in the RateQuoteRequest complex type

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 /cflRateQuote/rateQuote.asmx HTTP/1.1
Host: www.centralfreight.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.centralfreight.com/cflRateQuote/rateQuote.asmx/GetRateQuoteXml"

<?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>
    <GetRateQuoteXml xmlns="http://www.centralfreight.com/cflRateQuote/rateQuote.asmx">
      <quoteRequest>
        <UserName>string</UserName>
        <Password>string</Password>
        <OriginZipCode>int</OriginZipCode>
        <DestinationZipCode>int</DestinationZipCode>
        <CustomerType>string</CustomerType>
        <PrepaidOrCollect>string</PrepaidOrCollect>
        <Class1>int</Class1>
        <Weight1>int</Weight1>
        <Class2>int</Class2>
        <Weight2>int</Weight2>
        <Class3>int</Class3>
        <Weight3>int</Weight3>
        <Class4>int</Class4>
        <Weight4>int</Weight4>
        <Class5>int</Class5>
        <Weight5>int</Weight5>
        <Class6>int</Class6>
        <Weight6>int</Weight6>
        <CustomerNumber>string</CustomerNumber>
        <QuoteNumber>int</QuoteNumber>
        <CallBeforeDelivery>boolean</CallBeforeDelivery>
        <NonCommercialPickup>boolean</NonCommercialPickup>
        <NonCommercialDelivery>boolean</NonCommercialDelivery>
        <InsidePickup>boolean</InsidePickup>
        <InsideDelivery>boolean</InsideDelivery>
        <ExtremeLength>boolean</ExtremeLength>
        <LiftgatePickup>boolean</LiftgatePickup>
        <LiftgateDelivery>boolean</LiftgateDelivery>
        <HazardousMaterial>boolean</HazardousMaterial>
        <ArbitraryCharge>boolean</ArbitraryCharge>
        <SingleShipment>boolean</SingleShipment>
        <ExcessValue>double</ExcessValue>
        <CODAmount>double</CODAmount>
        <NumberOfPallets>int</NumberOfPallets>
        <TestMode>boolean</TestMode>
        <FullCapacityLoad>boolean</FullCapacityLoad>
        <Over750Under6>boolean</Over750Under6>
        <Over21LinearFeet>boolean</Over21LinearFeet>
        <ConstructionDelivery>boolean</ConstructionDelivery>
        <FirstGroundGuaranteeBy_10_30AM_Interstate>boolean</FirstGroundGuaranteeBy_10_30AM_Interstate>
        <FirstGroundGuaranteeBy_05_00PM_Interstate>boolean</FirstGroundGuaranteeBy_05_00PM_Interstate>
        <FirstGroundGuaranteeBy_10_30AM_Intrastate>boolean</FirstGroundGuaranteeBy_10_30AM_Intrastate>
        <FirstGroundGuaranteeBy_05_00PM_Intrastate>boolean</FirstGroundGuaranteeBy_05_00PM_Intrastate>
      </quoteRequest>
    </GetRateQuoteXml>
  </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>
    <GetRateQuoteXmlResponse xmlns="http://www.centralfreight.com/cflRateQuote/rateQuote.asmx">
      <GetRateQuoteXmlResult>xml</GetRateQuoteXmlResult>
    </GetRateQuoteXmlResponse>
  </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 /cflRateQuote/rateQuote.asmx HTTP/1.1
Host: www.centralfreight.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>
    <GetRateQuoteXml xmlns="http://www.centralfreight.com/cflRateQuote/rateQuote.asmx">
      <quoteRequest>
        <UserName>string</UserName>
        <Password>string</Password>
        <OriginZipCode>int</OriginZipCode>
        <DestinationZipCode>int</DestinationZipCode>
        <CustomerType>string</CustomerType>
        <PrepaidOrCollect>string</PrepaidOrCollect>
        <Class1>int</Class1>
        <Weight1>int</Weight1>
        <Class2>int</Class2>
        <Weight2>int</Weight2>
        <Class3>int</Class3>
        <Weight3>int</Weight3>
        <Class4>int</Class4>
        <Weight4>int</Weight4>
        <Class5>int</Class5>
        <Weight5>int</Weight5>
        <Class6>int</Class6>
        <Weight6>int</Weight6>
        <CustomerNumber>string</CustomerNumber>
        <QuoteNumber>int</QuoteNumber>
        <CallBeforeDelivery>boolean</CallBeforeDelivery>
        <NonCommercialPickup>boolean</NonCommercialPickup>
        <NonCommercialDelivery>boolean</NonCommercialDelivery>
        <InsidePickup>boolean</InsidePickup>
        <InsideDelivery>boolean</InsideDelivery>
        <ExtremeLength>boolean</ExtremeLength>
        <LiftgatePickup>boolean</LiftgatePickup>
        <LiftgateDelivery>boolean</LiftgateDelivery>
        <HazardousMaterial>boolean</HazardousMaterial>
        <ArbitraryCharge>boolean</ArbitraryCharge>
        <SingleShipment>boolean</SingleShipment>
        <ExcessValue>double</ExcessValue>
        <CODAmount>double</CODAmount>
        <NumberOfPallets>int</NumberOfPallets>
        <TestMode>boolean</TestMode>
        <FullCapacityLoad>boolean</FullCapacityLoad>
        <Over750Under6>boolean</Over750Under6>
        <Over21LinearFeet>boolean</Over21LinearFeet>
        <ConstructionDelivery>boolean</ConstructionDelivery>
        <FirstGroundGuaranteeBy_10_30AM_Interstate>boolean</FirstGroundGuaranteeBy_10_30AM_Interstate>
        <FirstGroundGuaranteeBy_05_00PM_Interstate>boolean</FirstGroundGuaranteeBy_05_00PM_Interstate>
        <FirstGroundGuaranteeBy_10_30AM_Intrastate>boolean</FirstGroundGuaranteeBy_10_30AM_Intrastate>
        <FirstGroundGuaranteeBy_05_00PM_Intrastate>boolean</FirstGroundGuaranteeBy_05_00PM_Intrastate>
      </quoteRequest>
    </GetRateQuoteXml>
  </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>
    <GetRateQuoteXmlResponse xmlns="http://www.centralfreight.com/cflRateQuote/rateQuote.asmx">
      <GetRateQuoteXmlResult>xml</GetRateQuoteXmlResult>
    </GetRateQuoteXmlResponse>
  </soap12:Body>
</soap12:Envelope>