falc410 / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

getting Args keys not in parameter #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I have this simple code which calls a method that gets a complex type UserToken

        from pysimplesoap.client import SoapClient
        import datetime
        import hmac
        import hashlib

        client = SoapClient(wsdl="http://sandbox.voxbone.com/VoxAPI/services/VoxAPI?wsdl", cache=None)
        key = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S:%f000000")
        password="fwefewfewfew"
        usertoken={'Username': "oihfweohf", 'Key': key, 'Hash': hmac.new(key, password, digestmod=hashlib.sha1).hexdigest()}
        response = client.GetPOPList(UserToken=usertoken)
        result = response['GetPOPListResponse']
        print result

What is the expected output? What do you see instead?
Doing the call.
the error I'm getting is:

Error
Traceback (most recent call last):
  File "[removed path for file]", line 25, in testVoxBone
    response = client.GetPOPList(UserToken=usertoken)
  File "build/bdist.macosx-10.9-intel/egg/pysimplesoap/client.py", line 172, in <lambda>
    return lambda *args, **kwargs: self.wsdl_call(attr, *args, **kwargs)
  File "build/bdist.macosx-10.9-intel/egg/pysimplesoap/client.py", line 328, in wsdl_call
    method, params = self.wsdl_call_get_params(method, input, *args, **kwargs)
  File "build/bdist.macosx-10.9-intel/egg/pysimplesoap/client.py", line 362, in wsdl_call_get_params
    raise ValueError('Invalid Args Structure. Errors: %s' % errors)
ValueError: Invalid Args Structure. Errors: [u"Args keys not in parameter. 
parameter: {}, args: {'Username': 'oihfweohf', 'Hash': 
'50cc76bfe91cc1bd3d52381163cd3fc24392b763', 'Key': '2014-04-13 
00:16:39:295507000000'}"]

What version of the product are you using? On what operating system?
latest git version

Please provide any additional information below.

Original issue reported on code.google.com by y...@taguri.com on 12 Apr 2014 at 9:19

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 39cab71f24ef.

Original comment by reingart@gmail.com on 3 May 2014 at 4:22