问题描述
起初我不得不使 2.0 与 WCF 服务一起工作.我使用 BasicHttpBinding 实现了这一点.由于 BasicHttpBinding 不支持双工回调,我无法让服务器 ping 客户端.有任何想法吗????谢谢
At first I had to make 2.0 work with WCF service. I accomplished that using BasicHttpBinding . Since BasicHttpBinding doesn't support Duplex callback, I can't make the server ping the client. Any ideas????Thanks
推荐答案
如果您希望 WCF 执行此操作,则无法通过 BasicHttpBinding
.如果您希望使用 WCF 建立开箱即用的回调通道,则需要 wsDualHttpBinding
或 NetTcpBinding
.您也可以尝试编写一个 CustomBinding,但使用 .NET 2.0因为客户会限制你的能力.
If you want WCF to do this, it's not possible over the BasicHttpBinding
. You need wsDualHttpBinding
or NetTcpBinding
if you wish to establish a callback channel out-of-the-box with WCF. You can also try to write a CustomBinding, but utilizing .NET 2.0 for the client is going to limit what you can do.
这篇关于WCF 与 .Net 2.0 应用程序交互(回调)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!