首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >FedEx“服务INTERNATIONAL_GROUND无效”消息

FedEx“服务INTERNATIONAL_GROUND无效”消息
EN

Stack Overflow用户
提问于 2011-09-27 03:06:36
回答 2查看 3.5K关注 0票数 1

我与FedEx web服务进行了集成。所有的事情都很有效,但是当我尝试使用国际地面服务类型时,它引发了这个错误“服务INTERNATIONAL_GROUND无效”错误N782。可能的问题是什么?FedEx支持告诉我,我使用了dropoff类型"DROP_BOX“,这导致了错误,但我尝试将其更改为所有5个变体,但都没有成功。我给他们寄了张罚单,但还是没有回音。

下面是我发送的SOAP请求:

代码语言:javascript
复制
<?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>

下面是我们的回应:

代码语言:javascript
复制
<?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>
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-10-04 01:06:30

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

FedEx国际地面快递是一种直接托运方式,您可以将单个或多个重量的小包裹货件直接从美国发送到加拿大、加拿大和美国。

他们不支持国际地面,甚至他们的文档也是相反的。

票数 1
EN

Stack Overflow用户

发布于 2012-08-02 00:54:35

在您的请求中,收件人的国家/地区代码为GB,而不是加拿大。这可能解释了为什么国际地面不再是一个有效的运输选择。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7559992

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档