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
bwinkleskybwinklesky 

SandBox and Enterprise API

I'm curious if anybody has had issues trying to login to the API using the sandbox account? I can connect to the Apex Explorer with my login and token, but no luck logging into the API. Any help is greatly appreciated. 
SuperfellSuperfell
works fine for me, send your login request to test.salesforce.com/.... instead of www.salesforce.com
bwinkleskybwinklesky
Thanks for the reply!  I've tried that, but I still get invalid username and password.  I downloaded the Enterprise WSDL from the sandbox which has the SOAP address https://test.salesforce.com/services/Soap/c/14.0.  What's strange is that I'm using the same URL, username and password in Apex Explorer and it works, but when I try to login using the API it doesn't work.  Any thoughts?  
bwinkleskybwinklesky
Nevermind.  I figured it out.  Needed to change another reference in web.config. Thanks for your help.
dhope70dhope70
What reference did you change in your web.config file?
bwinkleskybwinklesky
Change the web reference to http://test.salesforce.com instead of http://www.salesforce.com
 
Code:
<add key="sforce.enterprise" value="https://www.salesforce.com/services/Soap/c/14.0"/>




Message Edited by bwinklesky on 12-10-2008 08:55 AM



Message Edited by bwinklesky on 12-10-2008 08:59 AM