Estes SoapClient Request for Rate Quote throwing error

85
May 31, 2018, at 11:30 AM

When I run the following Estes Express SoapClient request, I get the following error... Any idea why its not loading the needed information to run? The information is in the array. Anyone familiar with Estes and know if the array is set up incorrectly?

Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: object has no 'requestID' property in

$client = new SoapClient("https://www.estes-express.com/rating/ratequote/services/RateQuoteService?wsdl");
    $request_object = array(
          "header"=>array(
          "auth"=>array(
                "user"=>"XXXXXXXX",
                "password"=>"XXXXXXXX",
                )
          ),
          "rateRequest"=>array(
                "requestID"=>"123",
                "account"=>"5052699",
          ),
            "originPoint"=>array(
                "countryCode"=>"US",
                "postalCode"=>"28366",
                "city"=>"Newton Grove",
                "stateProvince"=>"NC",
          ),
            "destinationPoint"=>array(
                "countryCode"=>"US",
                "postalCode"=>"28334",
          ),
          "payor"=> "S",
          "terms"=> "P",
          "stackable"=> "N",
            "baseCommodities"=>array(
                "commodity"=>array(
                    "class"=>"50",
                    "weight"=>"1200",
                )
            )
        );
        $result = $client->getQuote(array("request"=>$request_object));
        var_dump($result);
        $charges = $result->GetQuoteResult->Result->Charges->Charge;
                  $freight = "";
                  $fuel = "";
                  foreach($charges as $charge) {
                      if ($charge->Type == "DISCNF") { 
                      $estesfreight = $charge->Amount; continue; }
                      if ($charge->Type == "FUEL") { 
                      $estesfuel = $charge->Amount; }
                  }

            echo '<tr><td colspan="3">Freight Charges</td><td>'. $estesfreight .'</td</tr>';
           echo '<tr><td colspan="3">Fuel Surcharge</td><td>'. $estesfuel .'</td></tr>';
READ ALSO
read PHP string as integer [duplicate]

read PHP string as integer [duplicate]

This question already has an answer here:

57
DialogFlow - Multiple fulfillment responses do not work

DialogFlow - Multiple fulfillment responses do not work

I'm trying to understand the DialogFlow tool by connecting to my backend via webhook in phpI can do this ok

152
Send SMS to two recipients and get phone numbers from a form

Send SMS to two recipients and get phone numbers from a form

I am trying to send an sms from web for two recipients and i want phone numbers be get from the form input:

63