473,320 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 NetDataContractSerializer, 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 NetDataContractSerializer 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 NetDataContractSerializer with
callback channels, or how to diagnose this would be appreciated.

Thanks!
Sep 17 '08 #1
1 3177
I got it to work with callback channels, IF one does not add a handler to the
client's InnerChannel.Faulted 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...

Sep 21 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: ochocki | last post by:
Hi, Reading about WCF I had this feeling that .net remoting has been left behind. There's a lot about webservices but nothing about remoting which suprises me as MS was encouraging to use it in...
7
by: jtbjurstrom | last post by:
Bear with me because we are new to WCF and have been going through documentation and samples trying to absorb as much as possible in a short amount of time. Any suggestions would be much...
0
by: =?Utf-8?B?QWRyaWFuIENvbGU=?= | last post by:
I have written a simple WCF service hosted in a Windows console application and a simple WCF client console application that connects successfully to that service and retrieves data. I then ported...
0
by: Chris Bordeman | last post by:
Hi all. My WCF service accepts a base interface type I call 'IGenericRequest' as a *parameter*. I have been able to accomplish this using NetDataContractSerializer. But then it gets sticky...
0
by: sebastian.dau | last post by:
Hello Newsgroup, I wonder how one would write wcf proxy code that is being notified when the connected service channel is being closed (service process ends for example). I was subscribing...
6
by: Frank Hauptlorenz | last post by:
Hello out there, I have 2 services running. The first one runs in session mode and the 2nd not. The first one should call an operation of the 2nd one asynchronously, because this is doing some...
16
by: =?Utf-8?B?U3RldmUgQmFya2Vy?= | last post by:
WCF Question Hi guys, I’m pretty new to WCF, and have a basic question about how it works. I’m trying to use WCF to write an “SOA-system”, and am having a few problems. The...
5
by: =?Utf-8?B?TWFyaw==?= | last post by:
I'm researching what is the best way to create a generic WCF proxy wrapper that has the following requirements: 1. Remove the System.ServiceModel config section requirement for clients. We have...
0
by: =?Utf-8?B?a2F1c2hhcw==?= | last post by:
Apologies for cross posting to couple of WCF related forums, but I am frantically trying to find a solution to this WCF Mex endpoint problem described below: I am getting this weird error when...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.