I am connecting with salesforce api, I have imported Salesforce enterprise Wsdl to my project.
I can authenticate user but I am having Problem while querying records, I'm not sure what else I am missing and how to solve this
No overload for method 'query' takes 5 arguments
//create SOQL query statement
string query = "SELECT Name, AccountNumber, BillingState FROM Account WHERE BillingState = 'CA'";
enterprise.QueryResult result = queryClient.query(
header, //sessionheader
null, //queryoptions
null, //mruheader
null, //packageversion
query);
//cast query results
IEnumerable<enterprise.Account> accountList = result.records.Cast<enterprise.Account>();
//show results
foreach (var account in accountList)
{
Console.WriteLine(string.Format("Account Name: {0}", account.Name));
}