<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>WCF - Handling Generic Messages</title><link>http://weblogs.asp.net/pglavich/archive/2008/01/19/wcf-handling-generic-messages.aspx</link><description>I had a requirement for a client where we were upgrading a web site that had a business web service exposed, and we had to create a new service that was identical in operation to the old (from a consumer perspective). The situation we had though, was</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: WCF - Handling Generic Messages</title><link>http://weblogs.asp.net/pglavich/archive/2008/01/19/wcf-handling-generic-messages.aspx#7168248</link><pubDate>Thu, 13 Aug 2009 12:40:27 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7168248</guid><dc:creator>Mohamed Abdeen</dc:creator><author>Mohamed Abdeen</author><description>&lt;p&gt;hello &lt;/p&gt;
&lt;p&gt;thanks for your post, but can you tell me about the DomainObject and go more through the code of the ProcessMessage &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7168248" width="1" height="1"&gt;</description></item><item><title>re: WCF - Handling Generic Messages</title><link>http://weblogs.asp.net/pglavich/archive/2008/01/19/wcf-handling-generic-messages.aspx#7131399</link><pubDate>Sun, 21 Jun 2009 03:59:19 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7131399</guid><dc:creator>Chantellesomers</dc:creator><author>Chantellesomers</author><description>&lt;p&gt;hi&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7131399" width="1" height="1"&gt;</description></item><item><title>re: WCF - Handling Generic Messages</title><link>http://weblogs.asp.net/pglavich/archive/2008/01/19/wcf-handling-generic-messages.aspx#7109585</link><pubDate>Sat, 06 Jun 2009 11:22:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7109585</guid><dc:creator>Benjy</dc:creator><author>Benjy</author><description>&lt;p&gt;Interesting post. Did you ever find out why the object was coming through as NULL? Did it have something to do with the&amp;quot;Wrapping&amp;quot;? I had a similar problem when I was migrating a regular ASP.NET service to one hosted in Biztalk. The WSDL seemed fine and the calls came through but I had accidentally left the Biztalk option to &amp;quot;wrap&amp;quot; the messages (because BTS deals with multi-part message so wrapping is the default) and so i was getting nulls. Changing it to unwrapped worked fine. &lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Benjy&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7109585" width="1" height="1"&gt;</description></item><item><title>re: WCF - Handling Generic Messages</title><link>http://weblogs.asp.net/pglavich/archive/2008/01/19/wcf-handling-generic-messages.aspx#6169387</link><pubDate>Thu, 08 May 2008 11:38:41 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6169387</guid><dc:creator>Glav</dc:creator><author>Glav</author><description>&lt;p&gt;Hi again dbam987,&lt;/p&gt;
&lt;p&gt;I had a bit of time to try re-writing some of this code and cleaned it up a little. In my implementation, I haven't had any problems with the XML directives as they all get escaped/encoded so it all goes through. I am able to accept a document with XML directives and write out to disk without issue.&lt;/p&gt;
&lt;p&gt;If you mail me directly at glav@aspalliance.comREMOVETHISBIT then I'll send it your way to test it.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6169387" width="1" height="1"&gt;</description></item><item><title>re: WCF - Handling Generic Messages</title><link>http://weblogs.asp.net/pglavich/archive/2008/01/19/wcf-handling-generic-messages.aspx#6127718</link><pubDate>Thu, 24 Apr 2008 18:35:10 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6127718</guid><dc:creator>dbam987</dc:creator><author>dbam987</author><description>&lt;p&gt;Hi Glav, thanks in advance for taking a look. I think I'm on to something to resolve this. What I'm thinking is to write a custom message encoder that will encode the incoming data into what I can use. See the following link for what I'm following: &lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/ms751486.aspx"&gt;msdn2.microsoft.com/.../ms751486.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, I can't shake the feeling that there is an easier way...&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6127718" width="1" height="1"&gt;</description></item><item><title>re: WCF - Handling Generic Messages</title><link>http://weblogs.asp.net/pglavich/archive/2008/01/19/wcf-handling-generic-messages.aspx#6125951</link><pubDate>Thu, 24 Apr 2008 04:58:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6125951</guid><dc:creator>Glav</dc:creator><author>Glav</author><description>&lt;p&gt;Hi dbam987,&lt;/p&gt;
&lt;p&gt;As soon as I get time I'll have a bit of a play with it. Encoding the payload before sending is kinda defeating the purpose as it forces the client to change and this approach is ideally to NOT have the client change at all.&lt;/p&gt;
&lt;p&gt;again, as soon as I get some time, I will have a look. At a guess, you'll probably have to use one of the GetBody derivatives and some funky casting :-)&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6125951" width="1" height="1"&gt;</description></item><item><title>re: WCF - Handling Generic Messages</title><link>http://weblogs.asp.net/pglavich/archive/2008/01/19/wcf-handling-generic-messages.aspx#6124986</link><pubDate>Wed, 23 Apr 2008 21:58:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6124986</guid><dc:creator>dbam987</dc:creator><author>dbam987</author><description>&lt;p&gt;My mistake. I meant to say that the XML document that is in the message body part contains XML directives which cause the parsing of that section to fail because its not expecting them there. Is there a way around that? Or will the payload have to be encoded before hand?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6124986" width="1" height="1"&gt;</description></item><item><title>re: WCF - Handling Generic Messages</title><link>http://weblogs.asp.net/pglavich/archive/2008/01/19/wcf-handling-generic-messages.aspx#6124955</link><pubDate>Wed, 23 Apr 2008 21:47:57 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6124955</guid><dc:creator>dbam987</dc:creator><author>dbam987</author><description>&lt;p&gt;I have a slight &amp;quot;gotchya&amp;quot; that I'm still trying to work around. What if the incoming message's body is an XML document that has directives in it, such as &amp;lt;?test?&amp;gt;? Creating the buffered copy causes an exception because it assumes the body is valid XML. Any way around this one?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6124955" width="1" height="1"&gt;</description></item><item><title>&amp;raquo; Daily Bits - January 21, 2008 Alvin Ashcraft&amp;#8217;s Daily Geek Bits: Daily links plus random ramblings about development, gadgets and raising rugrats.</title><link>http://weblogs.asp.net/pglavich/archive/2008/01/19/wcf-handling-generic-messages.aspx#5629741</link><pubDate>Mon, 21 Jan 2008 14:36:49 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5629741</guid><dc:creator>» Daily Bits - January 21, 2008 Alvin Ashcraft’s Daily Geek Bits: Daily links plus random ramblings about development, gadgets and raising rugrats.</dc:creator><author>» Daily Bits - January 21, 2008 Alvin Ashcraft’s Daily Geek Bits: Daily links plus random ramblings about development, gadgets and raising rugrats.</author><description>&lt;p&gt;Pingback from &amp;nbsp;&amp;amp;raquo; Daily Bits - January 21, 2008 Alvin Ashcraft&amp;amp;#8217;s Daily Geek Bits: Daily links plus random ramblings about development, gadgets and raising rugrats.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5629741" width="1" height="1"&gt;</description></item><item><title>Link Listing - January 20, 2008</title><link>http://weblogs.asp.net/pglavich/archive/2008/01/19/wcf-handling-generic-messages.aspx#5627780</link><pubDate>Mon, 21 Jan 2008 05:09:44 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5627780</guid><dc:creator>Christopher Steen</dc:creator><author>Christopher Steen</author><description>&lt;p&gt;Link Listing - January 20, 2008&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5627780" width="1" height="1"&gt;</description></item></channel></rss>