联邦快递"Service INTERNATIONAL_GROUND is invalid"消息



与FedEx的web服务进行了整合。所有的事情都像一个魅力,但当我试图使用国际地面服务类型,它提出了我这个错误"服务国际地面是无效的"错误N782。有什么问题吗?联邦快递的支持人员告诉我,我使用了"DROP_BOX"的投递类型,这会导致错误,但我试图将其更改为所有5个变体而没有成功。我给他们寄了一张票,但仍然没有人回答。

下面是我发送的SOAP请求:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://fedex.com/ws/rate/v9">
    <SOAP-ENV:Body>
        <ns1:RateRequest>
            <ns1:WebAuthenticationDetail>
                <ns1:UserCredential>
                    <ns1:Key>my key</ns1:Key>
                    <ns1:Password>my pass</ns1:Password>
                </ns1:UserCredential>
            </ns1:WebAuthenticationDetail>
            <ns1:ClientDetail>
                <ns1:AccountNumber>acc number</ns1:AccountNumber>
                <ns1:MeterNumber>metter number</ns1:MeterNumber>
            </ns1:ClientDetail>
            <ns1:TransactionDetail>
                <ns1:CustomerTransactionId>SearchFit Shopping Cart v8.20.5 (Sep 27, 2011)</ns1:CustomerTransactionId>
            </ns1:TransactionDetail>
            <ns1:Version>
                <ns1:ServiceId>crs</ns1:ServiceId>
                <ns1:Major>9</ns1:Major>
                <ns1:Intermediate>0</ns1:Intermediate>
                <ns1:Minor>0</ns1:Minor>
            </ns1:Version>
            <ns1:ReturnTransitAndCommit>true</ns1:ReturnTransitAndCommit>
            <ns1:RequestedShipment>
                <ns1:ShipTimestamp>2011-09-28T01:15:54+03:00</ns1:ShipTimestamp>
                <ns1:ServiceType>INTERNATIONAL_GROUND</ns1:ServiceType>
                <ns1:PackagingType>YOUR_PACKAGING</ns1:PackagingType>
                <ns1:TotalInsuredValue>
                    <ns1:Currency>USD</ns1:Currency>
                </ns1:TotalInsuredValue>
                <ns1:Shipper>
                    <ns1:Address>
                        <ns1:StateOrProvinceCode>GA</ns1:StateOrProvinceCode>
                        <ns1:PostalCode>30030</ns1:PostalCode>
                        <ns1:CountryCode>US</ns1:CountryCode>
                    </ns1:Address>
                </ns1:Shipper>
                <ns1:Recipient>
                    <ns1:Address>
                        <ns1:PostalCode>HP10</ns1:PostalCode>
                        <ns1:CountryCode>GB</ns1:CountryCode>
                        <ns1:Residential>true</ns1:Residential>
                    </ns1:Address>
                </ns1:Recipient>
                <ns1:ShippingChargesPayment>
                    <ns1:PaymentType>SENDER</ns1:PaymentType>
                    <ns1:Payor>
                        <ns1:AccountNumber>acc number</ns1:AccountNumber>
                        <ns1:CountryCode>US</ns1:CountryCode>
                    </ns1:Payor>
                </ns1:ShippingChargesPayment>
                <ns1:RateRequestTypes>ACCOUNT</ns1:RateRequestTypes>
                <ns1:PackageCount>1</ns1:PackageCount>
                <ns1:PackageDetail>INDIVIDUAL_PACKAGES</ns1:PackageDetail>
                <ns1:RequestedPackageLineItems>
                    <ns1:Weight>
                        <ns1:Units>LB</ns1:Units>
                        <ns1:Value>10.0</ns1:Value>
                    </ns1:Weight>
                    <ns1:Dimensions>
                        <ns1:Length>5</ns1:Length>
                        <ns1:Width>11</ns1:Width>
                        <ns1:Height>8</ns1:Height>
                        <ns1:Units>IN</ns1:Units>
                    </ns1:Dimensions>
                </ns1:RequestedPackageLineItems>
            </ns1:RequestedShipment>
        </ns1:RateRequest>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

下面是响应:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
    <soapenv:Body>
        <v9:RateReply xmlns:v9="http://fedex.com/ws/rate/v9">
            <v9:HighestSeverity xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">ERROR</v9:HighestSeverity>
            <v9:Notifications xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <v9:Severity>ERROR</v9:Severity>
                <v9:Source>crs</v9:Source>
                <v9:Code>782</v9:Code>
                <v9:Message>Service INTERNATIONAL_GROUND is invalid.</v9:Message>
                <v9:LocalizedMessage>Service INTERNATIONAL_GROUND is invalid.</v9:LocalizedMessage>
                <v9:MessageParameters>
                    <v9:Id>SERVICE_TYPE</v9:Id>
                    <v9:Value>INTERNATIONAL_GROUND</v9:Value>
                </v9:MessageParameters>
            </v9:Notifications>
            <ns1:TransactionDetail xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://fedex.com/ws/rate/v9">
                <ns1:CustomerTransactionId>SearchFit Shopping Cart v8.20.5 (Sep 27, 2011)</ns1:CustomerTransactionId>
            </ns1:TransactionDetail>
            <ns1:Version xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://fedex.com/ws/rate/v9">
                <ns1:ServiceId>crs</ns1:ServiceId>
                <ns1:Major>9</ns1:Major>
                <ns1:Intermediate>0</ns1:Intermediate>
                <ns1:Minor>0</ns1:Minor>
            </ns1:Version>
        </v9:RateReply>
    </soapenv:Body>
</soapenv:Envelope>

经过一周的等待,我得到了他们的答复。简而言之:

联邦快递国际陆运是一种直邮方式,为您将单重或多重小包裹直接从美国寄往加拿大,加拿大寄往美国,没有最低包裹要求。

他们不支持国际地面,即使他们的文件告诉相反。

在您的请求中,收件人的国家代码为GB,而不是加拿大。这也许可以解释为什么国际陆运不再是有效的运输选择。

相关内容

最新更新