You need to sign in to do that
Don't have an account?
Software Engine
Changing the Binding URL
Hi,
I have an application which should be test both in Production and QA Environment.
Can we change the binding URL to sand box URL to production URL
and production URL to sandbox URL.
// Create service object
SforceService sfdc = new SforceService();
LoginResult lr = sfdc.login("username","password");
sfdc.Url = lr.serverUrl;
SforceService sfdc = new SforceService();
LoginResult lr = sfdc.login("username","password");
sfdc.Url = lr.serverUrl;
sfdc.Url=SandBox URL. // Can we change like this.
Would it really point to the specified URL?
Thanks,
m_binding.Url = SandBoxURL / SalesForceURL
m_binding.SessionHeaderValue = New Sforce.SessionHeader
m_binding.SessionHeaderValue.sessionId = m_loginRes.sessionId
If you want to make API requests to your test instance version, then you need to send the login request to the test.salesforce.com endpoint, not to www.salesforce.com