Deserialize obj passed through webservice
<p>I have this situation: in a webservice solution I create a class (or entity) Car and, with Entity Data Model, I create its respective table on Db. Then I create a <code>GetCar()</code> webmethod that return an object Car serialized.</p>

<p>In a console solution I references the webservice and so I call the <code>GetCar()</code> webmethod getting the myCar result.</p>

<p>When I go to deserialize myCar through Car class, that belong to webservice reference, I have new object but its fields are empty.</p>

<p>Something like this..</p>

<pre><code>XmlSerializer mySerializer = new XmlSerializer(typeof(Service.Car));
Service.Car cr = (Service.Car)mySerializer.Deserialize(*myCar*);
</code></pre>

<p>What's wrong ?</p>
