SimpleXMLRPCServer help
Eric Texier
erict at millfilm.co.uk
Fri Jul 12 08:23:07 EDT 2002
help(SimpleXMLRPCServer) describe how to install an instance
on the server:
2. Install an instance:
class MyFuncs:
def __init__(self):
# make all of the string functions available through
# string.func_name
import string
self.string = string
def pow(self, x, y): return pow(x, y)
def add(self, x, y) : return x + y
server = SimpleXMLRPCServer(("localhost", 8000))
server.register_instance(MyFuncs())
server.serve_forever()
BUT I cannot figure out the syntax to access it from a client point of
view
I will appreciate a quick example even not tested.
Thanks,
Eric
More information about the Python-list
mailing list