[Zope] Re: [Zope-Moz] xml-rpc problem
Shalabh Chaturvedi
shalabh@pspl.co.in
Tue, 11 Apr 2000 12:32:45 +0530
This is not specific to zope-mozilla so copying to the zope list. Please
continue this thread only on the zope list.
Amos' article on xml.com about xml-rpc with Zope is an excellent introduction
for beginners:
http://www.xml.com/pub/2000/01/xmlrpc/index.html
About your problem: sorry I don't know what's going wrong there. I urge you to
try the examples in the above article.
HTH,
Shalabh
Qingjuan Guan wrote:
> Hi all,
> I am a starter for the Zope stuff. Right now I am trying to figure out how
> the xml-rpc work here is the example I have tried but doesn't seem quite get
> it, could somebody tell me what I did wrong with this?
>
> import xmlrpclib
>
> def getStateName(self):
> "Returns a state name given an integer state number"
> server_url="http://betty.userland.com"
> server=xmlrpclib.Server(server_url)
> return server.example.getStateName(41)
>
> I know the return value from the server should be good. The error message
> from python seems point the finger to the parse_response function in
> xmlrpclib.py. I am not quite familiar with python, could somebody point out
> what causing the problem here? Or, if I want some more info about this
> xml-rpc stuff, where can I found more examples?
>
> Thanks.