[Twisted-web] Run Nevow and XMLRPC on a single port?
Marian Schubert
marian.schubert at gmail.com
Thu Dec 14 05:17:51 CST 2006
On 12/14/06, Phil Mayers <p.mayers at imperial.ac.uk> wrote:
> Remi Cool wrote:
> > Hello,
> >
> > Is it possible to run a nevow site and and serve XMLRPC (or SOAP)
> > requests on a single port?
> > I've tried to make it work some time ago, but to no avail.
>
> I believe you can do this:
>
> class Xrpc(xmlrpc.XMLRPC):
> def xmlrpc_echo(self, arg):
> return arg
>
> xrpc = Xrpc()
> page = NevowRootPage()
> page.putChild('RPC2', xrpc)
just make sure xmlrpc resource isn't behind nevow.guard
cu,
Maio
More information about the Twisted-web
mailing list