﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/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>Hacking of WCF's OperationContext</title><link />http://developers.de/blogs/damir_dobric/archive/2006/10/20/980.aspx<description>Sometimes you may require, that every message you send in context of calling of an operation, has some custom header. This should not be a big problem by implementing of messages on the messaging layer. However you may want to stay on the operation level</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>WCF: How to append header to HTTP Request?</title><link />http://developers.de/blogs/damir_dobric/archive/2006/10/20/980.aspx#191883<pubdate>Fri, 03 Jun 2011 22:36:54 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:191883</guid><dc:creator>DamirDobric</dc:creator><description>&lt;p&gt;Long time ago I have described how to inject the message header in WCF message by using of Operation&lt;/p&gt;
&lt;img src="http://developers.de/aggbug.aspx?PostID=191883" width="1" height="1"&gt;</description></item><item><title>WCF: How to append header to HTTP Request?</title><link />http://developers.de/blogs/damir_dobric/archive/2006/10/20/980.aspx#191885<pubdate>Fri, 03 Jun 2011 22:27:37 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:191885</guid><dc:creator>Damir Dobric Posts</dc:creator><description>&lt;p&gt;Long time ago I have described how to inject the message header in WCF message by using of Operation&lt;/p&gt;
&lt;img src="http://developers.de/aggbug.aspx?PostID=191885" width="1" height="1"&gt;</description></item><item><title>WCF: How to append header to HTTP Request?</title><link />http://developers.de/blogs/damir_dobric/archive/2006/10/20/980.aspx#191887<pubdate>Fri, 03 Jun 2011 22:25:32 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:191887</guid><dc:creator>Damir Dobric Posts</dc:creator><description>&lt;p&gt;Long time ago I have described how to inject the message header in WCF message by using of Operation&lt;/p&gt;
&lt;img src="http://developers.de/aggbug.aspx?PostID=191887" width="1" height="1"&gt;</description></item><item><title>re: Hacking of WCF's OperationContext</title><link />http://developers.de/blogs/damir_dobric/archive/2006/10/20/980.aspx#9294<pubdate>Wed, 25 Nov 2009 11:43:30 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:9294</guid><dc:creator>Anjan Saha</dc:creator><description>&lt;p&gt;Ohh! yes..i was looking at Silverlight 2.0 onwards. You are right mate, the support was given then. BTW, did you think about &amp;nbsp;Token based security approach in Silverlight using this approach where you pass the token in the SOAP header.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=9294" width="1" height="1"&gt;</description></item><item><title>re: Hacking of WCF's OperationContext</title><link />http://developers.de/blogs/damir_dobric/archive/2006/10/20/980.aspx#9056<pubdate>Sat, 14 Nov 2009 12:34:46 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:9056</guid><dc:creator>Damir Dobric</dc:creator><description>&lt;p&gt;Hi Anjan,&lt;/p&gt;
&lt;p&gt;I know that it does not work, because at the date of posting there was nor Silverlight at all (more or less) :)&lt;/p&gt;
&lt;p&gt;Since few months this works in Silverlight too.&lt;/p&gt;
&lt;p&gt;For more information take a look here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://developers.de/blogs/damir_dobric/archive/2009/02/19/manipulating-of-message-header-in-silverlight.aspx"&gt;developers.de/.../manipulating-of-message-header-in-silverlight.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Damir&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=9056" width="1" height="1"&gt;</description></item><item><title>re: Hacking of WCF's OperationContext</title><link />http://developers.de/blogs/damir_dobric/archive/2006/10/20/980.aspx#9051<pubdate>Sat, 14 Nov 2009 07:11:08 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:9051</guid><dc:creator>Anjan Saha</dc:creator><description>&lt;p&gt;It does work in the Silverlight Platform. I am able to capture the session key on the service side. Note this how the call will be at the service:&lt;/p&gt;
&lt;p&gt; object i = OperationContext.Current.RequestContext.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RequestMessage.Headers.GetHeader&amp;lt;string&amp;gt;(“SessionKey”, “&lt;a rel="nofollow" target="_new" href="http://daenet.eu/SessionSharing"&gt;daenet.eu/SessionSharing&lt;/a&gt;);&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=9051" width="1" height="1"&gt;</description></item><item><title>Manipulating of Message Header in Silverlight</title><link />http://developers.de/blogs/damir_dobric/archive/2006/10/20/980.aspx#4062<pubdate>Thu, 19 Feb 2009 22:44:01 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:4062</guid><dc:creator>Damir Dobric Posts</dc:creator><description>&lt;p&gt;Almost two years ago I have posted in &amp;quot; Hacking of WCF&amp;#39;s OperationContext &amp;quot; about manipulating&lt;/p&gt;
&lt;img src="http://developers.de/aggbug.aspx?PostID=4062" width="1" height="1"&gt;</description></item><item><title>re: Hacking of WCF's OperationContext</title><link />http://developers.de/blogs/damir_dobric/archive/2006/10/20/980.aspx#2371<pubdate>Thu, 17 Jul 2008 10:15:32 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:2371</guid><dc:creator>Damir Dobric</dc:creator><description>&lt;p&gt;Note that this does not work on Silverlight platform.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=2371" width="1" height="1"&gt;</description></item></channel></rss>