How to pass ICollection using a WebService

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

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

Thanks
Christian
 
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.
 
Back
Top