Jan Dittberner
c6ef649c08
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@162 a67ec6bc-e5d5-0310-a910-815c51eb3124
17 lines
410 B
Python
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 ") |