[Zope] Help: XMLRPC question
Martijn Pieters
mj@zope.com
Tue, 3 Sep 2002 16:49:31 -0400
On Tue, Sep 03, 2002 at 10:39:57PM +0300, alienoid wrote:
> MP> return *insert your methodcall HERE* or 0
>
> MP> :)
>
> Martijn, I'm stuck with it.
> I get ErrorType: TypeError ErrorValue: Too many arguments
> but I give number of arguments I've defined in methods.
> When I test these methods from comp A ZMI it's just fine, but calling
> them from comp B comes like a nightmare - sometimes work, sometimes
> do not, and I can't explain this, how this could be? I made as you
> said and it worked 2 times but on third it began make errors with
> above messages.
Please keep the list in the loop.
There are various ways to debug this. One is by looking at (or logging) the
XML-RPC protocol messages and see what messages Zope is sending back and
forth. Shane Hathaway has produced the excellent tcpwatch product that also
can be used for just this purpose:
http://hathaway.freezope.org/Software/TCPWatch
The important thing to realize is that the traceback that you see are only
for code on the XML-RPC client side, but they are caused by errors on the
XML-RPC server side. You want to see what goes wrong on that side.
--
Martijn Pieters
| Software Engineer mailto:mj@zope.com
| Zope Corporation http://www.zope.com/
| Creators of Zope http://www.zope.org/
---------------------------------------------