Click here to Skip to main content
15,904,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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.
Posted
Updated 16-Dec-13 21:19pm
v2

1 solution

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.
 
Share this answer
 
Comments
s#@!k 18-Dec-13 1:58am    
Thank you for your replay.In That reference there is no Validate user method.While entering into the link it is asking for credentials then I can able to see wsdl file.
ravikhoda 20-Dec-13 7:37am    
Well then you may need to set permission on the IIS to access webservice for all user.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900