【发布时间】:2013-03-05 23:21:06
【问题描述】:
我从 USPS 收到此错误 我在http://production.shippingapis.com/ShippingAPI.dll?API=RateV4&XML=进行查询
<Error>
<Number>80040b1a</Number>
<Description>Authorization failure. You are not authorized to connect to this server.</Description>
<Source>UspsCom::DoAuth</Source>
</Error>
如果我在测试服务器 http://production.shippingapis.com/ShippingAPItest.dll?API=RateV4&XML= 上进行相同的查询,则会出现以下错误
<Error>
<Number>80040b1a</Number>
<Description>API Authorization failure. RateV4 is not a valid API name for this protocol.</Description>
<Source>UspsCom::DoAuth</Source>
</Error>
【问题讨论】:
-
您是否注册了 USPS Web Tools?
-
@peterm 确实是的。如果我在测试服务器上进行查询,它会给我类似“RateV4 不是此协议的有效 API 名称”之类的错误
-
在这两种情况下它都会告诉你
Authorization failure。您是否在 URL 中...XML=之后提供了正确的 XML,包括 USER ID?