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
 

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top