2

我正在尝试Console/Asp.Net Web API使用 URL 将 UPS Tracking API 引用添加到我的项目中http://onlinetools.ups.com/webservices/Track

在 中添加此设置App.Config/Web.Config,但仍然没有帮助:

  <add key="AccessLicenseNumber" value="xxxxxxx"/>
  <add key="UserId" value="xxxxxxxx"/>
  <add key="Password" value="xxxxx"/>

我在上面的 URL 中找不到任何 Web 服务,而是给出了以下消息:

Service Name: TrackWS
Remote User: null
Server Port: 443
Server Name: wwwcie.ups.com
Servlet Path: /Track

错误:

There was an error downloading 'http://onlinetools.ups.com/webservices/Track/ metadata'. Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 153.2.224.76:80
Metadata contains a reference that cannot be resolved: 'http://onlinetools.ups.com/webservices/Track'.
There was no endpoint listening at http://onlinetools.ups.com/webservices/Track that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

非常感谢您对此的任何帮助。

谢谢,

WH

4

1 回答 1

0

首先,我建议您访问 UPS 的开发者资源网站并继续创建一个帐户。它简短而容易完成。

拥有帐户后,您可以下载示例代码和文档,它们将逐步指导您如何与其服务集成。提供的文档还包括您正在寻找的必要 WSDL,以设置 Web 服务参考.

这是他们的开发者网站的链接。 https://www.ups.com/upsdeveloperkit/

希望有帮助!干杯!

于 2016-02-17T12:43:53.113 回答