I have created web references in my Visual Studio console project using WSDL files for Salesforce production and Salesforce sandbox.
I am trying to write the program like so:
ServiceClass client;
if(Debug)
{
client = Test.SforceService;
}
else
{
client = Prod.SforceService;
}
Problem is, the SforceService
class is auto-generated, so I can't implement the ServiceClass in their files.
What are my options?