I've managed to successfully call on a jsonrpc service using localhost.
However I cannot replicate this with a remote server.
For the client I'm using jsonrpc at the Python prompt:

>>> sv = ServiceProxy('http://127.0.0.1:8000/testapp/default/call/jsonrpc')
>>> sv.getRequests()
['json test']
>>>

The very standard controller is:
@service.jsonrpc
def getRequests():
    return ["json test"]

def call():
    session.forget()
    return service()

Notably I'm running web2py 1.74.4 on OSX on the localhost - the successful
test
And web2py 1.65.5 on Debian on the remote server - the unsuccessful test

I believe 1.65.5 supports jsonrpc and that this is served by default on port
8000. Am I wrong? What am I missing?

Miguel

Reply via email to