Tag: usps

USPS地址validationAPI中的授权失败

我刚注册USPS ,提供US Address Validation API 。 我使用以下代码来获取XML Response 。 但不幸的是, Response说: 授权失败用户’xxxxxxxxx’无权使用API​​ Verify.USPSCOM :: DoAuth。 我错过了什么吗? 码: void IsValidAddress() { string USPS = “http://production.shippingapis.com/ShippingAPITest.dll?API=Verify&XML=8 Wildwood DriveOld LymeCT06371”; WebClient wsClient = new WebClient(); byte[] responseData = wsClient.DownloadData(USPS); string response = string.Empty; foreach (byte item in responseData) { //this will return the xml response response += (char)item; […]

问题因为’ImageParameters’元素不能包含子元素’ImageParameter’

我试图用4×6生成usps标签,但我正面临这个问题。 任何人都可以帮我生成4x6Label。 此外,我尝试将版本从DeliveryConfirmationV3更改为DeliveryConfirmationV4但仍然没有生成4x6Label。 我的xml请求传递为 https://secure.shippingapis.com/ShippingAPI.dll?API=DeliveryConfirmationV3&XML= 1 4X6LABEL Mitesh1 Jain1 52 NORMANDY RD QWE MARLTON NJ 08053 DISCRETE JRC,LLC 110 South 8th Street Suite 104 Philadelphia PA 15001 1 Priority PDF False 但我收到的错误是 -2147221202 Common:XmlParse The element ‘ImageParameters’ cannot contain child element ‘ImageParameter’ because the parent element’s content model is text only. 最初它完美地工作但是在通过之后 4X6LABEL 这个问题出现了 目前我的代码是 […]