Typed Entity Collections and Webservices

Posts   
 
    
Bannis
User
Posts: 4
Joined: 22-Oct-2008
# Posted on: 10-Nov-2008 12:03:11   

Hello

I am using a webservice to collect data for my windows app. All works fine when I am just returning an EntityCollection but when I try and return something like EntityCollection<MyEntityName> I get an error saying it cannot convert to a dataset.

I have the schema importer all set up and everything works with my other windows forms using webservices, but it is the first time I am trying to return a "typed" entity collection.

Is this something I should be able to do or not?

Thanks

Bannis

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 10-Nov-2008 16:34:45   

Generic Types should not be used in WebServices.

Note: Generics aren't supported in webservices nor are polymorphic fetches using single entity instances.

The above is quoated from the following manual' section Generated code - XML Webservices / WCF support

Bannis
User
Posts: 4
Joined: 22-Oct-2008
# Posted on: 10-Nov-2008 17:00:13   

Thanks for answering Walaa!

I must have missed that..!

That solves a whole load of confusion!