How to pass ICollection using a WebService

G

Guest

Hi,

how can I pass a ICollection as a return value from a Webservice method?

Thanks
Christian
 
N

Nicholas Paldino [.NET/C# MVP]

Christian,

The idea of polymorphic types isn't really supported (in a great manner)
in web services yet. The reason for this is that the WSDL defines the types
that are returned, and there is nothing in there that allows you to specify
a programattic contract (an interface). You are better off passing a
concrete type back.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top