问题标签 [ups]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
6 回答
13951 浏览

fedex - 打印到 UPS / Fedex 热敏打印机?

我有一个客户询问他们的 Web 应用程序 (PHP) 是否可以轻松打印到 UPS / Fedex 热敏标签打印机。

例如,我可以从 UPS/Fedex 取回带有运输标签的 PDF。我只需要打印那个。

有谁知道您是否可以直接打印到这些打印机上,或者如果不能,是否有其他方法可以做到这一点?

编辑:澄清一下,我想要完成的只是能够打印到这些打印机,而不必让我的客户 ALT-TAB 到某些第三方应用程序,如 UPS Worldship 或 ShipRush 或 QuickBooks Shipping Manager 并单击其中的“打印”该应用程序。可以吗?

0 投票
4 回答
2853 浏览

serial-port - 从 Web 应用程序中的 Fedex 秤读取包裹重量?

有人问我是否可以从通过 RS232 连接的秤上读取重量,并将其转储到 Web 应用程序中。从本地机器读取秤的重量还不错​​(这个SO问题给出了解释:RS232 question - how to read weight to PC),但是......

然后如何将这些数据粘贴到我的 Web 应用程序的框中...?想法?

我在 Fedex 和 UPS 标签上遇到了类似但相反的情况。我可以在 Web 应用程序中获取标签数据,但我需要通过原始打印机套接字(即我不能只是文件 > 打印)将该数据发送到本地打印机......如何?

0 投票
1 回答
1822 浏览

php - 未记录的 UPS API 问题

在工作中,我正在努力将 UPS 集成到我们产品的购物车中。我目前正在使用提供 WSDL 的文档化 API。要使用此 API,您需要用户名、密码和 API 密钥(使用购物车开展业务的客户必须提供此信息)。

还有另一个(未记录的)API 用于计算运费:

http://www.ups.com/using/services/rave/qcostcgi.cgi

我注意到很多网站都在使用它,但我似乎找不到任何文档。它似乎也非常古老(我认为它可以追溯到 00 年代初期)。它不执行任何类型的身份验证,因此您可以使用它来获得快速报价。我们正在考虑使用此 API,以便我们的客户可以使用它来获得快速报价,而无需费劲地获取 UPS 用户名、密码和 API 密钥。我的直觉告诉我,我可能不应该依赖可能在任何一天下线的未记录 API。我还阅读了该工具错误计算费率的帖子(与记录在案的 API 相比)。我还没有验证这一点(计划下一步这样做)。

我只是想看看这里是否有人对此有所了解或有任何文档。

更新:

经过快速测试,这些值似乎不正确。对于通过 2nd Day Air 从新泽西州霍博肯运送到亚利桑那州钱德勒的 150 磅包裹,记录在案的 API 报告总成本为 622.56 美元,而 CGI 报告总成本为 495.18 美元。所以有些出入。

0 投票
0 回答
709 浏览

api - 使用 UPS API 的更好方法?

具体来说,UPS TradeAbility API——我正在尝试在我的潜在客户处理/报价 Web 应用程序中实施被拒绝方筛选。然而,TradeAbility API 是熊。

我找到了一些用于简单跟踪的不错的包类,我已经成功实现了这些类。但我没有看到任何支持 TradeAbility 的东西。UPS-PHP在他们的 TODO 列表中有它,但作者已将重点转移到付费应用程序(它也不支持它)。

任何线索表示赞赏。

谢谢。

0 投票
1 回答
1219 浏览

php - 如何在 UPS API 中指定货件是否为住宅货件?

我正在使用ups.com 开发人员工具包中的UPS api (JSON) 参考。

1)我需要带有“住宅装运”的装运评级清单。2) 我需要添加带有“居住地址”的货件。

ResidentialAddressIndicator在地址中添加为 1。ShipTo(我来自 UPS 文档。)但它失败了。

2)示例代码:

非常感谢您的回答!

0 投票
1 回答
1275 浏览

xml - UPS 货运的 XML 文档

我想知道是否有人知道我在哪里可以找到示例 XML 文档,以便我可以从 UPS API 获得 FREIGHT LTL 运输报价。我的 XML mojo 严重不足,UPS 提供给我的只是 XSD 文档。我的客户真的希望我能尽快完成这项工作,并且我需要将其作为 XML 帖子而不是 SOAP 请求发送,因为该站点是用 ColdFusion 8 编写的,如果我没记错的话,Coldfusion 必须有一个面向公众的 WSDL 来创建 web 服务(我最近做了太多的 .NET 开发)。

任何人都可以帮忙吗?

编辑:

这个需要支持FREIGHT,除非错过了,下载@RIAForge 只支持标准运费。

0 投票
0 回答
641 浏览

asp.net - IE 8 和 UPS 热敏打印机 ActiveX 控件

有没有人有解决方案让 UPS 标签从 UPS 热敏打印机上的自定义网页(不是 UPS 测试站点)打印?在 Firefox 和 Chrome 中,它将一次打印两个标签,但在 IE 8 中,我无法使用 or 标签来打印它。我将类型设置为“application/epl2”,但这不起作用。

如果我将标签作为带有 epl2 扩展名的文档返回,并将该扩展名与 Internet Explorer 相关联,那么它将打印标签,但这显然不是一个理想的解决方案,因为它对用户端的要求很高。

有没有人有这方面的经验可以提供帮助?我真的很感激任何让这个东西工作的指针。

0 投票
1 回答
2037 浏览

api - UPS 开发人员 API 缺少 ja

我正在寻找要导入我的软件的 jar 库。我正在使用 ups 的 Shipping_Pkg_Gnd.zip 作为弹簧板来生成运输标签。但是,他们没有在他们提供的任何示例代码中提供 .jar 库。有谁知道在哪里可以得到这个图书馆。

以下是无法使用的导入,因为我没有所需的开发人员 API 导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipmentErrorMessage;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.BillShipperType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.InternationalFormType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.LabelImageFormatType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.LabelSpecificationType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.PackageType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.PackageWeightType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.PackagingType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.PaymentInfoType;导入 com.ups.www.wsdl.xoltws.ship.v1_1。ShipServiceStub.ProductType; 导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ProductWeightType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.RequestType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ServiceAccessToken_type0;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ServiceType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipAddressType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipFromType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipPhoneType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipToAddressType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipToType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipUnitOfMeasurementType;产品重量类型;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.RequestType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ServiceAccessToken_type0;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ServiceType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipAddressType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipFromType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipPhoneType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipToAddressType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipToType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipUnitOfMeasurementType;产品重量类型;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.RequestType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ServiceAccessToken_type0;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ServiceType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipAddressType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipFromType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipPhoneType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipToAddressType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipToType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipUnitOfMeasurementType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ServiceType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipAddressType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipFromType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipPhoneType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipToAddressType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipToType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipUnitOfMeasurementType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ServiceType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipAddressType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipFromType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipPhoneType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipToAddressType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipToType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipUnitOfMeasurementType;ShipToAddressType; 导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipToType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipUnitOfMeasurementType;ShipToAddressType; 导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipToType;导入 com.ups.www.wsdl.xoltws.ship.v1_1.ShipServiceStub.ShipUnitOfMeasurementType;

0 投票
3 回答
23432 浏览

php - UPS 的访问许可证号

我正在使用Mark Sanborn UPS 函数通过 php 计算 UPS 运费

在此函数中,您必须更改已定义变量的一些值

但我无法弄清楚我的$AccessLicenseNumber for UPS 帐户也是我的$ShipperNumber

请任何使用此 API 的人给我一个开始。

提前致谢。

0 投票
3 回答
1942 浏览

zend-framework - Zend 框架的购物车库

目前我正在 Zend 框架中设计一个购物车。我决定从头开始为我已经完成和测试的用户/角色/产品目录编写代码。但是对于其他事情,我需要你们指导我哪些是构建这个系统系统的最佳类/库。

我需要以下功能

  1. 命令
  2. 存货
  3. 账户
  4. 贝宝集成
  5. UPS/USPS/Fedex 集成。

并感谢您的时间。

注意:我已经浏览过magento模块,从中提取我需要的东西有点困难,所以这对我来说是最后的手段。