Sophie

Sophie

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

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

#!/usr/bin/env python

import Example_services

MESSAGE = "Hello from Python!"


def main():
    locator = Example_services.ExampleServiceLocator()
    port = locator.getExample()
    request = Example_services.EchoRequestWrapper()
    request._Message = MESSAGE
    
    try:
        print ' Sending: %s' % MESSAGE
        response = port.echo(request)
        print 'Response: %s' % response._Message
    except Exception, e:
        print e


if __name__ == '__main__':
    main()