python - Soappy error: Fault SOAP-ENV:Server: Cannot use object of type stdClass as array -


i wanted access soappy webservices of internet provider.

here example in php provider of soap services: http://kasapi.kasserver.com/dokumentation/?open=soap

but not getting smart, run in python. error message: "cannot use object of type stdclass array"

any ideas how solve that?! program has 34 lines....

here code:

from soappy import wsdl soappy.errors import httperror soaphttperror soappy.types import faulttype import hashlib array import array  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 = ['mylogin','mypassword']         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() 

i got error message:

traceback (most recent call last):   file "/storage/pyprojects/toolsapp/kasupdate.py", line 33, in <module>     kasobj = kassystem()   file "/storage/pyprojects/toolsapp/kasupdate.py", line 28, in __init__     'sessionlifetime':1800,'sessionupdatelifetime':'y'})   file "build/bdist.linux-x86_64/egg/soappy/client.py", line 540, in __call__   file "build/bdist.linux-x86_64/egg/soappy/client.py", line 562, in __r_call   file "build/bdist.linux-x86_64/egg/soappy/client.py", line 475, in __call soappy.types.faulttype: <fault soap-env:server: cannot use object of type stdclass array> 

1st paramter of method must message name, 2nd parameter dict it's parameters......


Comments