ryudice
ryudice

Reputation: 37366

Send a List<Interface> as WCF method parameter

How can I send a generic list of the type of an interface to a WCF method? the problem I have is that the client generated the list as List<object> instead of using the interface.

Upvotes: 1

Views: 893

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038730

That's probably because the client doesn't know what implementations exist for this interface as they are not part of the exposed metadata. You could use known types to include those possible implementation in the WSDL.

Upvotes: 6

Related Questions