+ Start a Discussion
Randall ToepferRandall Toepfer 

PHP SOAP code works for sandbox but not production?

I have some PHP SOAP code that connects to Salesforce and creates a lead.  The code works for Sandbox but gives an error in production

"Fatal error: Uncaught SoapFault exception: [INVALID_LOGIN] INVALID_LOGIN: Invalid username, password, security token; or user locked out."

I've verififed my credentials, even reset my security token.  I noticed in the enterprise WSDL I am using that the location doesn't match my org id?  I tried changing the location to my org id but I still get this error.

<soap:address location="https://login.salesforce.com/services/Soap/c/45.0/ID"/>