[英]Is it possible for WCF that uses wsDualHttpBinding to be on Https?
I implemented a simple WCF/WPF
project to try out the push notification function of WCF
. 我实现了一个简单的
WCF/WPF
项目来试用WCF
的推送通知功能。 From searches online, they are mostly implemented via callback and using the binding wsDualHttpBinding
. 从在线搜索来看,它们大多是通过回调和使用绑定
wsDualHttpBinding
。
However, when trying to implement this PoC project into my main project. 但是,在尝试将此PoC项目实施到我的主项目中时。 I realise the existing
WCF
service is using Https
and I can't seem to find a way to enable transport security mode for wsDualHttpBinding
as compared to the existing wsHttpBinding
. 我意识到现有的
WCF
服务正在使用Https
,与现有的wsHttpBinding
相比,我似乎找不到为wsDualHttpBinding
启用传输安全模式的wsDualHttpBinding
。
If the above problem is not solvable, is there another way to implement push notification over Https
on WCF
? 如果上述问题无法解决,是否有另一种方法可以在
WCF
上通过Https
实现推送通知?
If we want to use SSL protocol to encrypt our duplex communication, depending on the practical scenario, we could consider the following binding. 如果我们想使用SSL协议加密我们的双工通信,根据实际情况,我们可以考虑以下绑定。
NetTcpbinding: mainly designed binding for the intranet. NetTcpbinding:主要为Intranet设计绑定。 If the communication is only within the LAN, we could use this binding, it supports duplex communication and SSL protocol with a certificate.
如果通信仅在LAN内,我们可以使用此绑定,它支持双工通信和带有证书的SSL协议。 https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/wcf/security-of-nettcpbinding
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/wcf/security-of-nettcpbinding
NetHttpsbinding: It is a duplex communication across the Internet based on websocket protocol, and supports the use of certificates to encrypt communications. NetHttpsbinding:它是基于websocket协议的Internet上的双工通信,并支持使用证书加密通信。
https://docs.microsoft.com/en-us/dotnet/framework/wcf/system-provided-bindings https://docs.microsoft.com/en-us/dotnet/framework/wcf/system-provided-bindings
Refer to the below example. 请参阅以下示例。
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-create-a-wcf-service-that-communicates-over-websockets 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.