获取http请求 [英] Get http request
问题描述
你好,
我已经开发了一项服务,并且在使用SOAP测试它时可以正常工作,但是我需要获取请求该服务的客户端的凭据.我需要该用户通过我的SPUser列表对其进行身份验证.
I've developed a service and works fine when I test it with SOAP, but i need to get the credentials of the client who is requesting the service. I need that user to authenticate it with my SPUser list.
我已经尝试使用System.Web.HttpContext,SPContext和许多其他工具,但是它们都以"null"开头.在调试时,我不知道从哪里可以得到请求服务的用户.
I've tried with System.Web.HttpContext, SPContext, and many others but they all come "null" while debugging, and i dont know where can i get the user who is requesting the service.
如果任何人都可以给我发送链接,或者知道答案,请发布它.
If anyone can send me a link, or know the answer please post it.
谢谢!
推荐答案
请在此处发布您的代码,我们将帮助您解决.
Please post your code here, we help you to resolve.
这篇关于获取http请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!