DuplexChannelFactory and NetTcpBinding

2 messages Options
Embed this post
Permalink
Ask Stenum

DuplexChannelFactory and NetTcpBinding

Reply Threaded More More options
Print post
Permalink

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
--
View this message in context: http://old.nabble.com/DuplexChannelFactory-and-NetTcpBinding-tp26230805p26230805.html
Sent from the Mono - General mailing list archive at Nabble.com.

_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list
Atsushi Eno-2

Re: DuplexChannelFactory and NetTcpBinding

Reply Threaded More More options
Print post
Permalink
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  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list