On Sun, Jul 26, 2009 at 4:11 AM, mdipierro<mdipie...@cs.depaul.edu> wrote: > > It should be > > @service.amfrpc3('somedomain') > > is this what you are using? > > Massimo
Since it's exposed at: http://localhost:8000/myapp/default/call/amfrpc I guess that the controller is "default", I'm using @service.amfrpc3('default') The code: """ from gluon.tools import Service service = Service(globals()) @service.amfrpc3('default') def echo(a): """ usage: myapp/default/echo """ return 'Echo: ' + str(a) + ', which is a letter a number or a symbol' def call(): return service() """ And here is what I get in the Flex app: """ Remoting error: error Service.ResourceNotFound ['Traceback (most recent call last):', ' File "build/bdist.macosx-10.3-i386/egg/pyamf/remoting/amf0.py", line 75, in __call__ request.target)', ' File "build/bdist.macosx-10.3-i386/egg/pyamf/remoting/gateway/__init__.py", line 367, in getServiceRequest', 'UnknownServiceError: Unknown service echo'] Unknown service echo """ Miguel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---