Example
Below is an example server using wsgiref (available in stdlib as of python2.5)
from wsgiref import simple_server
import wsgi_jsonrpc
class Methods(object):
def test_1(self):
return u'test_1'
def test_2(self, value):
return value
def test_3()
return 'test3'
methods = Methods()
application = wsgi_jsonrpc.WSGIJSONRPCApplication(instance=methods, methods=[test_3])
server = simple_server.make_server('localhost', 80, application)
server.serve_forever()
missing colon... def test_3():
This JSONRPC module is not per specification.
http://json-rpc.org/wiki/specification#a1.2Response see
error - An Error object if there was an error invoking the method. It must be null if there was no error.
Any intention of fixing?