function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vimal Bhavsar 6Vimal Bhavsar 6 

Fetch data from Enterprise WSDL in Asp.ne C#

I want to get account name from this code all code is correct but i cant get classdb in my webservice can any one tell me that wht is classdb?

is it any apex class or what?

WebReference.SforceService service = new WebReference.SforceService();
        WebReference.LoginResult lr = service.login("vimal@annet.com", "Annet!2024Yvy54kpKT6eVTZEmLGuYEqSix");
        service.Url = lr.serverUrl;
        service.SessionHeaderValue = new WebReference.SessionHeader();
        service.SessionHeaderValue.sessionId = lr.sessionId;

String queryString = "Select Name from Account where Phone='1231231234'";
SqlDataReader dr = classdb.LoadReader(queryString) as SqlDataReader;

WebReference.Account nrProduct = new WebReference.Account();
        while (dr.Read())
        {
            nrProduct.Name = dr[0].ToString();
                }
  
        Response.Write(dr[0].ToString());
        dr.Close();