Dear ladies and sirs.
Inspecting the soap-xml produced by WCF I notice that many fields appear with their default values. Is it possible to instruct WCF somehow to omit such fields in serialization?
Thanks.
Dear ladies and sirs.
Inspecting the soap-xml produced by WCF I notice that many fields appear with their default values. Is it possible to instruct WCF somehow to omit such fields in serialization?
Thanks.
Yes. If you're using DataContractSerializer, apply
[DataMember(EmitDefaultValue=false)]
to these fields.