OverviewThis Example Shows how to create a webservice which returns a DataSet and a Client Which displays the DataSet in a Grid.DescriptionThis Example Shows how to create a webservice which returns a DataSet and a Client Which displays the DataSet in a Grid.Source Code*** WEBSERVICEOpen a New WebService project Lets Call It WebService1Create a Stock Table on SQL Desktop Edition with the Following FieldsStock Code,Description,Price(Can be anything you want), and Add some dummy data.Create a Method as the Code Below// Put the Code Below in the using Sectionusing System.Data.SqlClient ;// this is the Actual Web Method[WebMethod]public DataSet GetData(){// First Create a New ConnectionSystem.Data.SqlClient.SqlConnection sqlConnection1 = new System.Data.SqlClient.SqlConnection();// Now Pass a Connection String To the ConnectionsqlConnection1.ConnectionString = "data source=MyServer-001\\SqlServerName;initial catalog=Stock;integrated securi" +"ty=SSPI;persist security info=False;workstation id=MyServer-001;packet size=40" +"96";// Now the Select statement you want to runstring select ="select * from stock ";// Create an AdapterSqlDataAdapter da = new SqlDataAdapter(select,sqlConnection1);// Create a New DataSetDataSet ds = new DataSet();// Fill The DataSet With the Contents of the Stock Tableda.Fill(ds , "stock");// Now Return ds which is a DataSetreturn(ds);}*****CLIENTNow For the Client