<?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: Capture XML In WCF Service</title>
	<atom:link href="http://www.thereforesystems.com/capture-xml-in-wcf-service/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thereforesystems.com/capture-xml-in-wcf-service/</link>
	<description>a learning effort by Deepak Kapoor</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:29:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: elaine</title>
		<link>http://www.thereforesystems.com/capture-xml-in-wcf-service/comment-page-1/#comment-219311</link>
		<dc:creator>elaine</dc:creator>
		<pubDate>Wed, 11 Jan 2012 15:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/capture-xml-in-wcf-service/#comment-219311</guid>
		<description>I have a problem with the Form1 under captureXML.client 

cannot find namespace 

CaptureXML.Service client = new CaptureXML.Service();</description>
		<content:encoded><![CDATA[<p>I have a problem with the Form1 under captureXML.client </p>
<p>cannot find namespace </p>
<p>CaptureXML.Service client = new CaptureXML.Service();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hakkai</title>
		<link>http://www.thereforesystems.com/capture-xml-in-wcf-service/comment-page-1/#comment-181323</link>
		<dc:creator>hakkai</dc:creator>
		<pubDate>Thu, 27 Oct 2011 03:55:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/capture-xml-in-wcf-service/#comment-181323</guid>
		<description>I&#039;m looking for something that could sniff over the wire.
Do you have any idea for it? Thanks</description>
		<content:encoded><![CDATA[<p>I&#8217;m looking for something that could sniff over the wire.<br />
Do you have any idea for it? Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viji</title>
		<link>http://www.thereforesystems.com/capture-xml-in-wcf-service/comment-page-1/#comment-180723</link>
		<dc:creator>Viji</dc:creator>
		<pubDate>Tue, 25 Oct 2011 13:39:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/capture-xml-in-wcf-service/#comment-180723</guid>
		<description>My requirement is to log SOAP request and SAOP response in the WCF service inside Service method call itself.
Can you please help me on this?</description>
		<content:encoded><![CDATA[<p>My requirement is to log SOAP request and SAOP response in the WCF service inside Service method call itself.<br />
Can you please help me on this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dotNet</title>
		<link>http://www.thereforesystems.com/capture-xml-in-wcf-service/comment-page-1/#comment-167328</link>
		<dc:creator>dotNet</dc:creator>
		<pubDate>Mon, 26 Sep 2011 14:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/capture-xml-in-wcf-service/#comment-167328</guid>
		<description>Very helpful piece of code. No one else has attempted anything similar. Thanks for that. What I am looking for is slightly different. I am consuming an external service. I have no control over this third party service. I need to capture data sent and received. (Something completely opposite to what you have implemented.) :-)</description>
		<content:encoded><![CDATA[<p>Very helpful piece of code. No one else has attempted anything similar. Thanks for that. What I am looking for is slightly different. I am consuming an external service. I have no control over this third party service. I need to capture data sent and received. (Something completely opposite to what you have implemented.) :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://www.thereforesystems.com/capture-xml-in-wcf-service/comment-page-1/#comment-126919</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Thu, 07 Jul 2011 00:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/capture-xml-in-wcf-service/#comment-126919</guid>
		<description>Shan,

I regenerated the proxy and it works fine now. I suggest that you do the same.</description>
		<content:encoded><![CDATA[<p>Shan,</p>
<p>I regenerated the proxy and it works fine now. I suggest that you do the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shan</title>
		<link>http://www.thereforesystems.com/capture-xml-in-wcf-service/comment-page-1/#comment-126585</link>
		<dc:creator>Shan</dc:creator>
		<pubDate>Wed, 06 Jul 2011 04:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/capture-xml-in-wcf-service/#comment-126585</guid>
		<description>Hi Deepak,

First of all thanks for the great code,am trying to write a WCF to grab xml message from MSMQ and route to another queue.

Just downloaded your code and convert the version to VS2010 but when try to build i got these below errors,can you pls advise me what am missing here ?

Error	1	The type or namespace name &#039;Client&#039; does not exist in the namespace &#039;CaptureXML.Client.CaptureXML&#039; (are you missing an assembly reference?)	C:\CRS_PROJECT\CaptureXML\CaptureXML.Client\Service References\CaptureXML.Service\Reference.cs	23	56	CaptureXML.Client</description>
		<content:encoded><![CDATA[<p>Hi Deepak,</p>
<p>First of all thanks for the great code,am trying to write a WCF to grab xml message from MSMQ and route to another queue.</p>
<p>Just downloaded your code and convert the version to VS2010 but when try to build i got these below errors,can you pls advise me what am missing here ?</p>
<p>Error	1	The type or namespace name &#8216;Client&#8217; does not exist in the namespace &#8216;CaptureXML.Client.CaptureXML&#8217; (are you missing an assembly reference?)	C:\CRS_PROJECT\CaptureXML\CaptureXML.Client\Service References\CaptureXML.Service\Reference.cs	23	56	CaptureXML.Client</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://www.thereforesystems.com/capture-xml-in-wcf-service/comment-page-1/#comment-110202</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Tue, 31 May 2011 23:14:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/capture-xml-in-wcf-service/#comment-110202</guid>
		<description>Hi Brandon,

You have hooked the events, right?

 item.RaiseRequestReceived +=
          new EventHandler&lt;InspectorEventArgs&gt;(Form1_RaiseRequestReceived);
item.RaiseSendingReply +=
          new EventHandler&lt;InspectorEventArgs&gt;(Form1_RaiseSendingReply);

It should work as I have been using this code in many projects. I did modify it slightly for some work I did recently but it was only because the host is not a Windows Forms app. 

I can have a look at your code if you like.

Regards,

Deepak</description>
		<content:encoded><![CDATA[<p>Hi Brandon,</p>
<p>You have hooked the events, right?</p>
<p> item.RaiseRequestReceived +=<br />
          new EventHandler<inspectoreventargs>(Form1_RaiseRequestReceived);<br />
item.RaiseSendingReply +=<br />
          new EventHandler</inspectoreventargs><inspectoreventargs>(Form1_RaiseSendingReply);</p>
<p>It should work as I have been using this code in many projects. I did modify it slightly for some work I did recently but it was only because the host is not a Windows Forms app. </p>
<p>I can have a look at your code if you like.</p>
<p>Regards,</p>
<p>Deepak</inspectoreventargs></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon Truong</title>
		<link>http://www.thereforesystems.com/capture-xml-in-wcf-service/comment-page-1/#comment-109122</link>
		<dc:creator>Brandon Truong</dc:creator>
		<pubDate>Mon, 30 May 2011 02:36:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/capture-xml-in-wcf-service/#comment-109122</guid>
		<description>Hi,
I got the web services working but there is no request and response date showing. Look like the events don&#039;t get fired. Can you please advice on this?

Cheers,</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I got the web services working but there is no request and response date showing. Look like the events don&#8217;t get fired. Can you please advice on this?</p>
<p>Cheers,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Baltimore</title>
		<link>http://www.thereforesystems.com/capture-xml-in-wcf-service/comment-page-1/#comment-39075</link>
		<dc:creator>Joe Baltimore</dc:creator>
		<pubDate>Wed, 29 Sep 2010 20:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/capture-xml-in-wcf-service/#comment-39075</guid>
		<description>This is a great example!  Can you tell me if it is tied to a SOAP-based implementation of WCF?  I am trying to take your principals here and merge them into a REST-based implementation I have, and am always getting a NULL message (In InspectorEventArgs).

Any thoughts on how we might do this in a REST-based WCF Service?

Is there a different class that I must use to account for this when I configure the Behavior?

I have a Win32 Service that we host our REST-based WCF service in.</description>
		<content:encoded><![CDATA[<p>This is a great example!  Can you tell me if it is tied to a SOAP-based implementation of WCF?  I am trying to take your principals here and merge them into a REST-based implementation I have, and am always getting a NULL message (In InspectorEventArgs).</p>
<p>Any thoughts on how we might do this in a REST-based WCF Service?</p>
<p>Is there a different class that I must use to account for this when I configure the Behavior?</p>
<p>I have a Win32 Service that we host our REST-based WCF service in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AC</title>
		<link>http://www.thereforesystems.com/capture-xml-in-wcf-service/comment-page-1/#comment-38308</link>
		<dc:creator>AC</dc:creator>
		<pubDate>Fri, 24 Sep 2010 20:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/capture-xml-in-wcf-service/#comment-38308</guid>
		<description>While the WCF IDispatchMessageInspector does give you access to the messages xml request it does not give you access to the true raw message if there is an issue with it.

{... Error reading body: System.Xml.XmlException: Start element &#039;plan:req&#039; does not match end element &#039;plan:Echo&#039;. Line 15, position 18. ...}	System.ServiceModel.Channels.Message {System.ServiceModel.Channels.BufferedMessage}

WCF should give you a way to get to the raw message data prior to the xml deserialzation.

The value of true message logging is you can log messages that are good and messages that are bad, and IDispatchMessageInspector only allows good, also I would not expect a non-development box to use WCF Tracing, nor would that type of tool be allowed in a production install of a product.</description>
		<content:encoded><![CDATA[<p>While the WCF IDispatchMessageInspector does give you access to the messages xml request it does not give you access to the true raw message if there is an issue with it.</p>
<p>{&#8230; Error reading body: System.Xml.XmlException: Start element &#8216;plan:req&#8217; does not match end element &#8216;plan:Echo&#8217;. Line 15, position 18. &#8230;}	System.ServiceModel.Channels.Message {System.ServiceModel.Channels.BufferedMessage}</p>
<p>WCF should give you a way to get to the raw message data prior to the xml deserialzation.</p>
<p>The value of true message logging is you can log messages that are good and messages that are bad, and IDispatchMessageInspector only allows good, also I would not expect a non-development box to use WCF Tracing, nor would that type of tool be allowed in a production install of a product.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

