FEDEX API,身份验证失败

拉加夫

我正在将FEDEX跟踪,费率和运费API集成到我的应用程序中,但遇到了问题。

当我使用开发者帐户详细信息运行代码时,一切都将正常运行。但是,当我使用生产密钥运行相同的代码时,它会显示“错误代码1000,身份验证错误”

我已经更新了所有密钥,还更改了URL使其指向生产URL“ https://ws.fedex.com:443/web-services/ ”。

从FEDEX端看来,这似乎不是权限问题,因为默认情况下为生产启用了标准服务(跟踪),并且还会出现相同的错误“错误代码1000,身份验证错误”

以下是SOAP请求和响应XML。

要求:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header/>
<soap:Body>
<RateRequest xmlns="http://fedex.com/ws/rate/v14">
<WebAuthenticationDetail>
<UserCredential>
<Key>AAAAAAAA</Key>
<Password>BBBBBBBBB</Password>
</UserCredential>
</WebAuthenticationDetail>
<ClientDetail>
<AccountNumber>CCCCCCCC</AccountNumber>
<MeterNumber>DDDDDDDD</MeterNumber>
</ClientDetail>
<TransactionDetail>
<CustomerTransactionId>java sample - Rate Request</CustomerTransactionId>
</TransactionDetail>
<Version>
<ServiceId>crs</ServiceId>
<Major>14</Major>
<Intermediate>0</Intermediate>
<Minor>0</Minor>
</Version>
<ReturnTransitAndCommit>true</ReturnTransitAndCommit>
<RequestedShipment>
<ShipTimestamp>2015-04-19T18:21:11.542+05:30</ShipTimestamp>
<DropoffType>REGULAR_PICKUP</DropoffType>
<ServiceType>FEDEX_GROUND</ServiceType>
<PackagingType>YOUR_PACKAGING</PackagingType>
<TotalInsuredValue>
<Currency>USD</Currency>
</TotalInsuredValue>
<Shipper>
<Address>
<StreetLines>1310 Piper Dr</StreetLines>
<City>Milpitas</City>
<StateOrProvinceCode>CA</StateOrProvinceCode>
<PostalCode>95035</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Shipper>
<Recipient>
<Address>
<StreetLines>3370 E. La Palma Avenue</StreetLines>
<City>Anaheim</City>
<StateOrProvinceCode>CA</StateOrProvinceCode>
<PostalCode>92806</PostalCode>
<CountryCode>US</CountryCode>
<Residential>false</Residential>
</Address>
</Recipient>
<ShippingChargesPayment>
<PaymentType>SENDER</PaymentType>
<Payor>
<ResponsibleParty>
<AccountNumber>ACCOUNT_NUMBER_PRESENT</AccountNumber>
</ResponsibleParty>
</Payor>
</ShippingChargesPayment>
<RateRequestTypes>ACCOUNT</RateRequestTypes>
<PackageCount>1</PackageCount>
<RequestedPackageLineItems>
<GroupPackageCount>1</GroupPackageCount>
<InsuredValue>
<Currency>USD</Currency>
<Amount>100.00</Amount>
</InsuredValue>
<Weight>
<Units>LB</Units>
<Value>10</Value>
</Weight>
<Dimensions>
<Length>1</Length>
<Width>1</Width>
<Height>1</Height>
<Units>IN</Units>
</Dimensions>
<SpecialServicesRequested/>
</RequestedPackageLineItems>
</RequestedShipment>
</RateRequest>
</soap:Body>
</soap:Envelope>

回复:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<v14:RateReply xmlns:v14="http://fedex.com/ws/rate/v14">
<v14:HighestSeverity>ERROR</v14:HighestSeverity>
<v14:Notifications>
<v14:Severity>ERROR</v14:Severity>
<v14:Source>prof</v14:Source>
<v14:Code>1000</v14:Code>
<v14:Message>Authentication Failed</v14:Message>
</v14:Notifications>
<v14:TransactionDetail>
<v14:CustomerTransactionId>java sample - Rate Request</v14:CustomerTransactionId>
</v14:TransactionDetail>
<v14:Version>
<v14:ServiceId>crs</v14:ServiceId>
<v14:Major>14</v14:Major>
<v14:Intermediate>0</v14:Intermediate>
<v14:Minor>0</v14:Minor>
</v14:Version>
</v14:RateReply>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

请帮助我解决这个问题:(

安迪克纳斯

如果您在生产中遇到所有Web服务错误,那么您将遇到一个关键问题。从FedEx开发人员区域获取新凭据,或尝试通过fedex.com通过电子邮件发送Web支持

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

SslStream身份验证失败

来自分类Dev

通过REST API身份验证进行TeamCity备份失败

来自分类Dev

FedEx API返回

来自分类Dev

WSO2 API Manager API身份验证失败

来自分类Dev

Fedex api返回此错误数组(0){}?

来自分类Dev

WSO2身份服务器身份验证管理员API身份验证失败

来自分类Dev

Fedex gem,多次打包

来自分类Dev

PHPMailer身份验证失败

来自分类Dev

FedEx API中的INDIVIDUAL_PACKAGES软件包类型是什么意思?

来自分类Dev

Paramiko身份验证失败/身份验证异常

来自分类Dev

连接到服务器计算机“ wsbeta.fedex.com”失败

来自分类Dev

通过REST API身份验证进行TeamCity备份失败

来自分类Dev

fedex API无法在PHP中正确计算汇率

来自分类Dev

magento Fedex运送方式

来自分类Dev

Heroku身份验证失败

来自分类Dev

MongoDB身份验证失败?

来自分类Dev

FedEx / Kinkos的矢量格式?

来自分类Dev

Fedex api返回此错误数组(0){}?

来自分类Dev

WSO2身份服务器身份验证管理员API身份验证失败

来自分类Dev

Shiro身份验证失败

来自分类Dev

MongoError:身份验证失败

来自分类Dev

身份验证失败:omniauth

来自分类Dev

MVC Web Api身份验证失败

来自分类Dev

登录时,WooCommerce REST API身份验证失败

来自分类Dev

VNC身份验证失败

来自分类Dev

OWIN身份验证失败-Web API

来自分类Dev

使用 FedEx api 为多个包裹创建单件货件

来自分类Dev

使用 nestjs 身份验证时身份验证失败

来自分类Dev

LightDM:“身份验证失败”