I am working on a development website and we have a SF sandbox. Any time I try to connect, I get the following SOAP error:
Fatal error: Uncaught SoapFault exception: [sf:INVALID_LOGIN] INVALID_LOGIN: Invalid username, password, security token; or user locked out....
I have updated enterprise.wsdl.xml and partner.wsdl.xml to change the domain name from "www.salesforce.com" to "test.salesforce.com", but that doesn't work, either. Any direction to get this to work in a sandbox would be great.
Comments
Comment #1
TJ Griffin commentedit's either bad creds or the wsdl needs to be updated to use the sandbox wsdl.
Credentials
make sure you're using your sandbox login which is username.sandboxname. if your sf username is "joe@schmoe.com" and your sandbox name is "mysandbox" then your sandbox login would be "joe@schmoe.com.mysandbox". The pwd and security token should be the same as your production sf instance (provided you haven't reset them in the sandbox).
Sandbox WSDL
Login to your sandbox and generate your wsdl by going to Setup > Develop > API and click on "Generate Enterprise WSDL". save that file locally and ftp it the appropriate sub folder in the salesforce module directory. Clear all drupal caches after you ftp the wsdl. You *may* also need to clear the wsdl out of the local server cache...which should be in /tmp, just rm *wsdl* in that directory and you should be able to clear it.
Comment #2
tech4him commentedJust so that maybe this can be closed :), I have confirmed that I had the same issue, although the 6.x-2.x branch. Generating the WSDL from our SFDC sandbox and then updating to the Salesforce module was precisely the trick and got us to the point of seeing our custom fields.
Thanks