[Mono-list] DuplexChannelFactory and NetTcpBinding
Ask Stenum
ask.stenum at gmail.com
Fri Nov 6 10:38:26 EST 2009
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.
More information about the Mono-list
mailing list