Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'skip:[ 20': 0.03; 'try:': 0.07; '__init__': 0.09; 'hashlib': 0.09; 'script,': 0.09; 'def': 0.10; "skip:' 30": 0.15; 'httperror': 0.16; "skip:' 60": 0.16; 'skip:{ 30': 0.16; 'subject:array': 0.16; 'subject:object': 0.16; 'subject:type': 0.16; 'skip:" 40': 0.20; 'import': 0.21; 'header :User-Agent:1': 0.26; 'wrote': 0.26; 'charset:iso-8859-15': 0.26; "skip:' 50": 0.29; 'skip:_ 10': 0.29; 'class': 0.29; 'error': 0.30; 'file': 0.32; "skip:' 20": 0.32; 'print': 0.32; 'getting': 0.33; 'to:addr:python-list': 0.33; 'code:': 0.33; 'received:google.com': 0.34; 'from:addr:googlemail.com': 0.35; 'except': 0.36; 'received:74.125': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'here': 0.65; 'subject:skip:S 20': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=GzdG8YvI73WXdJrWghretoFEo8nB2iN+fKb2+df74sA=; b=wHvXD1xoJ/VemWvd01LKK7Ukq+VJFIv9PdygHpL6/JBWUgqZU+ltk0Cw5T19WOnKYu OBd4FxoexVNDAWrDBfVAc9ddGFH40003tKjxNciP1okW3aMkVGZ8vJ0HfqjHjHbsX6Sz JzXuHaHxoNk91b9V6XigXH7aNpN4P69Pn0CYQco7IgZvBuQZbU4zF0VlUB3dK36loogK QVzmErEyiPLBsVqykV/drHQDnHFHEwUpNxIrd66dni8A8dtt/8njhDTQPa8V7eci8CV+ qNABnYFxxveBIP7EmPWM6sF+zzI6RO1yxSguVegj7cSmwuJjXsJHUckAH/+Iy/eAAgbg QCqA== X-Received: by 10.14.3.133 with SMTP id 5mr43655615eeh.43.1363806362947; Wed, 20 Mar 2013 12:06:02 -0700 (PDT) Date: Wed, 20 Mar 2013 20:06:00 +0100 From: Tamer Higazi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130309 Thunderbird/17.0.4 MIME-Version: 1.0 To: python-list@python.org Subject: SOAPpy.Types.faultType: Cannot use object of type stdClass as array Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 50 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363806371 news.xs4all.nl 6904 [2001:888:2000:d::a6]:39938 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41616 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: File "/storage/PyProjects/toolsAPP/KASUpdate.py", line 32, in 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()