<?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 - WCF - Comments</title>
 <link>http://thoughtshapes.com/taxonomy/term/7</link>
 <description>Comments for &quot;WCF&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>Hi,
I have somet queries on</title>
 <link>http://thoughtshapes.com/WCF/ExampleThree.htm#comment-664</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have somet queries on Duplex implementation.&lt;/p&gt;
&lt;p&gt;Scenario: I&#039;m working on real time application for exam, student(client)should not navigate to next question without teacher request to change to question now. like navigation should manage from the server, MoveToNext Question..&lt;/p&gt;
&lt;p&gt;How to implement Server-Client communication.&lt;/p&gt;
</description>
 <pubDate>Tue, 28 Apr 2009 07:06:55 -0400</pubDate>
 <dc:creator>Chetan Sudra</dc:creator>
 <guid isPermaLink="false">comment 664 at http://thoughtshapes.com</guid>
</item>
<item>
 <title>Hello Rashmi.
i don&#039;t know</title>
 <link>http://thoughtshapes.com/WCF/ExampleThree.htm#comment-663</link>
 <description>&lt;p&gt;Hello Rashmi.&lt;br /&gt;
i don&#039;t know what exactly you are trying to do and your requirement. if you want server should comunicate before your client ping to server. you need to use run the server in dual mode. OperationContext.Current.GetCallbackChannel(), this will never work.  in many cases unless client register with server, server doesn&#039;t know to whom are all it should send alarm... in reall scenario it is not needed at all./&lt;br /&gt;
Thansk&lt;br /&gt;
&lt;a href=&quot;mailto:S.nag12@gmail.com&quot;&gt;S.nag12@gmail.com&lt;/a&gt;&lt;/p&gt;
</description>
 <pubDate>Tue, 31 Mar 2009 04:07:26 -0400</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 663 at http://thoughtshapes.com</guid>
</item>
<item>
 <title>Hi..
I am using the WCF</title>
 <link>http://thoughtshapes.com/WCF/ExampleThree.htm#comment-655</link>
 <description>&lt;p&gt;Hi..&lt;/p&gt;
&lt;p&gt;I am using the WCF mechanism(Duplex communication)  to communicate between the Client and server.&lt;br /&gt;
I am sending the data to Client from server as below&lt;br /&gt;
IMessageServiceCallback callback= OperationContext.Current.GetCallbackChannel()&lt;br /&gt;
This is working fine when Client initiates the communication first. Means Client sends the message to server&lt;br /&gt;
and server reply to that Client using the the above code. However this is not working if the Server wants to send the data to client before Client initiates the communciation. I am getting the exception&quot;&quot; Null reference exception&quot;.&lt;br /&gt;
Could you please help me in resolving this.&lt;br /&gt;
I read in the few articles server can also initiate the communication. But this is not happening in my case.&lt;/p&gt;
&lt;p&gt;Also I would like to know is it possible that multiple clients listening to server message?&lt;br /&gt;
Waiting for your reply.&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;
Rashmi.&lt;/p&gt;
</description>
 <pubDate>Thu, 27 Nov 2008 04:05:46 -0500</pubDate>
 <dc:creator>Rashmi</dc:creator>
 <guid isPermaLink="false">comment 655 at http://thoughtshapes.com</guid>
</item>
<item>
 <title>do you have an Idea on how</title>
 <link>http://thoughtshapes.com/WCF/ExampleTwo.htm#comment-651</link>
 <description>&lt;p&gt;do you have an Idea on how we can apply the NetdataContractseriliazer only once at the service contract level instead of decorating each operation inside the service with the NetDataContractSerializer&lt;/p&gt;
&lt;p&gt;found some example here but i did not get it to work sofare&lt;br /&gt;
&lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2329202&amp;amp;SiteID=1&amp;amp;pageid=0#2336966&quot; title=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2329202&amp;amp;SiteID=1&amp;amp;pageid=0#2336966&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2329202&amp;amp;SiteID=1&amp;amp;p...&lt;/a&gt;&lt;/p&gt;
</description>
 <pubDate>Tue, 09 Sep 2008 10:11:48 -0400</pubDate>
 <dc:creator>Faiza Guerrache</dc:creator>
 <guid isPermaLink="false">comment 651 at http://thoughtshapes.com</guid>
</item>
<item>
 <title>We would really like to see</title>
 <link>http://thoughtshapes.com/WCF/ExampleTwo.htm#comment-650</link>
 <description>&lt;p&gt;We would really like to see the example of returning an interface through a WCF method.  Can you post this (example three?)?&lt;br /&gt;
Thank you!&lt;/p&gt;
</description>
 <pubDate>Wed, 03 Sep 2008 10:30:28 -0400</pubDate>
 <dc:creator>Kealy</dc:creator>
 <guid isPermaLink="false">comment 650 at http://thoughtshapes.com</guid>
</item>
<item>
 <title>I got the program working</title>
 <link>http://thoughtshapes.com/WCF/ExampleTwo.htm#comment-649</link>
 <description>&lt;p&gt;I got the program working now it was just a mistake in the NetDataContractSeriliaser file - its just whe you press the enter key after the word implements  when a class implement a service) it generate function -  I had my owen function and VB genetrated automatic function which confused the program&lt;/p&gt;
&lt;p&gt;thank you again for the example&lt;/p&gt;
</description>
 <pubDate>Wed, 03 Sep 2008 06:37:44 -0400</pubDate>
 <dc:creator>Faiza Guerrache</dc:creator>
 <guid isPermaLink="false">comment 649 at http://thoughtshapes.com</guid>
</item>
<item>
 <title>You&#039;re welcome.
Are you</title>
 <link>http://thoughtshapes.com/WCF/ExampleTwo.htm#comment-648</link>
 <description>&lt;p&gt;You&#039;re welcome.&lt;/p&gt;
&lt;p&gt;Are you getting this error when running the example?  Just a moment ago I downloaded the example and ran without a problem.  Are you instead getting this error after tweaking the example code or perhaps in your own project?&lt;/p&gt;
&lt;p&gt;The error above signifies that you are using the DataContractSerializer instead of the NetDataContractSerializer, perhaps by accident.&lt;/p&gt;
</description>
 <pubDate>Tue, 02 Sep 2008 21:12:25 -0400</pubDate>
 <dc:creator>Steve Seymour</dc:creator>
 <guid isPermaLink="false">comment 648 at http://thoughtshapes.com</guid>
</item>
<item>
 <title>I have followed your example</title>
 <link>http://thoughtshapes.com/WCF/ExampleTwo.htm#comment-647</link>
 <description>&lt;p&gt;I have followed your example - thank you very much for the example and the article very handy.&lt;br /&gt;
however I am getting this error do you know this error is due to what?&lt;/p&gt;
&lt;p&gt;There was an error while trying to serialize parameter &lt;a href=&quot;http://tempuri.org/:person&quot; title=&quot;http://tempuri.org/:person&quot;&gt;http://tempuri.org/:person&lt;/a&gt;. The InnerException message was &#039;Type &#039;Domain.Customer&#039; with data contract name &#039;Customer:http://schemas.datacontract.org/2004/07/Domain&#039; is not expected. Add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.&#039;.  Please see InnerException for more details.&lt;br /&gt;
any feedback will be appriciated&lt;/p&gt;
</description>
 <pubDate>Tue, 02 Sep 2008 04:54:48 -0400</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 647 at http://thoughtshapes.com</guid>
</item>
<item>
 <title>Yes, it is definitely</title>
 <link>http://thoughtshapes.com/WCF/ExampleTwo.htm#comment-611</link>
 <description>&lt;p&gt;Yes, it is definitely possible.  It&#039;s been a while since I&#039;ve written the examples, but I thought I did return an interface in, maybe, Example Three?&lt;/p&gt;
&lt;p&gt;Regardless, the error you are receiving is not due to returning an interface...unless you are not using the NetDataContractSerializer and/or you are not using a .NET client.  It&#039;s too hard for me to say exactly what is going on in your case without digging into the code.&lt;/p&gt;
</description>
 <pubDate>Fri, 22 Feb 2008 17:43:23 -0500</pubDate>
 <dc:creator>Steve Seymour</dc:creator>
 <guid isPermaLink="false">comment 611 at http://thoughtshapes.com</guid>
</item>
<item>
 <title>Hi,
What about returning an</title>
 <link>http://thoughtshapes.com/WCF/ExampleTwo.htm#comment-610</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What about returning an Interface?&lt;/p&gt;
&lt;p&gt;I have somehting like that:&lt;/p&gt;
&lt;p&gt;[OperationContract]&lt;br /&gt;
IService GetService(string serviceName);&lt;/p&gt;
&lt;p&gt;But always getting this exception when calling the method from the client:&lt;/p&gt;
&lt;p&gt;The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was &#039;00:00:59.9531250&#039;.&lt;/p&gt;
&lt;p&gt;Is it possible to return an Interface from a WCF method?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Benoit.&lt;/p&gt;
</description>
 <pubDate>Fri, 22 Feb 2008 16:46:41 -0500</pubDate>
 <dc:creator>Benoit Morneau</dc:creator>
 <guid isPermaLink="false">comment 610 at http://thoughtshapes.com</guid>
</item>
<item>
 <title>Sorry, Omar, I was out of</title>
 <link>http://thoughtshapes.com/WCF/ExampleThree.htm#comment-600</link>
 <description>&lt;p&gt;Sorry, Omar, I was out of town yesterday.  I will take a look at this tonight and get back to you.  I&#039;d do so now but am catching up with work.&lt;/p&gt;
</description>
 <pubDate>Wed, 21 Nov 2007 11:44:22 -0500</pubDate>
 <dc:creator>Steve Seymour</dc:creator>
 <guid isPermaLink="false">comment 600 at http://thoughtshapes.com</guid>
</item>
<item>
 <title>Running the client and the</title>
 <link>http://thoughtshapes.com/WCF/ExampleThree.htm#comment-599</link>
 <description>&lt;p&gt;Running the client and the host on two different stations is generating a &quot;The caller was not authenticated by the service&quot; error. Any advice on how to proceed?&lt;/p&gt;
</description>
 <pubDate>Tue, 20 Nov 2007 09:18:29 -0500</pubDate>
 <dc:creator>Omar Abou Mrad</dc:creator>
 <guid isPermaLink="false">comment 599 at http://thoughtshapes.com</guid>
</item>
</channel>
</rss>
