00001 #!/usr/bin/env python 00002 00003 from ZSI import ServiceProxy 00004 00005 from ComplexTypes import User 00006 00007 import sys 00008 00009 def main(): 00010 user = User('john_doe', 'John Doe', 25) 00011 nsdict = { 'types' : 'http://pycon.org/typs' } 00012 registration = ServiceProxy('../binding.wsdl', 00013 nsdict=nsdict, 00014 tracefile=sys.stdout) 00015 response = registration.RegisterUser(user) 00016 print response 00017 00018 if __name__ == '__main__': 00019 main()