8
shouts

Comparing Text and Binary Serialization in WCF - Tomas Restrepo

posted by StevesSteves 251 days, 17 hours, 37 minutes ago
Tuesday, July 07, 2009 5:38:56 AM GMT

A question I recently ran into asked about comparing message sizes when using the default Text Message Encoder used by most bindings in WCF with the Binary Message Encoder used by the TcpBinding, without going through the entire WCF stack and having to use a protocol analyzer.

Here’s a sample application that just serializes an object using the DataContractSerializer and then runs it through both message encoders and presents the results:using System; usin...

category: Web Service | clicked: 51 | | source: winterdom.com | show counter code
tags: Serialization, WCF, Web Service