SOAPpy.Types.faultType: Cannot use object of type stdClass as array

Tamer Higazi th982a at
Wed Mar 20 20:06:00 CET 2013

Hi poeple!
I wrote a small script, and I am not getting smart....what is ment with
this error message... Any ideas?!

I got this error message:

SOAPpy.Types.faultType: <Fault SOAP-ENV:Server: Cannot use object of
type stdClass as array>
File "/storage/PyProjects/toolsAPP/", line 32, in <module>
  KasObj = KASSystem()
File "/storage/PyProjects/toolsAPP/", line 27, in __init__

Here is the code:

from SOAPpy import WSDL
from SOAPpy.Errors import HTTPError as SoapHTTPError
from SOAPpy.Types import faultType
import hashlib

class KASSystem(object):
    def __init__(self):
        WSDL_AUTH = ''
        WSDL_API = ''
        userpass = ['login','password']
        m = hashlib.sha1()
        userpass[1] = m.hexdigest()
        loginData = {'user':userpass[0],'pass':userpass[1]}
        self.__SoapServer = WSDL.Proxy(WSDL_AUTH)
            self.__CredentialToken = self.__SoapServer.KasAuth({
        except (SoapHTTPError), e:
            print "Fehlermeldung:", e.code,e.msg
KasObj = KASSystem()

More information about the Python-list mailing list