<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Comparing Text and Binary Serialization in WCF</title>
	<atom:link href="http://winterdom.com/2009/07/comparing-text-and-binary-serialization-in-wcf/feed" rel="self" type="application/rss+xml" />
	<link>http://winterdom.com/2009/07/comparing-text-and-binary-serialization-in-wcf</link>
	<description>by dæmons be driven</description>
	<lastBuildDate>Thu, 11 Mar 2010 20:28:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Drew Noakes</title>
		<link>http://winterdom.com/2009/07/comparing-text-and-binary-serialization-in-wcf/comment-page-1#comment-1063</link>
		<dc:creator>Drew Noakes</dc:creator>
		<pubDate>Thu, 30 Jul 2009 13:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://winterdom.com/2009/07/comparing-text-and-binary-serialization-in-wcf#comment-1063</guid>
		<description>Thanks for this post.  I distilled the methods above into one:


private static byte[] Serialise(object obj, MessageEncodingBindingElement encoding)
{
    encoding.MessageVersion = MessageVersion.Soap12;
    var stream = new MemoryStream();
    Message message = Message.CreateMessage(MessageVersion.Soap12, &quot;&quot;, obj, new DataContractSerializer(obj.GetType()));
    encoding.CreateMessageEncoderFactory().Encoder.WriteMessage(message, stream);
    return stream.ToArray();
}



...where &#039;encoding&#039; is either TextMessageEncodingBindingElement or BinaryMessageEncodingBindingElement.</description>
		<content:encoded><![CDATA[<p>Thanks for this post.  I distilled the methods above into one:</p>
<p>private static byte[] Serialise(object obj, MessageEncodingBindingElement encoding)<br />
{<br />
    encoding.MessageVersion = MessageVersion.Soap12;<br />
    var stream = new MemoryStream();<br />
    Message message = Message.CreateMessage(MessageVersion.Soap12, &#8220;&#8221;, obj, new DataContractSerializer(obj.GetType()));<br />
    encoding.CreateMessageEncoderFactory().Encoder.WriteMessage(message, stream);<br />
    return stream.ToArray();<br />
}</p>
<p>&#8230;where &#8216;encoding&#8217; is either TextMessageEncodingBindingElement or BinaryMessageEncodingBindingElement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DotNetShoutout</title>
		<link>http://winterdom.com/2009/07/comparing-text-and-binary-serialization-in-wcf/comment-page-1#comment-1022</link>
		<dc:creator>DotNetShoutout</dc:creator>
		<pubDate>Tue, 07 Jul 2009 05:38:57 +0000</pubDate>
		<guid isPermaLink="false">http://winterdom.com/2009/07/comparing-text-and-binary-serialization-in-wcf#comment-1022</guid>
		<description>&lt;strong&gt;Comparing Text and Binary Serialization in WCF - Tomas Restrepo...&lt;/strong&gt;

Thank you for submitting this cool story - Trackback from DotNetShoutout...</description>
		<content:encoded><![CDATA[<p><strong>Comparing Text and Binary Serialization in WCF &#8211; Tomas Restrepo&#8230;</strong></p>
<p>Thank you for submitting this cool story &#8211; Trackback from DotNetShoutout&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: New and Notable 338 : Sam Gentile's Blog (if (DeveloperTask == Communication &#38;&#38; OS == Windows)</title>
		<link>http://winterdom.com/2009/07/comparing-text-and-binary-serialization-in-wcf/comment-page-1#comment-1021</link>
		<dc:creator>New and Notable 338 : Sam Gentile's Blog (if (DeveloperTask == Communication &#38;&#38; OS == Windows)</dc:creator>
		<pubDate>Mon, 06 Jul 2009 18:22:10 +0000</pubDate>
		<guid isPermaLink="false">http://winterdom.com/2009/07/comparing-text-and-binary-serialization-in-wcf#comment-1021</guid>
		<description>[...] Comparing Text and Binary Serialization in WCF [...]</description>
		<content:encoded><![CDATA[<p>[...] Comparing Text and Binary Serialization in WCF [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Winterdom » Blog Archive » Comparing Text and Binary Serialization &#8230; &#124; XML Developer</title>
		<link>http://winterdom.com/2009/07/comparing-text-and-binary-serialization-in-wcf/comment-page-1#comment-1012</link>
		<dc:creator>Winterdom » Blog Archive » Comparing Text and Binary Serialization &#8230; &#124; XML Developer</dc:creator>
		<pubDate>Thu, 02 Jul 2009 20:36:13 +0000</pubDate>
		<guid isPermaLink="false">http://winterdom.com/2009/07/comparing-text-and-binary-serialization-in-wcf#comment-1012</guid>
		<description>[...] Originally posted here: Winterdom » Blog Archive » Comparing Text and Binary Serialization &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] Originally posted here: Winterdom » Blog Archive » Comparing Text and Binary Serialization &#8230; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
