ASMX Web 服务身份验证
我想仅在第一个 Web 方法调用时验证 Web 服务用户的身份使用他的身份进行其他 Web 方法调用。
Web服务如何维护用户身份?
I want to authenticate web service user on first web method call only & use his identity for other web method calls.
How web service maintain the user identity?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ASMX Web 服务仅支持 IIS 直接支持的身份验证类型。
或者,您可以使用 SOAP 标头实现您自己的身份验证,但您的身份验证代码必须是完美的。
ASMX web services only support the types of authentication directly supported by IIS.
Alternatively, you could implement your own authentication using SOAP Headers, but then your authentication code has to be perfect.
您可以使用 2.0 或 cookie 设置会话,然后传递数据会很容易。
让我知道。
You can set up a session using 2.0 or a cookie and than passing the data will be easy.
Let me know.