WCF RIA Services and communicating via SSL

こ雲淡風輕ζ 提交于 2019-12-10 19:58:24

问题


I have a simple Silverlight application that use WCF RIA Services to communicate with the ASP.NET application on my web server. By default I assume that this communication is plain and not encrypted in any way.

How do you request it use SSL or some other method to ensure that all data via the WCF RIA Service is secure?


回答1:


On a domain service you can specify in the EnableClientAccess attribute that only secured transport is allowed.

ie.

[EnableClientAccess( RequiresSecureEndpoint = true )]


来源:https://stackoverflow.com/questions/2386016/wcf-ria-services-and-communicating-via-ssl

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