Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 22nd, 2004, 06:12 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataTables and Web Services

I'm writing a web service and would like the function to return a dataset,datatable, or datarow. Everytime I try returning one of these objects I get an error. It reads as follows:

"System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: The type System.Data.DataTable was not expected...."

Any ideas on what this means? Is it even possible for a web service to return these data types?

Also, can you pass a connection, an ODBC connection to be specefic, into a web service as a parameter? That too generates errors.

Thanks for your help.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Services sh.rajkumar ASP.NET 1.0 and 1.1 Professional 1 May 29th, 2006 12:24 AM
Web services hrudanand Apache Tomcat 0 March 27th, 2006 02:08 PM
Web Services fuehrer C# 1 May 2nd, 2005 12:28 PM
Web Services Error (Ch18) - No Web Disc. Info. ElPato BOOK: Beginning ASP.NET 1.0 2 April 13th, 2005 03:27 PM
Web Services qadeerahmad Forum and Wrox.com Feedback 3 August 7th, 2004 01:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.