<?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: Back in Action</title>
	<atom:link href="http://blog.iserviceoriented.com/index.php/2010/01/21/back-in-action/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.iserviceoriented.com/index.php/2010/01/21/back-in-action/</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/21/back-in-action/comment-page-1/#comment-261</link>
		<dc:creator>jezell</dc:creator>
		<pubDate>Thu, 13 May 2010 08:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iserviceoriented.com/?p=4#comment-261</guid>
		<description>In order to route raw traffic, you will need to set up a contract to send and receive the WCF Message class with request and reply actions set to &quot;*&quot;. 
 
public interface IRequestReceiver 
{ 
    [OperationContract(Action=&quot;*&quot;, ReplyAction=&quot;*&quot;)] 
    Message Receive(Message message); 
} 
 
On the service implementation class, set the AddressFilterMode attribute to Prefix to tell the service if you would like to be able to receive messages at any path below the address used by the service host instead of only at the specified url. 
 
Use a custom binding with WebMessageEncoder and HttpTransport on your service host and outgoing endpoints. If you want to force all traffic to be raw message data rather than validating the messages as XML, add a custom WebContentTypeMapper that always returns WebContentFormat.Raw.  
 
For each received message, you can use HttpRequestMessageProperty.Name to look up HTTP specific details such as the query string. The received message can be send  to the destination endpoint by using a ChannelFactory&lt;IRequestChannel&gt; to create a request channel with the same custom binding used by the request service. </description>
		<content:encoded><![CDATA[<p>In order to route raw traffic, you will need to set up a contract to send and receive the WCF Message class with request and reply actions set to &quot;*&quot;. </p>
<p>public interface IRequestReceiver<br />
{<br />
    [OperationContract(Action=&quot;*&quot;, ReplyAction=&quot;*&quot;)]<br />
    Message Receive(Message message);<br />
} </p>
<p>On the service implementation class, set the AddressFilterMode attribute to Prefix to tell the service if you would like to be able to receive messages at any path below the address used by the service host instead of only at the specified url. </p>
<p>Use a custom binding with WebMessageEncoder and HttpTransport on your service host and outgoing endpoints. If you want to force all traffic to be raw message data rather than validating the messages as XML, add a custom WebContentTypeMapper that always returns WebContentFormat.Raw.  </p>
<p>For each received message, you can use HttpRequestMessageProperty.Name to look up HTTP specific details such as the query string. The received message can be send  to the destination endpoint by using a ChannelFactory&lt;IRequestChannel&gt; to create a request channel with the same custom binding used by the request service.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://blog.iserviceoriented.com/index.php/2010/01/21/back-in-action/comment-page-1/#comment-258</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Wed, 12 May 2010 23:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iserviceoriented.com/?p=4#comment-258</guid>
		<description>Jesse, 
 
I&#039;m in a real bind.  For reasons outside of my control, I need to deploy a WCF, IIS-hosted service that is really a simple router for untyped XML messages delivered via an HTTP POST over SSL.  There are hundreds of legacy &quot;clients&quot; deployed that must be protected.  They simply call the existing &quot;service&quot; as content-type: application/xml, text/xml or text/plain...and deliver a simple XML body (content irrelevant to the service) with no SOAP or other wrapper/envelope content. 
 
I&#039;m a complete .NET novice and come from the JAVA world.  When I open VS 2008 or 2010, I don&#039;t know even where to begin.  Every availble template seems to assume a serializable contract between a client (under author&#039;s control) and the service.  I have no control over the clients and there is no serialization of objects here.  
 
I could use some help but I&#039;m bewildered trying to grasp C#, VS, .Net framework and WCF with few roadmaps to doing something that seems so simple if built from scratch using basic http/network functionality. 
 
I could use a template, solid guidance or a few hours of consulting support!  Please. 
 </description>
		<content:encoded><![CDATA[<p>Jesse, </p>
<p>I&#039;m in a real bind.  For reasons outside of my control, I need to deploy a WCF, IIS-hosted service that is really a simple router for untyped XML messages delivered via an HTTP POST over SSL.  There are hundreds of legacy &quot;clients&quot; deployed that must be protected.  They simply call the existing &quot;service&quot; as content-type: application/xml, text/xml or text/plain&#8230;and deliver a simple XML body (content irrelevant to the service) with no SOAP or other wrapper/envelope content. </p>
<p>I&#039;m a complete .NET novice and come from the JAVA world.  When I open VS 2008 or 2010, I don&#039;t know even where to begin.  Every availble template seems to assume a serializable contract between a client (under author&#039;s control) and the service.  I have no control over the clients and there is no serialization of objects here.  </p>
<p>I could use some help but I&#039;m bewildered trying to grasp C#, VS, .Net framework and WCF with few roadmaps to doing something that seems so simple if built from scratch using basic http/network functionality. </p>
<p>I could use a template, solid guidance or a few hours of consulting support!  Please.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
