我需要获得FedEx运费从FedEx网络服务应用程序接口使用PHP与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获取运费?我需要的一些产品的价格超过2200磅
发布于 2018-02-06 02:46:26
如果其他人在这么多年后像我一样遇到这种情况,要知道FedEx运费请求根本不同于包裹运费,必须为每种运费方法单独提出请求。
https://stackoverflow.com/questions/18876557
复制相似问题