1
0
Fork 0
gnuviechadmin-historic/gnome-frontend/src/soapclient/soapclient.py
Jan Dittberner c6ef649c08 - make classes for SOAP Server and Client
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@162 a67ec6bc-e5d5-0310-a910-815c51eb3124
2006-02-21 10:42:11 +00:00

17 lines
410 B
Python

#!/usr/bin/python
from SOAPpy import SOAPProxy
import socket
class SOAPClient:
def __init__(self):
self.server = SOAPProxy('http://localhost:8080/')
def echo(self, value):
try:
return self.server.echo(value);
except socket.error:
return "couldn't connect"
if __name__ == "__main__":
client = SOAPClient()
print client.echo("Ein Test ")