密码保护网络服务
是否可以在不更改现有 Web 服务代码的情况下要求 Web 服务的用户名和密码?
添加 DLL 和配置就可以了,但我不想更改 Web 服务。
Is it possible to require user name and password for a web service without changing the code for existing web service?
Adding a DLL and configuration would be OK, but I rather not change the web service.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 IIS 中使用(Windows - 集成 Windows),这是在不更改任何代码的情况下应用身份验证的唯一方法。本文还包含其他选项。
http://msdn.microsoft.com/en-us/library/w67h0dw7。 ASPX
Use (Windows - Integrated Windows) in IIS this is the only way to apply authentication without changing a single bit of code. Here is the article also contains other options as well.
http://msdn.microsoft.com/en-us/library/w67h0dw7.aspx
最简单的方法是让 IIS 保护 Web 服务所在的文件夹。无需更改代码。
Simplest way is to let IIS protect the folder where the web service resides. No code change required.