当确认地址,我得到这个错误:USPS地址验证失败
ex = {"Error Loading XML: The following tags were not closed: AddressValidateRequest, Address, Address1.\r\n"}
或者我得到另一个错误说的地址无法找到。有没有更好的方法来验证这个地址?
这里是我的网址:
http://production.shippingapis.com/ShippingAPI.dll?API=Verify&XML=<AddressValidateRequest USERID="402JMAWE3481"><Address ID="1"><Address1>123 Main St</Address1><Address2></Address2><City>Watertown</City><State>MA</State><Zip5>02472</Zip5><Zip4></Zip4></Address></AddressValidateRequest>
请不要修改这个问题,打破XML了多行,因为这这不是OP发送的内容。该OP将URL作为单行发送。如果您需要查看[XML自身是否“有效”,请参阅下面的转储](http://pastie.org/4052770)。 – user7116