简体   繁体   English

如何将服务公开为安全?

[英]how to expose a service as secure?

in a project i want to expose a service to clients for giving a xml file to them. 在一个项目中,我想向客户公开服务,以便为他们提供xml文件。 i use web service and soapHeader for authentication. 我使用Web服务和soapHeader进行身份验证。 is the way secure? 这种方法安全吗? what is foible of it? 它有什么缺点? what is the other Techniques for this aim? 此目标还有哪些其他技术? i read something about REST. 我读了一些关于REST的文章。 is it for this? 是为了这个吗?

Simply create a WCF service. 只需创建WCF服务。 It will be secure by default. 默认情况下它将是安全的。

The default settings create a service using WS-Security. 默认设置使用WS-Security创建服务。 If you have clients that cannot handle WS-Security, you can adjust the security settings downward until your clients can handle it. 如果您的客户端无法处理WS-Security,则可以向下调整安全设置,直到您的客户端可以处理它为止。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM