[SalesForce] Salesforce SOAP API gives Other Apex API Invalid Password using PHP

as the title says my account returns this error whenever i try to access it using the SOAP API, my account is development account i have encountered this before and just created a new account but if this is a recurring issue, I would like to know the way to fix this. Also all the credentials are correct and i can login to my https://ap1.salesforce.com account. also I have tried resetting the password and still the same error occurred. any idea on why this is happening?

Exception INVALID_LOGIN: Invalid username, password, security token; or user locked out.

Last Request:

POST /services/Soap/c/27.0 HTTP/1.1 Host: login.salesforce.com Connection: Keep-Alive User-Agent: salesforce-toolkit-php/27.0 Accept-Encoding: gzip, deflate Content-Type: text/xml; charset=utf-8 SOAPAction: "" Content-Length: 343

Best Answer

This is definitely something wrong with your username and password.Please note you need security token appended to password like password+token to access salesforce unless your IP address is in network access .

Related Topic