我试图清理我在web2py上写的xmlrpc服务的网址,以便XMLRPC服务器网址为http://myserver/rpc
而不是http://myserver/MTN_SIM_Guard/db4listener/call/xmlrpc/
我创建了routes.py并将其放在我的web2py目录中:
routes_in = (
('/rpc/$anything', '/MTN_SIM_Guard/db4listener/call/xmlrpc/$anything'),
)
routes_out = [(x, y) for (y, x) in routes_in]
接受,这不起作用:
invalid request
帮助?