[WebMethod] public string AnalyseMyData(string XMLCheckMe) { DataSet dsCheckMe = new DataSet(); StringReader sr = new StringReader(XMLCheckMe); dsCheckMe.ReadXml(sr, XmlReadMode.InferSchema); dsCheckMe.AcceptChanges(); }~~Bonnie
>[WebMethod] >public string AnalyseMyData(DataSet dsCheckMe) >{ > //here we just need to return a string detailing the contents of the passed dataset > string lcBlurb = string.Empty; > > //say how many tables > lcBlurb += "DataSet Contains " + dsCheckMe.Tables.Count.ToString() + " Tables : " + Environment.NewLine; > > for (int i = 0; i < dsCheckMe.Tables.Count; i++) > { > lcBlurb += "\tTable " + Convert.ToString(i+1) + " is called " + dsCheckMe.Tables [i].TableName + " and has " + dsCheckMe.Tables[i].Rows.Count.ToString() + " Records" + Environment.NewLine; > } > return lcBlurb; >} >>