Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / January 2006

Tip: Looking for answers? Try searching our database.

ADO.NET 2.0, WebMethods and datatable strange behavior

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
A.M-SG - 30 Jan 2006 21:09 GMT
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/

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.