<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://thoughtshapes.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ThoughtShapes - Using Interfaces as Parameters (Part 2) - Comments</title>
 <link>http://thoughtshapes.com/WCF/UsingInterfacesAsParametersTwo.htm</link>
 <description>Comments for &quot;Using Interfaces as Parameters (Part 2)&quot;</description>
 <language>en</language>
<item>
 <title>Thank you Steve.
This is</title>
 <link>http://thoughtshapes.com/WCF/UsingInterfacesAsParametersTwo.htm#comment-674</link>
 <description>&lt;p&gt;Thank you Steve.&lt;/p&gt;
&lt;p&gt;This is very helpful.&lt;/p&gt;
&lt;p&gt;I&#039;m looking for a solution where the service can be both a NetDataContract and a DataContract simultaneously.  This way, if someone creates a proxy and wants to use it as a mechanism to return a concrete object because they are not a .Net client, then it works.  Maybe the ServiceKnownType is good for this.  Using example 1, I can code to interfaces inside my WCF classes but always render out a concrete implementation vs. an interface.&lt;/p&gt;
&lt;p&gt;However, some of my consumers will be .Net.  In fact the .Net consumers are in-house developers that insist on passing and returning interfaces.  I can have them use my application tier (which would look like example 2), or I can have them use my web tier (example 1).  But my web tier does schema validation and versioning, etc. and I would prefer that everyone use the web tier.&lt;/p&gt;
&lt;p&gt;The example you provided doesn&#039;t have DataMember or DataContract attributes.  I need those so proxy generators can infer a schema and talk SOAP.  But I&#039;d like my in-house guys to be able to create a channel and use .Net serialization.&lt;/p&gt;
&lt;p&gt;Do you think this is possible?&lt;/p&gt;
</description>
 <pubDate>Sun, 06 Sep 2009 19:57:53 -0400</pubDate>
 <dc:creator>Mark Eilenberger</dc:creator>
 <guid isPermaLink="false">comment 674 at http://thoughtshapes.com</guid>
</item>
<item>
 <title>Using Interfaces as Parameters (Part 2)</title>
 <link>http://thoughtshapes.com/WCF/UsingInterfacesAsParametersTwo.htm</link>
 <description>&lt;p&gt;Ahhh...and now I&#039;ve found what I was looking for. Thanks to &lt;a href=&quot;http://weblogs.asp.net/avnerk/archive/2006/07/31/WCF-Serialization-part-1_3A00_-Interfaces_2C00_-Base-classes-and-the-NetDataContractFormatSerializer.aspx&quot; target=&quot;_blank&quot;&gt;Avner Kashtan&#039;s&lt;/a&gt; Blog, which pointed me to &lt;a href=&quot;http://pluralsight.com/blogs/aaron/archive/2006/04/21/22284.aspx&quot; target=&quot;_blank&quot;&gt;Aaron Skonnard&#039;s&lt;/a&gt; blog...&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://thoughtshapes.com/WCF/UsingInterfacesAsParametersTwo.htm&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://thoughtshapes.com/WCF/UsingInterfacesAsParametersTwo.htm#comments</comments>
 <category domain="http://thoughtshapes.com/taxonomy/term/7">WCF</category>
 <pubDate>Sun, 03 Dec 2006 00:00:00 -0500</pubDate>
 <dc:creator>Steve Seymour</dc:creator>
 <guid isPermaLink="false">30 at http://thoughtshapes.com</guid>
</item>
</channel>
</rss>
