You may want to check out the code here:
While not updated for the official release of .NET Framework 3.5 SP1 yet, it shows how to use DataContract serialization with the Entity Framework pretty extensively. There is also a "testing out the entity bag" article here:
What sorts of problems are you running into?
I also posted the issue here:
Let me summerize.
1. I have EDM and an entity pointing to 2 tables
2. I am not using Data Services but WFC custom interface/Contract receiving and returning the above entity
3. The WCF service is all set and I test run it using a simple call returning an integer - It works
4. Now, when I call the interface returning the IEnumerable<Above Entity>, it shows the following error
"An error occurred while receiving the HTTP response to http://localhost:8123/TradeXModel. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details."
I was able to narrow it down to the problem of returning IEnumrable<T> from a WCF call.
I am yet to find a good solution except working it out with and array of T.
I also looked at the EntityBag but would like to see a built-in solution.
Please post any other solution.
I would really like to know if the problem described in the link below has been resolved,
EntityBag is another level of abstraction that I would like to avoid. Is it going to be included in the Entity Framework release?
In the above link SinclairSchuller and Lary_c has posted the exact points that I am facing today with SP1 installed !
I am running all this on WIN XP SP2 box.