I've created a strongly typed DataSet (Customers.xsd) using the xsd.exe
tool. I want to be able to access fields using
ds.Customer[0].CompanyName.
The problem is when I return this DataSet from a Web Service it adds
another Table to the DataSet that contains the data. I have to access
the data using ds.Tables[1].Rows[0]["CompanyName"].ToString(). This
defeats the whole purpose of using a strongly typed DataSet.
Thanks in advance for the help.
Francois Bonin [C# MVP] - 01 Jul 2005 11:01 GMT
Could you post the proxy code (i.e. reference.cs) generated when adding a
reference to your webservice?
Cois
> I've created a strongly typed DataSet (Customers.xsd) using the xsd.exe
> tool. I want to be able to access fields using
[quoted text clipped - 6 lines]
>
> Thanks in advance for the help.