Re: [Zope-dev] XMLRPC client and Zope 2.6.0
Gilles Lenfant wrote at 2003-1-24 17:24 +0100: > ... > >>> from xmlrpclib import Server > >>> s = Server('http://localhost') Append "/" to your URL. I.e. use: s = Server('http://localhost/') > > again. Resource: RPC2\nPOST The "RC2" not found it an indication that you just specified the server without a path. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] XMLRPC client and Zope 2.6.0
- Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: "Gilles Lenfant" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 6:20 PM Subject: Re: [Zope-dev] XMLRPC client and Zope 2.6.0 > >>>>s = Server('http://localhost') > > try: > > >>>s = Server('http://localhost/') > > And read the xmlrpclib.py docs where it automatically appends RPC2 if > the url doesnt end in a slash. Ooops ! Many thanks Andy ! ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] XMLRPC client and Zope 2.6.0
s = Server('http://localhost') try: >>>s = Server('http://localhost/') And read the xmlrpclib.py docs where it automatically appends RPC2 if the url doesnt end in a slash. -- Andy McKay ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] XMLRPC client and Zope 2.6.0
Hi, Is there something wrong with XML-RPC client and Zope 2.6.0 ? Things that worked perfectly with Zope 2.5.1 don't work any more ! Even when I make a "hello world" Python script handler like ## Script (Python) "xtest" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## return 'Hello world' And from a console : $ cd /zope/root/lib/python (using xmlrpclib provided with Zope 2.6.0) >>> from xmlrpclib import Server >>> s = Server('http://localhost') >>> s.xtest() Traceback (most recent call last): File "", line 1, in ? File "/usr/home/zope/Zope-2.6.0-src/lib/python/xmlrpclib.py", line 829, in __call__ return self.__send(self.__name, args) File "/usr/home/zope/Zope-2.6.0-src/lib/python/xmlrpclib.py", line 983, in __request verbose=self.__verbose File "/usr/home/zope/Zope-2.6.0-src/lib/python/xmlrpclib.py", line 861, in request return self.parse_response(h.getfile()) File "/usr/home/zope/Zope-2.6.0-src/lib/python/xmlrpclib.py", line 904, in parse_response return u.close() File "/usr/home/zope/Zope-2.6.0-src/lib/python/xmlrpclib.py", line 579, in close raise apply(Fault, (), self._stack[0]) xmlrpclib.Fault: (sorry for this long traceback...) Did I miss something ? Thanks in advance ! --Gilles ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )