SOAPpy Error

linuxprog linuxprog at
Mon Sep 24 11:42:23 CEST 2007

hi all

i'm building a webservice client with soappy

when i send some informations it's returns an error
here is the informations that generates the error
    var = SOAPpy.structType()
    var._addItem("code", u"XysZjd")
    var._addItem("value", 1)
when i send the var variable SOAPpy prints this

  File "C:\Python23\lib\site-packages\SOAPpy\", line 473, in 
    return self.__r_call(*args, **kw)
  File "C:\Python23\lib\site-packages\SOAPpy\", line 495, in 
    self.__hd, self.__ma)
  File "C:\Python23\lib\site-packages\SOAPpy\", line 366, in __call
    config = self.config)
  File "C:\Python23\lib\site-packages\SOAPpy\", line 228, in call
    data = r.getfile().read()
AttributeError: 'NoneType' object has no attribute 'read'

when i have activate debug , the debug mode shows :
code :  -1
msg : 
headers : None

it should prints some thing like this if all goes well :
code :  200
msg :  OK
headers : Date: Mon, 24 Sep 2007 09:08:45 GMT
Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch7
X-Powered-By: PHP/5.2.0-8+etch7
Content-Length: 2116
Connection: close
Content-Type: text/xml; charset=utf-8

wha's wrong ?


More information about the Python-list mailing list