我正在尝试首次设置Estes Web Services API,以便为我的网站添加LTL费率估算值。大多数信息都有意义。我唯一的问题之一是我在rateRequest下的requestID中输入了哪些信息?
如果我的帐户中存在某些内容,我会在哪里找到它?
<?php
$client = new SoapClient("https://www.estes-express.com/rating/ratequote/services/RateQuoteService?wsdl");
$request_object = array(
"header"=>array(
"auth"=>array(
"user"=>"XXXXX",
"password"=>"XXXXX",
)
),
"rateRequest"=>array(
"requestID"=>"XXXXXXXXXXXXXXX",
"account"=>"XXXXXX",
),
"originPoint"=>array(
"countryCode"=>"XX",
"postalCode"=>"XXXXX",
"city"=>"XXXXX",
"stateProvince"=>"XX",
),
"destinationPoint"=>array(
"countryCode"=>"XX",
"postalCode"=>"XXXXX",
),
"payor"=> "X",
"terms"=> "XXXX",
"stackable"=> "X",
"baseCommodities"=>array(
"commodity"=>array(
"class"=>"XX",
"weight"=>"XXXX",
)
),
);
$result = $client->rateRequest(array("request"=>$request_object));
var_dump($result);
?>
答案 0 :(得分:0)
我还没有让代码工作。但我确实发现RequestID是我们最后设置的变量。它只允许我们将请求连接到我假设的票号或订单号。