<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Just the Headers</title><link>http://blogs.msdn.com/drnick/archive/2007/05/31/just-the-headers.aspx</link><description>How do I change the HTTP status code of the response that is sent back when using a one-way contract? The result of using a one-way contract is to automatically send back an empty HTTP response when the service method is called. Sending back this response</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Just the Headers</title><link>http://blogs.msdn.com/drnick/archive/2007/05/31/just-the-headers.aspx#3007429</link><pubDate>Thu, 31 May 2007 16:10:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3007429</guid><dc:creator>Alan Dean</dc:creator><description>&lt;p&gt;&amp;quot;On that message you can put an HttpResponseMessageProperty that has SuppressEntityBody set to true. SuppressEntityBody produces equivalent messages to a one-way contract that have HTTP headers but no body contents.&amp;quot;&lt;/p&gt;
&lt;p&gt;aka: a HEAD request, rather than a GET&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4"&gt;http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Close Your Proxies</title><link>http://blogs.msdn.com/drnick/archive/2007/05/31/just-the-headers.aspx#3010396</link><pubDate>Thu, 31 May 2007 20:01:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3010396</guid><dc:creator>Nicholas Allen's Indigo Blog</dc:creator><description>&lt;p&gt;Hey! Call Close on your client proxy objects once you're done using them! This is always a good idea,&lt;/p&gt;
</description></item><item><title>re: Just the Headers</title><link>http://blogs.msdn.com/drnick/archive/2007/05/31/just-the-headers.aspx#3011635</link><pubDate>Thu, 31 May 2007 21:55:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3011635</guid><dc:creator>Nicholas Allen</dc:creator><description>&lt;p&gt;The HTTP verb isn't really significant here because the client gets to pick the verb (could be anything) whereas the server is the one deciding not to send a body with the response. &amp;nbsp;A lot of SOAP processing is done with POST instead of GET so switching to one-way doesn't affect that.&lt;/p&gt;
</description></item><item><title>Interesting Finds: May 31, 2007</title><link>http://blogs.msdn.com/drnick/archive/2007/05/31/just-the-headers.aspx#3011925</link><pubDate>Thu, 31 May 2007 22:32:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3011925</guid><dc:creator>Jason Haley</dc:creator><description /></item><item><title>re: Just the Headers</title><link>http://blogs.msdn.com/drnick/archive/2007/05/31/just-the-headers.aspx#3030303</link><pubDate>Sat, 02 Jun 2007 00:20:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3030303</guid><dc:creator>Juan Wajnerman</dc:creator><description>&lt;p&gt;I think (if I understand well your approach) that you will loose the &amp;quot;fire-and-forget&amp;quot; behavior of one way operations. Am I correct?&lt;/p&gt;
&lt;p&gt;Unless there is a way to return the empty message and continue with the execution flow somewhere in WCF stack. Is it possible?&lt;/p&gt;</description></item><item><title>re: Just the Headers</title><link>http://blogs.msdn.com/drnick/archive/2007/05/31/just-the-headers.aspx#3034593</link><pubDate>Sat, 02 Jun 2007 06:00:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3034593</guid><dc:creator>Nicholas Allen</dc:creator><description>&lt;p&gt;Juan-&lt;/p&gt;
&lt;p&gt;That's correct. &amp;nbsp;By pushing the message processing up the stack, you lose the fire and forget behavior. &amp;nbsp;There is a way though to send back an empty message but still continue on with execution. &amp;nbsp;That way does require writing a channel. &amp;nbsp;We have written such a OneWay channel- &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/drnick/archive/2006/08/16/702174.aspx"&gt;http://blogs.msdn.com/drnick/archive/2006/08/16/702174.aspx&lt;/a&gt;. &amp;nbsp;The extensibility exists in the product for someone to write a similar channel or to modify the output of our OneWay channel to meet their needs.&lt;/p&gt;
</description></item></channel></rss>