DuplexChannelFactory and NetTcpBinding

View: New views
2 Messages — Rating Filter:   Alert me  

DuplexChannelFactory and NetTcpBinding

by Ask Stenum :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I've been trying to subscribe to a WCF service with a mono client by using a DuplexChannelFactory to create a channel with a NetTcpBinding. Here's that part of my code:

  NetTcpBinding binding = new NetTcpBinding(SecurityMode.None, false);
  DuplexChannelFactory<ITestService> cf = new DuplexChannelFactory<ITestService>(
            new TestInstance(), binding, "net.tcp://URL/");
  ITestService channel = cf.CreateChannel();
  channel.DoStuff("test");

where the TestInstance class includes a method void ReceiveStuff(string stuff).
The method invocation from the client to the service works without problems, when I try to call the callback method (ReceiveStuff), the service hangs at the call. Looking at the packets comming in, I can see the data is received, but it doesn't ever invoke the TestInstance's method.

I know the System.ServiceModel is far from being done, but it seems that this part of it should work correctly. Does anyone have an idea of what I could try to make this work?

Thanks,
Ask Stenum

Re: DuplexChannelFactory and NetTcpBinding

by Atsushi Eno-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Ask Stenum wrote:
> Hi
>
> I've been trying to subscribe to a WCF service with a mono client by using a
> DuplexChannelFactory to create a channel with a NetTcpBinding. Here's that
> part of my code:

<snip/>

> I know the System.ServiceModel is far from being done, but it seems that
> this part of it should work correctly. Does anyone have an idea of what I
> could try to make this work?

Yes, the basic NetTcpBinding stuff should work, but it very likely has
bugs. Please file a bug on bugzilla with a runnable test case, and
I'll have a look (when I get back my hacking environment; I miss it
right now).

Atsushi Eno
_______________________________________________
Mono-list maillist  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list