Sophie

Sophie

distrib > Fedora > 13 > i386 > media > os > by-pkgid > a709ddb20745c7012e3d3a00b31ca2a7 > files > 253

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

#
# Exampe echo client, to show extended code generation in ZSI
#
# Import the client proxy object
from EchoServer_client import EchoServerSOAP

# Instantiate a client proxy object, then call it
hw = EchoServerSOAP("http://localhost:9999/EchoServer")
print hw.Echo("Test TIE String")

# Instantiate a client proxy object, then call it
hw2 = EchoServerSOAP("http://localhost:9999/EchoServIn")
try:
    print hw2.Echo("Test INHERIT String")
except Exception, e:
    print "Failed to echo (Inherited): ", e