Hi,
I am using VS2005 and .NET 2.0
I have a WebMethod that accept a typed data table. I realized that whatever
rows that client sends to the SOAP server through the datatable, the
webmethod received an empty datatable!!
After spending several hours, I found that the only kind of data table that
I can pass it to a webmethod is detached datatable. If data table is
attached and part of a dataset, then the webmethod receives an empty
datatable!
Is that true? Or I am missing something?
Thank you,
Alan
Josh Twist - 31 Jan 2006 13:01 GMT
Hi Alan,
Sorry If I've got your hopes up that somebody has replied with a
solution - I haven't. However, saw your post and thought this article
might interest you.
http://www.hanselman.com/blog/ReturningDataSetsFromWebServicesIsTheSpawnOfSatanA
ndRepresentsAllThatIsTrulyEvilInTheWorld.aspx
Moving away from using DataSets/DataTables in the interface (WSDL) of
your web service will get you away from this problem and make your web
service better. Period.
Josh
http://www.thejoyofcode.com/