The DataSource Window in VS2005 is not recognizing a DataSet served through a WebService
-
I've developed a webservice serving a data set. This is the code: ----------------------------------------------------------------- using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Data; using System.Data.SqlClient; [WebService(Namespace = "http://localhost/WSTest/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class ERPService : System.Web.Services.WebService { public ERPService () { } [WebMethod] public DataSet listaEntidades() { SqlConnection con = new SqlConnection("[hidden for security reasons]"); SqlDataAdapter daEntidade = new SqlDataAdapter("SELECT * FROM Entidade", con); DataSet ds = new DataSet(); con.Open(); daEntidade.Fill(ds, "Entidade"); con.Close(); return ds; } } ----------------------------------------------------------------- It works fine in the browser but when I create a new window project and try to add this service as a data source to bind it to a DataGridView, the interface does not add the DataSource to the window. It reconizes the service ok the reference is added to the project but no data source is displayed. What's wrong? André Pires