SOAPpy Error

linuxprog linuxprog at gmail.com
Mon Sep 24 15:42:57 CEST 2007


linuxprog a écrit :
> 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\Client.py", line 473, in 
> __call__
>    return self.__r_call(*args, **kw)
>  File "C:\Python23\lib\site-packages\SOAPpy\Client.py", line 495, in 
> __r_call
>    self.__hd, self.__ma)
>  File "C:\Python23\lib\site-packages\SOAPpy\Client.py", line 366, in 
> __call
>    config = self.config)
>  File "C:\Python23\lib\site-packages\SOAPpy\Client.py", 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 ?
>
> Thanks
>
still no answer !?



More information about the Python-list mailing list