views:

10

answers:

0

I'm rather new to WCF and the Entity Framework, so bear with me.

I'm passing objects generated by the Entity Framework through a WCF service, and I want to be able to access said objects with both SOAP and REST. What I have currently works, but the outputted XML seems far more bloated than it needs to be. Here's an example response from a REST call:

http://www.nodarkthings.com/misc/movies.xml

Previously when I tried this using LINQ to SQL (that is, passing my L2S objects through the WCF service and getting them with a REST call) I had very concise responses that contained primarily property tags and their values. In other words, there were no EntityKey, EntitySet, etc. tags.

Is there a way to achieve this using the Entity Framework through WCF?

Edit: Also, it seems that methods passing/returning variables derived from EntityObjects will not work in the WCF Test Client. Any idea why?