Major surgery mostly complete
[uccvend-vendserver.git] / DispenseServer.py
index 7b06713..afbb78f 100755 (executable)
@@ -6,11 +6,15 @@ from BankAccount import BankAccount
 namespace = 'Dispense'
 bind_port = 9900
 
 namespace = 'Dispense'
 bind_port = 9900
 
+server = None
+
+def hello():
+       return "hello"
+
 if __name__ == '__main__':
        server = SOAPServer(('0.0.0.0', 9900))
        bank = BankAccount()
 if __name__ == '__main__':
        server = SOAPServer(('0.0.0.0', 9900))
        bank = BankAccount()
-       for f in []:
+       for f in [hello]:
                server.registerFunction(f, namespace)
        print "Serving forever ..."
        server.serve_forever()
                server.registerFunction(f, namespace)
        print "Serving forever ..."
        server.serve_forever()
-

UCC git Repository :: git.ucc.asn.au