NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on March 21, 2015, 01:37:55 PM
-
somebody have a good sample for add security to a webservice and if fail return error.
-
I'm doing a webinar on this soon.
Cheers
Bruce
-
any tips for this?? i have important project that required this feature and don't idea how for implement this security in webservice..
Thanks
-
Hi Osa,
there are a few different strategies you could take, this is one which is probably one of the easier ones;
a) create a Login method, takes 2 parameters, login and password.
b) process the login as for a web app - ie do lookups or whatever and set the session values as you wish.
c) call p_web.ValidateLogin(true) to set the session as "logged in".
then the client has to
a) call this method to login
b) make sure they set the SessionID Cookie when making subsequent requests.
cheers
Bruce
-
don't understand nothing, i need to pass user name and password and then validate user if valid return a web service call with parameter is failed return error with xml format?
-
Hi Osa,
I think maybe your best option is to come to the User Group webinar on Wednesday and we can walk through the process with you. Please make sure you have a headset though if at all possible.
cheers
Bruce
update -- see Webinar #62 around the 0:25 mark
http://www.capesoft.com/accessories/NetTalkUserGroup.htm
-
osquiabro, check your inbox.
Cheers @ Ura