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 / November 2004

Tip: Looking for answers? Try searching our database.

valid data types to be passed to web methods???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Will - 21 Nov 2004 03:28 GMT
I have a web method in my web service that I would to have a command object
passed in as a parameter. But when I compile the service I get the following
error:

You must implement the Add(System.Data.DataRowView) method on
System.Data.DataView because it inherits from ICollection.

If I replace the parameter's data type to a string, it compiles. Do web
services only allow certain data types to be passed to web methods?

Wll
Martin Kulov - 21 Nov 2004 17:13 GMT
Hello Will,
As far as I can see this problem is not related to web services at all. You just have to implement ICollection::Add method probably to get your object serialized.

Regards,

Martin Kulov
www.codeattest.com
Will - 21 Nov 2004 21:07 GMT
How would I go about doing that, I'm a newbie to web services.

Thanks,

Will

> Hello Will,
> As far as I can see this problem is not related to web services at all. You just have to implement ICollection::Add method probably to get your
object serialized.

> Regards,
>
> Martin Kulov
> www.codeattest.com
Martin Kulov - 22 Nov 2004 08:00 GMT
Hi Will,

Open Class View (Ctrl+Shift+C) and locate your class. Expand it using the plus sign and locate the interface ICollectable. Right click over its method Add and choose Add/Override in the menu.
As I said this is not web service related issue so you may first try posting to other newsgroups.

Regards,

Martin Kulov
www.codeattest.com

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.