我需要使用PHP
with从 FedEx Webservice API 获取 FedEx Freight Rates SoapClient
。我正在使用 RateService_v10.wsdl 来请求费率:
$client = new SoapClient($pathToWsdl, array('trace' => 1));
$request['WebAuthenticationDetail'] = array(...);
//Setup other values... omitting $request['RequestedShipment']['ServiceType'] so all ServiceTypes are returned into the response
$response = $client->getRates($request);
//Validate $response
foreach($response->RateReplyDetails as $details) {
echo $details->ServiceType;
}
响应中不包含货运服务类型。我正在寻找这些类型的费率:
FEDEX_1_DAY_FREIGHT
FEDEX_2_DAY_FREIGHT
FEDEX_3_DAY_FREIGHT
FEDEX_FREIGHT_PRIORITY
FEDEX_FREIGHT_ECONOMY
为什么响应中不包括运费?如何查询 FedEx 以获取运费?我需要的一些产品价格超过 2,200 磅