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

T

Tamer Higazi

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/KASUpdate.py", line 32, in <module>
KasObj = KASSystem()
File "/storage/PyProjects/toolsAPP/KASUpdate.py", line 27, in __init__
'SessionLifeTime':loginData['sess_lt'],'SessionUpdateLifeTime':'Y'})



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 = 'https://kasapi.kasserver.com/soap/wsdl/KasAuth.wsdl'
WSDL_API = 'https://kasapi.kasserver.com/soap/wsdl/KasApi.wsdl'


userpass = ['login','password']
m = hashlib.sha1()
m.update(userpass[1])

userpass[1] = m.hexdigest()
loginData = {'user':userpass[0],'pass':userpass[1]}

self.__SoapServer = WSDL.Proxy(WSDL_AUTH)

try:
self.__CredentialToken = self.__SoapServer.KasAuth({
'KasUser':loginData['user'],
'KasAuthType':'sha1',
'KasPassword':loginData['pass'],
'SessionLifeTime':1800,'SessionUpdateLifeTime':'Y'})

except (SoapHTTPError), e:
print "Fehlermeldung:", e.code,e.msg

KasObj = KASSystem()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top