I've made a soap api login call to the saleforce sandbox and everything works fine. However when I try to move it to the live environment I'm having problems.
INVALID_LOGIN: Invalid username, password, security token; or user locked out.
Steps I have taken to try and resolve this are:
Generate new enterprise.wsdl
We appended new security token to the password.
Add remote site's ip to trusted ip list in SF.
The strange thing is that even though I receive this error from the API, the login history in SF doesn't show the failed login attempts unless I actually type the incorrect username or password.
Could someone please shed some light on this as I have lost hours of my life to it.
I spent the entire day looking for a solution for this same issue. After changing the URL to from Production to Sandbox and then back, I started receiving the same error message.
So I found this page on their forums with this line of code:
ini_set("soap.wsdl_cache_enabled", "0");
And everything is working now.
Sounds like your login calls are still going to https://test.salesforce.com (which is where sandbox logins would go) when it should be going to https://login.salesforce.com for production users. Check your configs.
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.