Remote WCF Service

心已入冬 提交于 2019-12-13 00:49:01

问题


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.

It is working so far if I use securityMode=None in my xml and ProtectionLevel=None in my ServiceContract.

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?

Thanks a lot in advance.


回答1:


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.



来源:https://stackoverflow.com/questions/32443569/remote-wcf-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!