from gnuviechadminCommon.gnuviechadmin_services import * from ZSI.ServiceContainer import ServiceSOAPBinding import BusinessMethods class gnuviechadmin(ServiceSOAPBinding): soapAction = { 'https://ssl.gnuviech.info/gnuviechadmin/Authenticate': 'soap_Authenticate', } _wsdl = """ """ def __init__(self, post='/gnuviechadmin', **kw): ServiceSOAPBinding.__init__(self, post) def soap_Authenticate(self, ps): # input vals in request object args = ps.Parse( AuthRequestWrapper ) # assign return values to response object class SimpleTypeWrapper(str): typecode = AuthResponseWrapper() # WARNING specify value eg. SimpleTypeWrapper(1) response = SimpleTypeWrapper(BusinessMethods.login(login=args._login, password=args._password)) # Return the response return response