[Zope] XML-RPC problems after upgrade
Kevin Carlson
khcarlso@bellsouth.net
Wed, 18 Dec 2002 22:22:17 -0500
I am using xmlrpc with Zope 2.6 with no problems. I am calling a script
that calls a ZSQL method from a cron job with the following code:
from xmlrpclib import Server
server = Server('http://localhost:8080/Blah/WebService/')
results = server.sql28Cron()
print results
In looking at this code vs. the code you are running I notice that the only
difference is that the text defining my server name ends with a '/'. I'd
try adding the '/' and see what happens...
Kevin
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Paulo
Eduardo Neves
Sent: Wednesday, December 18, 2002 9:59 PM
To: zope@zope.org
Subject: Re: [Zope] XML-RPC problems after upgrade
Em Quarta 18 Dezembro 2002 21:03, Dieter Maurer escreveu:
> Paulo Eduardo Neves writes:
> > I've just upgrade from 2.4.3 to 2.6. In the process, I've also
> > changed some things (e.g., changed from SiteRoot/SiteAccess to
> > VHM). My problem now is that XML-RPC calls aren't working any
> > more. I always get a /RPC2 NotFound error. Here is the output of
> > calling a simple python script:
> >
> > ################################333
> > python
> > Python 2.1.3 (#4, May 23 2002, 15:13:21)
> > [GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-110)] on linux2
> > Type "copyright", "credits" or "license" for more information.
> > Welcome to Lazy Python. Type "help LazyPython" for help.
> >
> > >>> import xmlrpclib
> > >>> s = xmlrpclib.Server('http://www.samba-choro.com.br')
> > >>> s.testXMLRPC()
>
> Try:
>
> s = xmlrpclib.Server('http://www.samba-choro.com.br/testXMLRPC')
> s()
Now, instead of a NotFound with the resource /RC2, I've got an unspecied
not found error. The url is working, it is a simple python script, you
can click on it.
Does anyone got XML-RPC working in version 2.6.0?
thanks for your answer,
--
Paulo Eduardo Neves
Agenda do Samba & Choro, o boteco virtual do samba e choro
http://www.samba-choro.com.br
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )