Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41616
| Date | 2013-03-20 20:06 +0100 |
|---|---|
| From | Tamer Higazi <th982a@googlemail.com> |
| Subject | SOAPpy.Types.faultType: Cannot use object of type stdClass as array |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3574.1363806371.2939.python-list@python.org> (permalink) |
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()
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
SOAPpy.Types.faultType: Cannot use object of type stdClass as array Tamer Higazi <th982a@googlemail.com> - 2013-03-20 20:06 +0100
csiph-web