如何在asp.net mvc中获取USPS运费
在我的购物车中,我只想要 UPSP 的运费。
我有 USPS 用户 ID 和密码
。
当我将上述属性应用于 upsp xml(测试 api.dll --- RateV2)时,它们会抛出如下错误:
Invalid XML Element content is invalid according to the DTD/Schema.
Expecting: Machinable.
我已从 https://www.usps.com/webtools/htm/Rate-Calculators-v1-3.htm
但我仍然遇到错误。
任何人都可以帮助我吗? 如何解决这个错误..
In my shopping cart,i just want to shipping rate of UPSP.
I have USPS Userid and Password
.
When I apply above property to upsp xml(testing api.dll --- RateV2) they throw me error like as below :
Invalid XML Element content is invalid according to the DTD/Schema.
Expecting: Machinable.
I have checked usps xml format from https://www.usps.com/webtools/htm/Rate-Calculators-v1-3.htm
but stll i got error.
Can any one help me.
how to solve this error..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将可加工值传递为 true,这是默认值。
pass the value for the machinable as true which is the default value.
您可能遇到版本问题。您上面提到的 URL 似乎指向 RateV4,但您说您的测试 dll 适用于 RateV2。
You may have a version problem. The URL you refer to above appears to point to RateV4, but you say your testing dll is for RateV2.