<?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: Message: The Most Important WCF Class</title>
	<atom:link href="http://blog.iserviceoriented.com/index.php/2010/01/22/message-the-most-important-class-in-wcf/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.iserviceoriented.com/index.php/2010/01/22/message-the-most-important-class-in-wcf/</link>
	<description>Become a WCF Ninja - WCF Tips and Tricks</description>
	<lastBuildDate>Thu, 13 May 2010 08:37:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jezell</title>
		<link>http://blog.iserviceoriented.com/index.php/2010/01/22/message-the-most-important-class-in-wcf/comment-page-1/#comment-14</link>
		<dc:creator>jezell</dc:creator>
		<pubDate>Sun, 24 Jan 2010 01:16:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iserviceoriented.com/?p=8#comment-14</guid>
		<description>WCF certainly doesn&#039;t go out of it&#039;s way to make messaging with anything other than interfaces and objects marked up with attributes easy, but it is possible. This topic is probably worth an entire blog post, so I&#039;ll write something up when a get a chance. </description>
		<content:encoded><![CDATA[<p>WCF certainly doesn&#039;t go out of it&#039;s way to make messaging with anything other than interfaces and objects marked up with attributes easy, but it is possible. This topic is probably worth an entire blog post, so I&#039;ll write something up when a get a chance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Confused by debugger</title>
		<link>http://blog.iserviceoriented.com/index.php/2010/01/22/message-the-most-important-class-in-wcf/comment-page-1/#comment-10</link>
		<dc:creator>Confused by debugger</dc:creator>
		<pubDate>Fri, 22 Jan 2010 22:56:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iserviceoriented.com/?p=8#comment-10</guid>
		<description>Thank you for responding so quickly! 
 
If I was using a socket I could just write bytes. Why do I have to use the none argument, the action argument and the byte[] argument? Is there a method that just takes a byte array? 
 
If I have to write a MessageEncoder why do you say WCF supports arbitrary bytes? Isn&#039;t that like saying sockets support WCF? 
 
Are you saying in 4.0 I do not have to write a MessageEncoder? 
 </description>
		<content:encoded><![CDATA[<p>Thank you for responding so quickly! </p>
<p>If I was using a socket I could just write bytes. Why do I have to use the none argument, the action argument and the byte[] argument? Is there a method that just takes a byte array? </p>
<p>If I have to write a MessageEncoder why do you say WCF supports arbitrary bytes? Isn&#039;t that like saying sockets support WCF? </p>
<p>Are you saying in 4.0 I do not have to write a MessageEncoder?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jezell</title>
		<link>http://blog.iserviceoriented.com/index.php/2010/01/22/message-the-most-important-class-in-wcf/comment-page-1/#comment-9</link>
		<dc:creator>jezell</dc:creator>
		<pubDate>Fri, 22 Jan 2010 22:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iserviceoriented.com/?p=8#comment-9</guid>
		<description>The component responsible for turning the representation of the message into data is the MessageEncoder. You see the base 64 tag because you are using the text message encoder. If you want to send raw binary data, you can implement a custom message encoder class with a custom xml dictionary writer that only writes out the raw byte array and writes it out directly as bytes. This is how the byte stream message encoding in 4.0 works. Message encoders are a pretty easy thing to implement compared to something like channels. </description>
		<content:encoded><![CDATA[<p>The component responsible for turning the representation of the message into data is the MessageEncoder. You see the base 64 tag because you are using the text message encoder. If you want to send raw binary data, you can implement a custom message encoder class with a custom xml dictionary writer that only writes out the raw byte array and writes it out directly as bytes. This is how the byte stream message encoding in 4.0 works. Message encoders are a pretty easy thing to implement compared to something like channels.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Confused by debugger</title>
		<link>http://blog.iserviceoriented.com/index.php/2010/01/22/message-the-most-important-class-in-wcf/comment-page-1/#comment-8</link>
		<dc:creator>Confused by debugger</dc:creator>
		<pubDate>Fri, 22 Jan 2010 22:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iserviceoriented.com/?p=8#comment-8</guid>
		<description>So if I create a message with a byte array as an argument with a version of none and I look in the debugger it looks like this  &lt;base64Binary xmlns=&quot;http://schemas.microsoft.com/2003/10/Serialization/&quot;&gt;BwAAAAAAAA==&lt;/base64Binary&gt; 
 
Is that XML? How do I get rid of those tags that are messing up my nice compact byte array? Is this just a visual trick of the debugger? 
 
 
 
 
 
 </description>
		<content:encoded><![CDATA[<p>So if I create a message with a byte array as an argument with a version of none and I look in the debugger it looks like this  &lt;base64Binary xmlns=&quot;http://schemas.microsoft.com/2003/10/Serialization/&quot;&gt;BwAAAAAAAA==&lt;/base64Binary&gt; </p>
<p>Is that XML? How do I get rid of those tags that are messing up my nice compact byte array? Is this just a visual trick of the debugger?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jezell</title>
		<link>http://blog.iserviceoriented.com/index.php/2010/01/22/message-the-most-important-class-in-wcf/comment-page-1/#comment-6</link>
		<dc:creator>jezell</dc:creator>
		<pubDate>Fri, 22 Jan 2010 16:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iserviceoriented.com/?p=8#comment-6</guid>
		<description>No, there are no special pitfalls when dealing with non-SOAP messages. As long as you set the message version to none, you will be fine. If doing REST work, you can use the WebMessageEncoder. Additionally, .NET 4.0 adds ByteStreamMessageEncodingBindingElement. 
 
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.bytestreammessageencodingbindingelement(VS.100).aspx&quot; target=&quot;_blank&quot;&gt;http://msdn.microsoft.com/en-us/library/system.se...&lt;/a&gt; </description>
		<content:encoded><![CDATA[<p>No, there are no special pitfalls when dealing with non-SOAP messages. As long as you set the message version to none, you will be fine. If doing REST work, you can use the WebMessageEncoder. Additionally, .NET 4.0 adds ByteStreamMessageEncodingBindingElement. </p>
<p><a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.bytestreammessageencodingbindingelement(VS.100).aspx" target="_blank"></a><a href="http://msdn.microsoft.com/en-us/library/system.se.." rel="nofollow">http://msdn.microsoft.com/en-us/library/system.se..</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yaron Naveh</title>
		<link>http://blog.iserviceoriented.com/index.php/2010/01/22/message-the-most-important-class-in-wcf/comment-page-1/#comment-5</link>
		<dc:creator>Yaron Naveh</dc:creator>
		<pubDate>Fri, 22 Jan 2010 11:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iserviceoriented.com/?p=8#comment-5</guid>
		<description>I was actually doing a similar investigation some time ago to check how much abstract is it really. I was in a need to move totally binary messages in the channel stack. I didn&#039;t find any flaws then, but was a little afraid that the Message class is &quot;biased&quot; towards Soap. For example the division to &quot;headers&quot; and &quot;body&quot;, the addressing headers that magically fit the WS-Addressing standard etc. 
 
Based on your experience, if I want to take the Wcf channel stack framework, and use it with my own channels passing my own non-xml messages - am I expected to any specific pitfalls? </description>
		<content:encoded><![CDATA[<p>I was actually doing a similar investigation some time ago to check how much abstract is it really. I was in a need to move totally binary messages in the channel stack. I didn&#039;t find any flaws then, but was a little afraid that the Message class is &quot;biased&quot; towards Soap. For example the division to &quot;headers&quot; and &quot;body&quot;, the addressing headers that magically fit the WS-Addressing standard etc. </p>
<p>Based on your experience, if I want to take the Wcf channel stack framework, and use it with my own channels passing my own non-xml messages &#8211; am I expected to any specific pitfalls?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
