TypedDataSet doesnot pass correctly in Web service

D

David

Hi,
I wrote (not using an automatic tool) a costum DataSet, called MyDataSet, that holds only costum DataTables, called MyDataTable that holds only MyDataRows.
MyDataSet derives from DataSet, MyDataTable derives from DataTable, and MyDataRow from DataRow. The Tables collection of MyDataSet holds only tables of type MyDataTable. Then, I wrote a web method that returns MyDataSet.
When I consume the method, I can see in the debuger that in the server side, the objects are created correctlly. But when the answer returns to the client side, the answer is indeed of type MyDataSet, but the tables in the Tables collection are just DataTables (and not MyDataTable, as was in the server side).
I think that I have a problem with the XmlSerialization of MyDataTables.
How can I fix this bug?
Thanks, David
 
S

Sahil Malik

Do you have the exactly correct dll describing the typed dataset on both the client and the server?

- Sahil Malik
Independent Consultant
You can reach me thru my blog at - http://www.dotnetjunkies.com/weblog/sahilmalik/



Hi,
I wrote (not using an automatic tool) a costum DataSet, called MyDataSet, that holds only costum DataTables, called MyDataTable that holds only MyDataRows.
MyDataSet derives from DataSet, MyDataTable derives from DataTable, and MyDataRow from DataRow. The Tables collection of MyDataSet holds only tables of type MyDataTable. Then, I wrote a web method that returns MyDataSet.
When I consume the method, I can see in the debuger that in the server side, the objects are created correctlly. But when the answer returns to the client side, the answer is indeed of type MyDataSet, but the tables in the Tables collection are just DataTables (and not MyDataTable, as was in the server side).
I think that I have a problem with the XmlSerialization of MyDataTables.
How can I fix this bug?
Thanks, David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top