WCF - (Custom) binary serialisation.
Posted
by Barguast
on Stack Overflow
See other posts from Stack Overflow
or by Barguast
Published on 2010-03-19T17:15:18Z
Indexed on
2010/03/19
18:11 UTC
Read the original article
Hit count: 291
I want to be able to query my database over the web, and I am wanting to use a WCF service to handle the requests and results. The problem is that due to the amount of data that can potentially be returned from these queries, I'm worried about how these results will be serialised over the network. For example, I can imagine the XML serialisation looking like:
<Results>
<Person Name="Adam" DateOfBirth="01/02/1985" />
<Person Name="Bob" DateOfBirth="04/07/1986" />
</Results>
And the binary serialisation containing types names and other (unnecessary) metadata. Perhaps even the type name for each element in a collection? o_o
Ideally, I'd like to perform the serialisation of certain 'DataContract'-s myself so I can make it super-compact. Does anyone know if this is possible, or of any articles which explain how to do custom serialisation with WCF?
Thanks in advance
© Stack Overflow or respective owner