<?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"
	>
<channel>
	<title>Comments on: Writing BizTalk context properties to a message from a WCF service using behaviors</title>
	<atom:link href="http://www.richardhallgren.com/writing-biztalk-context-properties-to-a-message-from-a-wcf-service-using-behaviors/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.richardhallgren.com/writing-biztalk-context-properties-to-a-message-from-a-wcf-service-using-behaviors/</link>
	<description>.NET, BizTalk and integration focused scribbles</description>
	<pubDate>Tue, 06 Jan 2009 09:17:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Giri</title>
		<link>http://www.richardhallgren.com/writing-biztalk-context-properties-to-a-message-from-a-wcf-service-using-behaviors/#comment-291</link>
		<dc:creator>Giri</dc:creator>
		<pubDate>Wed, 29 Oct 2008 13:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardhallgren.com/writing-biztalk-context-properties-to-a-message-from-a-wcf-service-using-behaviors/#comment-291</guid>
		<description>Hi Richard,

Thanks for sharing the information. It's really useful. I tried with the instructions you have given and got the expected results.

When I exposed an orchestration as a wcf service, then also I was able to see the "WindowsUserName" in the context while debugging (using breakpoint). 

But I was unable to access this property inside the orchestration. I tried by adding the reference to the propertyschema project and tried with below code:
msgResponse.UserName = WCFCustomProperties.PropertySchema.WindowsUserName;

When the orchestration project is compiled it is giving the error     
"illegal use of identifier 
'WCFCustomProperties.PropertySchema.WindowsUserName' in an expression"

Can you please help how to access this promoted property inside an orchestration expression shape.

Thanks
Giri</description>
		<content:encoded><![CDATA[<p>Hi Richard,</p>
<p>Thanks for sharing the information. It&#8217;s really useful. I tried with the instructions you have given and got the expected results.</p>
<p>When I exposed an orchestration as a wcf service, then also I was able to see the &#8220;WindowsUserName&#8221; in the context while debugging (using breakpoint). </p>
<p>But I was unable to access this property inside the orchestration. I tried by adding the reference to the propertyschema project and tried with below code:<br />
msgResponse.UserName = WCFCustomProperties.PropertySchema.WindowsUserName;</p>
<p>When the orchestration project is compiled it is giving the error<br />
&#8220;illegal use of identifier<br />
&#8216;WCFCustomProperties.PropertySchema.WindowsUserName&#8217; in an expression&#8221;</p>
<p>Can you please help how to access this promoted property inside an orchestration expression shape.</p>
<p>Thanks<br />
Giri</p>
]]></content:encoded>
	</item>
</channel>
</rss>
