think there is a logical problem here. both client and server support
named arguments (address='value') but the protocol may not support it.
I believe the protocol only supports passing values to function, not
named values. I am not completely sure Try the fix in the code below:

> class PeopleService:
>     def insert(self, name, address):
>         db.People.insert(name=name, address=address)
>         db.commit()
>
> services = {'PeopleService': PeopleService}
>
> def gateway():
>    base_gateway = pyamf.remoting.gateway.BaseGateway
> (services,authenticator=auth)
>    context = pyamf.get_context(pyamf.AMF0)
>    pyamf_request = pyamf.remoting.decode(request.body.read(), context)
>    pyamf_response = pyamf.remoting.Envelope(pyamf_request.amfVersion,
>                                             pyamf_request.clientType)
>    for name, message in pyamf_request:
>        pyamf_response[name] = base_gateway.getProcessor(message)
> (message)
>    response.headers['Content-Type'] = pyamf.remoting.CONTENT_TYPE
>    return pyamf.remoting.encode(pyamf_response, context).getvalue()
>
> Client:
>
> def insert():
>     gw = RemotingService('http://127.0.0.1:8000/server/
> People_controller/gateway')
>     service = gw.getService('PeopleService')
>     service.insert('Carlx','av none 12')


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to