[Zope] xmlrpc and zope- newbie Q
Michel Pelletier
michel@digicool.com
Fri, 8 Oct 1999 10:48:26 -0400
> -----Original Message-----
> From: kedai [mailto:kdie@kedai.com.my]
> Sent: Friday, October 08, 1999 3:56 AM
> To: zope@zope.org
> Subject: [Zope] xmlrpc and zope- newbie Q
>
>
> hi,
> i spent quite some time going thru userland.com, zope's
> archive reading stuff about xmlrpc. i see the potential, but
> can't really grasp how we can achieve that with zope. the
> announcement
> http://www.zope.org:12080/archives/Catalog/archives/1999-June/
> 005831.html
> provide a little example, but really, i don't get it. can
> any guru help explain what and how we can use xmlrpc with zope?
>
> can we use zope as the server? if so, how? and i assume
> zope can be the client updating other servers to, right? i'm
> really stuck here.
You can call Zope methods with XML-RPC just like you can 'call' them
over the web. For example, in python:
[michel@korak python]$ python1.5.2
Python 1.5.2 (#1, Jul 5 1999, 14:47:37) [GCC egcs-2.91.66
19990314/Linux (egcs- on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Py$ import xmlrpclib
Py$ x = xmlrpclib.Server('http://www.zope.org/')
Py$ x.SiteIndex.news_rss()
'<lots of XML content...>'
Py$
In this example, http://www.zope.org/ is being used as an XML-RPC
server. The method SiteIndex.news_rss() coresponds to the URL
http://www.zope.org/SiteIndex/news_rss
-Michel