使用asmx url进行身份验证 [英] Authentication using asmx url

查看:112
本文介绍了使用asmx url进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要在我的asp.net网站上使用http://url.asmx等远程服务实现身份验证。

我认为这会打到活动目录/交换服务器。

我已经添加了网址作为网络参考,但没有得到完全正确的方法..需要一些建议的帮助。 div class =h2_lin>解决方案

首先,您的方法应该在Web服务中公开。



您可以通过网络参考访问该方法,如下所示:



webreference obj = new webreference() ;

结果objResut = obj.validateuser(用户名,密码);



objresult可以是基于方法返回值的任何东西。它可能是bool / string或从方法返回的任何对象。


Hi,

I need to implement authentication using remote service like"http://url.asmx" in my asp.net site.
I think this is going to hit active directory/exchange server.
I have added the url as webreference but didn't get exactly the authenticate method.. need help with some suggestions.

解决方案

first of all your method should be public in the web service.

you can access that method by web reference like this :

webreference obj = new webreference ();
Result objResut = obj.validateuser(username ,password);

objresult can be anything based on the return value of your method. it may be a bool/string or any object that you return from the method.


这篇关于使用asmx url进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆