[Zope] SOAP/XMLRPC help

Antonio Beamud Montero antonio.beamud@linkend.com
28 Apr 2003 17:42:33 +0200


Hi all:
 I have changed the implementation of SOAP (like the XMLRPC does). I
have used SOAP.py (from the pywebsvcs.sf.net).
I can call a method that returns me a list of strings (ids). The first
time it works fine, but the next times it fails with the next error:
If I invoke the same method with XMLRPC all works ok...
I don't know how ZPublisher works internally.
Can anybody help me to debug the problem?

Thanks.

*** Incoming HTTP headers **********************************************
HTTP/1.? 500 Internal Server Error
Server: Zope/(Zope 2.6.1 (binary release, python 2.1, linux2-x86),
python 2.1.3, linux2) ZServer/1.1b1
Date: Mon, 28 Apr 2003 15:39:56 GMT
Bobo-Exception-File:
/usr/lib/python2.1/site-packages/_xmlplus/sax/saxexts.py
Content-Type: text/html
Bobo-Exception-Type: TypeError
Connection: close
Bobo-Exception-Value: bobo exception
Etag:
Content-Length: 1146
Bobo-Exception-Line: 74
************************************************************************
*** Incoming SOAP ******************************************************
<html><head><title>Zope</title></head><body bgcolor="#FFFFFF">


<table border="0" width="100%">
<tr valign="TOP">

<td width="10%" align="center">
<img src="http://localhost:10080/p_/ZButton" alt="Zope">
</td>

<td width="90%">
  <h2>Zope Error</h2>
  <p>Zope has encountered an error while publishing this resource.</p>
  
  
  <p>
  <strong>Error Type: TypeError</strong><br>
  <strong>Error Value: __init__() takes at least 2 arguments (1
given)</strong><br> 
  </p>
 
  <hr noshade>
 
  <p>Troubleshooting Suggestions</p>

  <ul>
    <li>The URL may be incorrect.</li>
  <li>The parameters passed to this resource may be incorrect.</li>
  <li>A resource that this resource relies on may be encountering an
error.</li>
  </ul>

  <p>For more detailed information about the error, please
  refer to the HTML source for this page.
  </p>

  <p>If the error persists please contact the site maintainer.
  Thank you for your patience.
  </p>
</td></tr>
</table>


<p><a href="http://www.zope.org/Credits" target="_top"><img
src="http://localhost:10080/p_/ZopeButton" width="115" heigh="50"
border="0" alt="Powered by Zope" /></a></p></body></html>
************************************************************************
Traceback (most recent call last):
  File "./hadaSoapClient.py", line 21, in ?
    l = server.miscript()
  File "/usr/lib/python2.1/site-packages/SOAPpy/SOAP.py", line 3674, in
__call__
    return self.__r_call(*args, **kw)
  File "/usr/lib/python2.1/site-packages/SOAPpy/SOAP.py", line 3694, in
__r_call
    self.__hd, self.__ma)
  File "/usr/lib/python2.1/site-packages/SOAPpy/SOAP.py", line 3602, in
__call
    config = self.config)
  File "/usr/lib/python2.1/site-packages/SOAPpy/SOAP.py", line 3529, in
call
    raise HTTPError(code, msg)
SOAPpy.SOAP.HTTPError: <HTTPError 500 Internal Server Error>

-- 
Antonio Beamud Montero <antonio.beamud@linkend.com>