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