Groups | Blog | Home
all groups > dotnet web services enhancements > november 2004 >

dotnet web services enhancements : valid data types to be passed to web methods???


Will
11/20/2004 10:28:09 PM
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
11/21/2004 9:13:20 AM
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
11/21/2004 4:07:52 PM
How would I go about doing that, I'm a newbie to web services.


Thanks,

Will


[quoted text, click to view]
You just have to implement ICollection::Add method probably to get your
object serialized.
[quoted text, click to view]

Martin Kulov
11/22/2004 12:00:53 AM
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

AddThis Social Bookmark Button