简体   繁体   English

FedEx Web服务运费未响应

[英]FedEx Web Service freight rates not in response

I need to get FedEx Freight Rates from the FedEx Webservice API using PHP with SoapClient . 我需要使用PHPSoapClient从FedEx PHP API获取FedEx运费。 I'm using the RateService_v10.wsdl to request rates: 我正在使用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;
}

No freight service types are included in the response. 响应中不包括货运服务类型。 I am looking for rates for these types: 我正在寻找以下类型的价格:

FEDEX_1_DAY_FREIGHT
FEDEX_2_DAY_FREIGHT
FEDEX_3_DAY_FREIGHT
FEDEX_FREIGHT_PRIORITY
FEDEX_FREIGHT_ECONOMY

Why aren't freight rates included in the response? 为什么响应中不包含运费? How can I query FedEx to get freight rates? 如何查询FedEx以获取运费? Some products i need rates for are over 2,200 lbs 我需要的某些产品的费率超过2200磅

多年后,如果像我一样遇到其他问题,请知道联邦快递的运费要求根本不同于包裹运费,必须针对每种货运方式单独提出要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM