![](/img/trans.png)
[英]WCF wsDualHttpBinding and UserNamePasswordValidator
[英]Is it possible for WCF that uses wsDualHttpBinding to be on Https?
我实现了一个简单的WCF/WPF
项目来试用WCF
的推送通知功能。 从在线搜索来看,它们大多是通过回调和使用绑定wsDualHttpBinding
。
但是,在尝试将此PoC项目实施到我的主项目中时。 我意识到现有的WCF
服务正在使用Https
,与现有的wsHttpBinding
相比,我似乎找不到为wsDualHttpBinding
启用传输安全模式的wsDualHttpBinding
。
如果上述问题无法解决,是否有另一种方法可以在WCF
上通过Https
实现推送通知?
如果我们想使用SSL协议加密我们的双工通信,根据实际情况,我们可以考虑以下绑定。
NetTcpbinding:主要为Intranet设计绑定。 如果通信仅在LAN内,我们可以使用此绑定,它支持双工通信和带有证书的SSL协议。 https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/wcf/security-of-nettcpbinding
NetHttpsbinding:它是基于websocket协议的Internet上的双工通信,并支持使用证书加密通信。
https://docs.microsoft.com/en-us/dotnet/framework/wcf/system-provided-bindings
请参阅以下示例。
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-create-a-wcf-service-that-communicates-over-websockets
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.