I'm quite new to WCF, and am trying to get to grips with it. I'm using the Entity Framework (Visual Studio 2010 Professional, .NET v4), and have been reading about using POCOs instead of sending EntityObject derived stuff across the wire.
It seems that WCF can't serialise the POCO proxies, so you either have to switch them off, or add code to serialise them. I found an MSDN article http://msdn.microsoft.com/en-us/library/ee705457.aspx that shows how to do this, as well as http://msdn.microsoft.com/en-us/library/dd456853.aspx
and http://msdn.microsoft.com/en-us/library/ee705457.aspx amongst others.
All in all, it seems that serialising POCO proxies is a standard thing to do. What I can't understand is why you would want to do this? From my brief, but fairly in-depth study of WCF, it seems to be a data service, and does not send anything but data across
the wire. If so, surely the proxies are useless as they won't manage the change tracking?
Have I got this completely wrong? I can't see what benefit you would get by serialising a proxy. Isn't that the whole point of self-tracking entities?
I would be grateful if someone can enlighten me, 'cos I'm confused!
If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at