WCF: using NetDataContractSerializer with duplex channels

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SmltbXk=?=

    WCF: using NetDataContractSerializer with duplex channels

    Hello,

    I have a scenario where I have one or more publishers, a broadcaster and one
    or more subscribers. The publishers publish information to the broadcaster,
    which then broadcasts that information to all subscribers. Subscribers use
    callbacks to receive information from the broadcaster.


    I'm in the process of switching to NetDataContract Serializer, and that seems
    to work fine for communication from publishers to the broadcaster (meaning,
    when I step through the broadcaster receiving the information, the
    information is deserialized properly). However, for communication using the
    callback channel, from the broadcaster to the subscribers, I get a strange
    behavior. The subscribers to get the event. However, but the class is not
    deserialized properly; I just get a null. There is no exception or error in
    the svclog, Since there is no error outputted anywhere, I'm not sure how to
    diagnose this.


    I'm using the approach in
    http://forums.microsoft.com/MSDN/Sho...82261&SiteID=1 to
    make sure the NetDataContract Serializer is set properly. Again, that works
    fine for communication from the publishers to the broadcaster, so I don't
    think that's the issue. Any tips on how to use NetDataContract Serializer with
    callback channels, or how to diagnose this would be appreciated.



    Thanks!


  • =?Utf-8?B?SmltbXk=?=

    #2
    RE: WCF: using NetDataContract Serializer with duplex channels

    I got it to work with callback channels, IF one does not add a handler to the
    client's InnerChannel.Fa ulted event. I've tried only adding and removing the
    handler for that event, and having the handler there causes the null behavior
    I described above...

    Comment

    Working...