Revision: 16276
Updated Code
at August 3, 2009 12:42 by laurenceosx
Updated Code
@service.xmlrpc
def add(a1,a2):
'''
# Sample Python Client Call
from xmlrpclib import ServerProxy, Error
#server = ServerProxy('http://localhost:8000/Test1/default/call/xmlrpc') # local server
def GetProxy():
return ServerProxy('http://localhost:8000/Test1/default/call/xmlrpc')
s = GetProxy()
print s.add(3,4)
'''
return a1 + a2
Revision: 16275
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 30, 2009 09:52 by laurenceosx
Initial Code
@service.xmlrpc
def add(a1,a2):
'''
# Sample Python Client Call
from xmlrpclib import ServerProxy, Error
#server = ServerProxy("http://localhost:8000") # local server
def GetProxy():
return ServerProxy('http://localhost:8000/Test1/default/call/xmlrpc')
s = GetProxy()
print s.add(3,4)
'''
return a1 + a2
Initial URL
Initial Description
Initial Title
web2py xmlrpc service
Initial Tags
python
Initial Language
Python