I downloaded the sample code to request a rate from fedex\'s website... i placed the WSDL file in the proper location, I have my acct number, password, meter number, and key. Wh
in library file fedex-common.php5 change following fields to provided credentials:
if($var == 'shipaccount') Return '123456';
if($var == 'billaccount') Return '123456';
if($var == 'dutyaccount') Return '123456';
if($var == 'accounttovalidate') Return '123456';
if($var == 'meter') Return '654321';
if($var == 'key') Return 'ASDE324dfe';
if($var == 'password') Return 'K2wedrf4ASDE324dfe';
in wsdlfile ShipService_v*.wsdl change following thing:
<s1:address location="https://ws.fedex.com:443/web-services/ship"/>
Hope it'll work for you.
Agree with Aditya Kumar, or check in your wsdl file at bottom. there is a code
<s1:address location="https://wsbeta.fedex.com:443/web-services/ship"/>
change it to
<s1:address location="https://ws.fedex.com:443/web-services/ship"/>
I Was also having the Same issue, i was entering the password which i was using to login, but we need to enter the password which will be sent your email address after registering for the test account information with FEDEX:
Please make sure the values you have entered below are correct:
if($var == 'shipaccount') Return 'Your Account Number';
if($var == 'meter') Return 'Your meter number';
if($var == 'key') Return 'Your key'; //These values wiil be shown in the page after registering for the test account
if($var == 'password') Return 'Your Password'; // This will be sent to you by Fedex to your mail this is not your account password using to login
I faced this issue from earlier and found solution finally after a discussion with FedEx Technical Person.See why we are facing such error all because of Developer Test Account we generated from developer website.One thing we should keep in mind that Test Account Number start with "6" is of Production & Key Start with "5" is Correct Test Key.So Please check your Test Key when you get Authentication problem with Error Code 1000.
Another Reason apart from this is might be your Fedex Webservice endpoint is different like for ex "https://wsbeta.fedex.com/web-services/track", this is Sandbox mode url and in production environment url should be like this "https://ws.fedex.com/web-services/track". There is no "beta" mode in URL for Production,So please check endpoint.
Edit fedex-common.php5 file replace 'XXX' with your info in the following params
if($var == 'shipaccount') Return 'YOUR TEST ACCOUNT NUMBER HERE';
if($var == 'billaccount') Return 'YOUR TEST ACCOUNT NUMBER HERE';
if($var == 'meter') Return 'YOUR TEST METER NUMBER HERE';
if($var == 'key') Return 'YOUR TEST KEY HERE';
if($var == 'password') Return 'YOUR TEST PASSWORD HERE';
Hope this helps someone.
If you use SoapUI ( http://www.soapui.org/ ) to contact the WSDL, what is the response you get?
(SoapUI enables you to test SOAP/Wsdl's without programming, so you can check if the calls are correct, if they are, then the problem is in your code.)