function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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"/>