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
Software EngineSoftware Engine 

How to connect to Sandbox of the database

Hi All,?XML:NAMESPACE PREFIX = O >

 I am new to the Apex code. I am developing an application to connect the apex webservice and displaying a report of the customers. But while developing the application i dont want to connect to actual webservice, bcaz it may lock me out of production and may destroy the original database.

 I have  access to connect the sand box ( Duplicate ) of the customer database. But when i used the API calls  login() and query()  in my application, its connecting to the original database and not to the sand box database.

 How to specify the sand box path in the WSDL file.

Thanks,

Mallik.

SuperfellSuperfell
You can either change the endpointURL you use for login from https://www.salesforce.com/.... to https://test.salesforce.com/... or just download a new WSDL directly from Sandbox.