简体   繁体   中英

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. 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):

Fedex Web Services: ERROR 9040 - Can't pull up tracking

I tried this solution by changing the PortType locaiton from
https://wsbeta.fedex.com:443/web-services/track to https://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)

Client code: http://pastebin.com/9xwraHYP

Service PortType Provider: http://pastebin.com/ZVkqsAuv

Any help will be greatly appreciated.

FedEx provide testing tracking id

Test Tracking Id: 123456789012

You can also use: 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.

Best!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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