Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > a709ddb20745c7012e3d3a00b31ca2a7 > files > 172

python-ZSI-2.0-6.fc13.noarch.rpm

#!/usr/bin/env python

from ComplexTypes import User

from ZSI import ServiceProxy

import sys


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
    

if __name__ == '__main__':
    main()