我从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>
解决方法:
Ravish-RateV4不适用于测试服务器,因此您将无法获得任何响应.而且,对于生产服务器中的RateV4,您需要获得ICCC,USPS的许可.希望能帮助到你.