diff --git a/gnome-frontend/src/soapclient/soapclient.py b/gnome-frontend/src/soapclient/soapclient.py index 46aaefd..ac8c76e 100644 --- a/gnome-frontend/src/soapclient/soapclient.py +++ b/gnome-frontend/src/soapclient/soapclient.py @@ -1,9 +1,17 @@ #!/usr/bin/python from SOAPpy import SOAPProxy +import socket class SOAPClient: def __init__(self): - self.server = SOAPProxy('https://ssl.gnuviech.info/soap') + self.server = SOAPProxy('http://localhost:8080/') def echo(self, value): - return self.server.echo(value); \ No newline at end of file + try: + return self.server.echo(value); + except socket.error: + return "couldn't connect" + +if __name__ == "__main__": + client = SOAPClient() + print client.echo("Ein Test ") \ No newline at end of file