Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written a sample webservice in VS2008. I published it on my own domain and i created a web app to consume the service. I added webreference in my app and i consumed.

Question: I want to give security to my webservice. To use my webservice i want to put authentication. I have seen the articles but i didn't get the solution. Can anyone plz help me out by giving solution in simple manner.

Thank you
Rajjjj
Posted

1 solution

There are articles here on CP that describe the process quite clearly: it may not be exactly what you need so you will have to adapt to suit your particular requirement. If you are at the point where you really don't understand how to do this then take a step back and do some more research until you do understand - one way is to read the documentation. Then try again.

Web Service Authentication[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 21-Jun-11 16:28pm    
Just a note: did you see how bad this code is? All hard-coded, stupid switch blocks, etc.
--SA
R. Giskard Reventlov 22-Jun-11 2:00am    
Not really but it'll get the op started.
Sergey Alexandrovich Kryukov 22-Jun-11 18:06pm    
Not a good place to start I would say, due to a danger of learning such a bad style; I would try to find something else if I had good experience of the subject.
--SA
R. Giskard Reventlov 23-Jun-11 3:10am    
But he doesn't so it's okay.

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