southbeach
Programmer
I get a response from soap call and dump to variable like so
The content of $resp looks like this
I have tried $resp->getLTLRateEstimateResponse ... and it does not work, says that I am trying to access an undefined property.
I cannot even tell what kind of object this is: XML, stdClass, etc. !!!???!!!
As usual, your assistance will be greatly appreciated.
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
Code:
$resp = $link->getResponse($dataString);
Code:
object(getLTLRateEstimateResponse)#20 (1) {
["return":protected]=>
object(myLTLRateResponse)#21 (11) {
["rateEstimate":protected]=>
object(estimateDetail)#25 (11) {
["accessorialCharges":protected]=>
NULL
["discountAmount":protected]=>
string(7) "3044.62"
["discountPercentage":protected]=>
string(5) "82.00"
["discountedFreightCharge":protected]=>
string(6) "668.33"
["fuelSurcharge":protected]=>
string(6) "139.15"
["grossFreightCharge":protected]=>
string(7) "3712.95"
["guaranteedServiceOption":protected]=>
string(6) "201.86"
["internationalCharge":protected]=>
string(4) "0.00"
["netFreightCharge":protected]=>
string(6) "807.48"
["totalAccessorialCharge":protected]=>
string(4) "0.00"
["variableAccessorialRate":protected]=>
bool(false)
}
["destinationCities":protected]=>
array(1) {
[0]=>
object(city)#22 (2) {
["name":protected]=>
string(33) "HOLLYWOOD "
["serviceDays":protected]=>
int(3)
}
}
["destinationInterlineCarrierName":protected]=>
string(0) ""
["destinationInterlineScac":protected]=>
string(0) ""
["errorMessages":protected]=>
NULL
["originatingInterlineCarrierName":protected]=>
string(0) ""
["originatingInterlineScac":protected]=>
string(0) ""
["referenceNumber":protected]=>
string(8) "62264866"
["success":protected]=>
bool(true)
}
}
I cannot even tell what kind of object this is: XML, stdClass, etc. !!!???!!!
As usual, your assistance will be greatly appreciated.
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.