Hallo Christopher, Ich habe die Geschichte mal schnell in "suds umgeschriben, und der gleiche Quatsch kommt raus. Vielleicht, mache ich ja was falsch ????? Laut Anbieter muss ein "Array" übergeben werden, was für mich nach meiner Logik ein Dict ist, oder?! Hier der Quelltext: import hashlib from suds.client import Client from suds import WebFault class KASSystem: def __init__(self): WSDL_AUTH = 'https://kasapi.kasserver.com/soap/wsdl/KasAuth.wsdl' WSDL_API = 'https://kasapi.kasserver.com/soap/wsdl/KasApi.wsdl' m = hashlib.sha1() m.update('password') SoapClient = Client(WSDL_AUTH) print SoapClient try: SoapClient.service.KasAuth({ 'KasUser':'login', 'KasAuthType':'sha1', 'KasPassword':m.hexdigest(), 'SessionLifeTime':1800, 'SessionUpdateLifeTime':'Y'}) except WebFault, e: print e.fault KasObj = KASSystem() und hier die error: suds.WebFault: Server raised fault: 'Cannot use object of type stdClass as array' File "/storage/PyProjects/toolsAPP/python/KASUpdate2.py", line 23, in <module> KasObj = KASSystem() File "/storage/PyProjects/toolsAPP/python/KASUpdate2.py", line 20, in __init__ 'SessionUpdateLifeTime':'Y'}) File "/storage/PyENV/lin/toolsENV/lib/python2.7/site-packages/suds-0.4-py2.7.egg/suds/client.py", line 542, in __call__ File "/storage/PyENV/lin/toolsENV/lib/python2.7/site-packages/suds-0.4-py2.7.egg/suds/client.py", line 602, in invoke File "/storage/PyENV/lin/toolsENV/lib/python2.7/site-packages/suds-0.4-py2.7.egg/suds/client.py", line 649, in send File "/storage/PyENV/lin/toolsENV/lib/python2.7/site-packages/suds-0.4-py2.7.egg/suds/client.py", line 702, in failed File "/storage/PyENV/lin/toolsENV/lib/python2.7/site-packages/suds-0.4-py2.7.egg/suds/bindings/binding.py", line 265, in get_fault ich werde doof...... Am 23.03.2013 11:43, schrieb Christopher Arndt:
Keine Hilfe, aber eine allgemeine Bemerkung: ich habe generell mit suds (https://fedorahosted.org/suds/) bessere Erfahrungen gemacht, als mit anderen Python SOAP client libraries.
Sofern man mit SOAP überhaupt gute Erfahrungen machen kann ;)
Chris
_______________________________________________ python-de maillist - python-de@python.org http://mail.python.org/mailman/listinfo/python-de