On Saturday, December 23, 2017 at 1:36:43 AM UTC-8, T.R.Rajkumar wrote: > > I do like this > > Server side, or client?
> from gluon.contrib.pysimplesoap.client import SoapClient > client = SoapClient(wsdl=" > http://172.16.164.64/ws_ts2admin/ts2admin.asmx?WSDL") > rs = client.ValidateLogin(lcUname, lcPwd, lnCode, lcMsg) > rs1 = rs['ValidateLoginResult'] > ret_code = rs1['Code'] > ret_msg = rs1['Msg'] > #print ret_msg > #lcAppId = 'vb_cont' > if ret_code == 1: > #rs2 = client.ValidateAppUser(lcUname,lcAppId) > #rs3 = rs2['ValidateAppUserResult'] > #rs4 = rs3['Code'] > #if rs4 == 1: > session.logged_in = 'True' > session.uname = lcUname > redirect(URL('lp','lp')) > > #else: > #response.flash ='Not a user of app.' > else: > response.flash = ret_msg > /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

