简体   繁体   English

FedEx跟踪API错误9040-Java Web服务

[英]FedEx tracking API error 9040 - Java Web Services

I have an assignment that requires me to use FedEx's tracking API using Java to communicate with their server. 我的作业要求我使用FedEx的跟踪API(使用Java)与他们的服务器进行通信。 I downloaded all the client code from their developer website. 我从他们的开发人员网站下载了所有客户端代码。 I added my credentials to the source code and attempted to test the code using some tracking numbers I have. 我说我的凭据的源代码,并试图使用一些跟踪号码我必须对代码进行测试。

When testing the numbers on the tracking website I get the confirmation that things have been delivered to their locations. 当跟踪网站上测试的数字,我得到了确认,事情已经交付给他们的位置。 But when I try using the same values with the supplied client code I get this error message: 但是,当我尝试使用提供的客户端代码使用相同的值时,出现以下错误消息:

    Message: No information for the following shipments has been
      received by our system yet.  Please try again or contact Customer
      Service at 1.800.Go.FedEx(R) 800.463.3339.

After googleing the issue I found this solution (A stackoverflow thread): 在问题上搜索之后,我找到了这个解决方案(一个stackoverflow线程):

Fedex Web Services: ERROR 9040 - Can't pull up tracking 联邦快递Web服务:错误9040 -无法拉起跟踪

I tried this solution by changing the PortType locaiton from 我尝试通过更改PortType位置来尝试此解决方案
https://wsbeta.fedex.com:443/web-services/track to https://ws.fedex.com:443/web-services/track https://wsbeta.fedex.com:443/web-services/trackhttps://ws.fedex.com:443/web-services/track

But all that happens now is that I get no response at all. 但是现在发生的一切就是我什么也没有回应。 Here are links to the source code that I am working with (I would paste it but its close to 600 lines) 这里是我正在使用的源代码的链接(我会粘贴它,但是它接近600行)

Client code: http://pastebin.com/9xwraHYP 客户端代码: http://pastebin.com/9xwraHYP

Service PortType Provider: http://pastebin.com/ZVkqsAuv 服务端口类型提供程序: http//pastebin.com/ZVkqsAuv

Any help will be greatly appreciated. 任何帮助将不胜感激。

FedEx provide testing tracking id 联邦快递提供测试跟踪ID

Test Tracking Id: 123456789012 测试跟踪ID:123456789012

You can also use: 111111111111 您也可以使用:111111111111

The first thing to know is that FedEx does not provide any test tracking numbers, so you should change the endpoint to production ( How track by Tracking Number Unique Identifier? ). 知道的第一件事是,联邦快递提供任何测试跟踪号码,所以你应该端点改变生产( 轨道通过跟踪号码唯一标识符?如何 )。

The second step is to obtain a real FedEx tracking number, and perform a tracking request. 第二步是获取真实的FedEx跟踪编号,并执行跟踪请求。

Best! 最好!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM