Sophie

Sophie

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

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

#!/usr/bin/env python

from ZSI import ServiceProxy

MESSAGE = "Hello from Python!"

def main():
    server = ServiceProxy('../binding.wsdl', use_wsdl=True)

    print ' Sending: %s' % MESSAGE
    response = server.echo(Message=MESSAGE)
    print 'Response: %s' % response['Message']


if __name__ == '__main__':
    main()