Return Data Contract List<t> validation error??

Topics: General Discussion Forum, Service Factory Modeling Edition Forum
Jul 11, 2008 at 12:05 AM
Hi Newbie here,

Ran through hands-on and it all works great.

I want to return a collection though, not just 1 entity (as per xsd eg in hands-on).

To do this i created a Data Contract entity & collection (list<t>), then changed the demand response from xsd message to message & added new data contract message part which is my DC collection type.

When i validate though i get the following error...

"Error 3 You must use the DataContractSerializer on the Service Contract model since there are message contracts on the Service contract model referencing a Data Contract Model which uses the WCF extender ..."

I just can't seem to figure this out??

Jul 11, 2008 at 12:38 AM

ok figured it out... needed to change serializer type to DataContractSerializer in the properties of service contract (just like error message says!)

It just took me a while to find actual property.