def main(): user = User('john_doe', 'John Doe', 25) nsdict = {'types': 'http://pycon.org/types'} registration = ServiceProxy('../binding.wsdl', nsdict=nsdict, tracefile=sys.stdout) response = registration.RegisterUser(user) print(response)