FEDEX评级服务 - FEDEX_GROUND vs GROUND_HOME_DELIVERY

时间:2012-10-12 20:01:40

标签: php soap fedex

当我向FEDEX_GROUND发送请求时,我收到此错误。是否有解决方法来切换出货方法而不明确地查找此错误并重试请求?

Array
(
[HighestSeverity] => ERROR
[Notifications] => Array
    (
        [0] => Array
            (
                [Severity] => ERROR
                [Source] => crs
                [Code] => 924
                [Message] => This shipment qualifies for FedEx Home Delivery.  Please resubmit your request with serviceType Ground Home Delivery.
                [LocalizedMessage] => This shipment qualifies for FedEx Home Delivery.  Please resubmit your request with serviceType Ground Home Delivery.
            )

        [1] => Array
            (
                [Severity] => WARNING
                [Source] => crs
                [Code] => 304
                [Message] => Requested shipment package count did not match the summed total of group package count values; the summed total of group package count values was used to rate.
                [LocalizedMessage] => Requested shipment package count did not match the summed total of group package count values; the summed total of group package count values was used to rate.
            )

    )

[Version] => Array
    (
        [ServiceId] => crs
        [Major] => 10
        [Intermediate] => 0
        [Minor] => 0
    )

)

2 个答案:

答案 0 :(得分:1)

在执行标签请求之前,如果服务= Ground且res ​​= True,则应将服务切换到Ground Home Delivery。这将解决错误。

答案 1 :(得分:0)

当PackageCount没有表示RequestedPackageLineItems的数量时,我已经遇到此错误。

<ns1:PackageCount>2</ns1:PackageCount>

<ns1:RequestedPackageLineItems><...>
<ns1:RequestedPackageLineItems><...>

如果您有2个RequestedPackageLineItems,请将您的PackageCount设置为2。