Creating large flat classes for data binding is one way of doing things. But you should check out this article before anyone decides to tightly couple your object model with your data representation. Mike has put this down beatifully.
http://blogs.msdn.com/mikechr/archive/2006/05/17/600697.aspx
When generating proxies for Data contracts that are generics types, we see that the hash of the name follows the types to avoid naming collision.To avoid this we can expose a type as follows
[DataContract(Name="ShapeWithDimensionsIn{0})]
public class Shape<T>
{
}
So a type like Shape<float> gets translated to ShapeWithDimensionInfloat. Check out this article for a full explanation.
‘{#}’ can be used to get the hash.
http://windowssdk.msdn.microsoft.com/en-us/library/ms731045.aspx
Generating sample xml date from schema’s seems to be quite a common task. You can find a really nice article on msdn which shows how to do this quite easily.
If you just want the code you can download it from here.
logKnownPii=“true”
<system.serviceModel>
<machineSettings enableLoggingKnownPii=”true”/>
</system.serviceModel>