You need to sign in to do that
Don't have an account?
Connecting to Sandbox and Live accounts with the partner WSDL
I've written and tested a salesforce to MySQL backup tool in php (https://sourceforge.net/projects/unforced/). I did all the testing in the sandbox and would now like to switch over to our live org. I've changed the username and password and even refreshed the partner wsdl though it won't connect to the live org with security token or without. Any idea what I'm doing wrong? I get the following error:
SoapFault Object
(
[message:protected] => INVALID_LOGIN: Invalid username or password or locked out.
[string:private] =>
[code:protected] => 0
[file:protected] => C:\xampp\htdocs\test\salesforcebu\includes\soapclient\SforceBaseClient.php
[line:protected] => 155
[trace:private] => Array
EDIT:
I notice that the WSDL I am getting from the live org says api version 15.0whilst the toolkit is only 13.0. Also I have changed line
<soap:address location="https://www.salesforce.com/services/Soap/u/15.0"/>
To point to the cs2 or live depnding on which login I use. for the test accounts it doesn't matter, but for the live account, neither works.
I have checked my user rights on the live server and I am a System Administrator with API enabled == True. Is there a setting on the live org that I am missing?
Thanks
Pete
Hi Simon,
thanks for the quick response. The top of my code currently looks like this and I still have the error described:
ini_set("soap.wsdl_cache_enabled", "0"); require_once ('./includes/soapclient/SforcePartnerClient.php'); require_once ('./includes/adodb/adodb.inc.php');
Is there anything else I can do about the soap caching?
Ah, it looks like there was one of the include files that didn't have the caching statement, apparently you need it on every page that uses it.
Thanks
Pete