You need to sign in to do that
Don't have an account?
muthuswi
Problem getting data in partner wsdl!!!
Hi
I am using partner wsdl (production), .net framework 1.1, and C#. I am changing sforce.binding.url dynamically to https://test.salesforce.com/services/Soap/c/8.0 to connect to sandbox instance. Login works fine but I am not getting any data from any of the entities thro' api calls. Can't I use partner wsdl (non sandbox) to connect both the instances (sandbox and production)? What could be the possible way to connect to both instances using a single wsdl? Is it possible?
Here is sample code:
if (sandBox == true)
binding.Url = @"https://test.salesforce.com/services/Soap/c/8.0";
else
binding.Url = @"https://www.salesforce.com/services/Soap/c/7.0";
Can anyone help me on this?
Thanks in advance.
Muthu.
Message Edited by muthuswi on 12-28-2006 12:14 PM
binding.Url = @"https://test.salesforce.com/services/Soap/c/7.0";
else
binding.Url = @"https://www.salesforce.com/services/Soap/u/7.0";
LoginResult _loginResult = binding.login(userid, password);
binding.SessionHeaderValue.sessionId = _loginResult.sessionId;
binding.Url = _loginResult.serverUrl;
Retrieve Date:
string qryTask = "select Id from Task";
QueryResult oResult = binding.query(qryTask);
{
Console.WriteLine(oResult.records[i].Id.ToString());
}
Yes. It works.
Thanks a lot Simon.
Muthu.