fix bernard's indentation
[zanchey/dispense2.git] / DispenseServer.py
1 #!/usr/bin/python
2
3 from SOAPpy import *
4 from BankAccount import BankAccount
5
6 namespace = 'Dispense'
7 bind_port = 9900
8
9 server = None
10
11 def hello():
12         return "hello"
13
14 if __name__ == '__main__':
15         server = SOAPServer(('0.0.0.0', 9900))
16         bank = BankAccount()
17         for f in [hello]:
18                 server.registerFunction(f, namespace)
19         print "Serving forever ..."
20         server.serve_forever()

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