Returning Generic List from a WCF service

Posted: 13th January 2010 in WCF

By default a WCF or ASMX service returns list as arrays. However, this can be overcome by amending the properties of the service proxy.

Right click on the service reference and choose configure service reference and you should be presented with a screen similar to the one below.
Configuring a service to return a generic list

Choose System.Collections.Generic.List from the drop down.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s