Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 C# 开发一个 SOAP 客户端。Web 服务需要 HTTP 基本身份验证。我可以在 app.config 中配置用户名和密码吗?你能提供样品吗?
基本身份验证是 Web 服务器而不是应用程序的功能。您在 IIS 中配置它。
如果您需要通过您的应用程序控制用户,请使用表单身份验证。