Problem with XML-RPC not mounted in /

Almad bugs at almad.net
Mon Nov 6 05:04:12 EST 2006


Hi,

I'm trying to build XML-RPC service, both server and client library.

My server is CherryPy with XML-RPC filter. I have here method
registration_ip. When it's in, say http://ws.rpgplanet.nerv/,
everything is OK, but when I move it in http://ws.rpgplanet.nerv/main/,
this behaviour occur:

 srv = ServerProxy('http://ws.rpgplanet.nerv/main/')
 print srv.register_ip("guest")

raises 404, as according to log, library is trying to access /main/
instead of /main/register_ip

 srv = ServerProxy('http://ws.rpgplanet.nerv/')
 print srv.main.register_ip("guest")

raises 500, as client is correctly hitting /main/register_ip, but NOT
sending "guest" argument.

I'm probably missing something obvious, so where should problem be? Is
it not possible for XML-RPC to live not in / ?

Thank You for advices,

Almad




More information about the Python-list mailing list