远程 WCF 服务 [英] Remote WCF Service
问题描述
我构建了一个 WCF Windows 服务,我想通过 Internet 连接到它.所以我一直在寻找合适的绑定.我决定使用 wsDualHttpBinding.
I build a WCF Windows Service and I want connect to it via Internet. So I was looking for a suitable binding. I decided to use wsDualHttpBinding.
如果我在我的 xml 中使用 securityMode=None 并且在我的 ServiceContract 中使用 ProtectionLevel=None ,它就可以工作.
It is working so far if I use securityMode=None in my xml and ProtectionLevel=None in my ServiceContract.
现在我的问题是我无法保护我的服务和我的客户端之间的连接,因为我不希望任何人在我的登录过程中看到任何详细信息.当我使用 Message security 和 ProtectionLevel=EncryptAndSign 时,我无法访问我的服务.
Now I have the problem that I cannot secure the connection between my Service and my Client, because I don´t want anybody to see any details during my Login process. When I use Message security and ProtectionLevel=EncryptAndSign I cannot access my Service.
有人知道问题出在哪里吗?
Does anybody know where the problem is?
非常感谢.
推荐答案
终于完成,
经过几天的研究,我找到了适合我的问题的解决方案.
Finally done,
after days of researches I found a suitable solution for my problem.
我决定使用证书机制.现在我正在创建一个证书,我可以使用消息安全性.
I decided to use a certificate mechanism. Now I am creating a certificate and I can use message security.
是的,开销很大,但效果很好.
Yes, it was quite an overhead, but it works fine.
这篇关于远程 WCF 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!