By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,224 Members | 1,120 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,224 IT Pros & Developers. It's quick & easy.

Return Strongly Typed Data Set from Web Service

P: n/a
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.

Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Are you sure that you aren't converting the typed dataset to an untyped
dataset? I mean do you have a common assembly with the customers typed
dataset and a reference to this common assembly in the provider and
consumer? I could be wrong though.

Gabriel Lozano-Morán

"HardBap" <ha*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
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.

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.