Reputation: 1090
I am using Fed Ex Shipping Web Service but getting following error on Running the application. Unable to obtain courtesy rates. I am using Fed Ex test account and fedex meter number. I am using shipServiceDefination.wsdl.
Can any body suggest whats the problem?
Upvotes: 6
Views: 6769
Reputation: 1530
Wait a while and retry again; it's quite possibly a FedEx Sandbox test environment issue.
Note that the FedEx Sandbox environment might be unstable during your testing, and you might need to use FedEx API mocks instead of the Fed Ex Sandbox environment (either built in-house using Wiremock or ready-made by a vendor).
The FedEx Sandbox has numerous stability and test data problems.
If you are performing a one-off manual integration test with the rates FedEx API, then using the FedEx Sandbox should be sufficient, and you can re-try your request, and it "hope" be successful after a while.
If, however, you are running automated regression or integration tests on a schedule or per commit, then the instability of the environment might hurt your testing. For example, you might see flaky tests and builds and have to spend time investigating them even though there is nothing wrong with your code or tests, and it's just an issue with the FedEx Sandbox API.
To resolve the issue with FedEx Sandbox environment stability, you have three options, which are essentially about using test-doubles instead of the actual FedEx Sandbox API:
Upvotes: 1
Reputation: 1090
There is nothing wrong in the code this is mainly due to website issue. I tried the same thing after few hours and it was working perfectly.
Upvotes: 1
Reputation: 345
I have the same issue. First times all my test requests works properly, but then I start to get similar messages. I suppose that fedex test web service either not works sometimes or have limitation for test requests...
Upvotes: 4