def index(): return dict() def call(): return service() ## <-----
@service.jsonrpc def echo(msg) return msg you call it with http://127.0.0.1:8000/app/default/call/jsonrpc/echo?msg=Hello+World On Oct 22, 12:54 pm, Don Lee <sam...@gmail.com> wrote: > I have created a test application to play around with json-rpc. > > ================================================= > # coding: utf8 > > def index(): > return dict() > > def call(): > return service > > @service.jsonrpc > def echo(msg) > return msg > ================================================= > > How can I test this service from the python shell? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---