You need to sign in to do that
Don't have an account?
Software Engine
Can we change binding URL dynamically?
Hi,
I have implemented application. I have to test both in Prodcution and SandBox.
so i need to change the URL.
String SandBoxURL= "https://test.salesforce.com/services/Soap/c/9.0"
String ProductionURL="https://www.salesforce.com/services/Soap/c/9.0"
binding = New Sforce.SforceService
binding.Timeout = 60000
loginRes = binding.login(UID, PWD)
binding.Url = SandBoxURL / ProductionURL
binding.Timeout = 60000
loginRes = binding.login(UID, PWD)
binding.Url = SandBoxURL / ProductionURL
binding.SessionHeaderValue = New Sforce.SessionHeader
binding.SessionHeaderValue.sessionId = loginRes.sessionId
binding.SessionHeaderValue.sessionId = loginRes.sessionId
Would this work. Will it really points to the assigned URL.
Thanks.