Type Not found error for calling SOAP API TestSet_RetrieveById() or TestSet_RetrieveForOwner()

Thursday, May 8, 2014
Avatar

I am using SOAP API to connect with a Project and trying to get the TestSet information, but when I call TestSet_RetrieveById() or TestSet_RetrieveForOwner(), I alway got the TypeNotFound error. Any idea?

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\client.py", l
ine 542, in __call__
    return client.invoke(args, kwargs)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\client.py", l
ine 602, in invoke
    result = self.send(soapenv)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\client.py", l
ine 643, in send
    result = self.succeeded(binding, reply.message)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\client.py", l
ine 678, in succeeded
    reply, result = binding.get_reply(self.method, reply)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\bindings\bind
ing.py", line 165, in get_reply
    result = unmarshaller.process(nodes[0], resolved)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\typed.py"
, line 66, in process
    return Core.process(self, content)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 48, in process
    return self.append(content)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 63, in append
    self.append_children(content)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 140, in append_children
    cval = self.append(cont)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 63, in append
    self.append_children(content)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 140, in append_children
    cval = self.append(cont)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 63, in append
    self.append_children(content)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 140, in append_children
    cval = self.append(cont)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 61, in append
    self.start(content)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\typed.py"
, line 77, in start
    found = self.resolver.find(content.node)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\resolver.py",
 line 341, in find
    frame = Frame(result, resolved=known, ancestry=ancestry)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\resolver.py",
 line 473, in __init__
    resolved = type.resolve()
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\xsd\sxbasic.p
y", line 63, in resolve
    raise TypeNotFound(qref)
suds.TypeNotFound: Type not found: '(ArrayOfint, http://schemas.microsoft.com/20
03/10/Serialization/Arrays, )'
>>> client.service.TestSet_RetrieveById(56)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\client.py", l
ine 542, in __call__
    return client.invoke(args, kwargs)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\client.py", l
ine 602, in invoke
    result = self.send(soapenv)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\client.py", l
ine 643, in send
    result = self.succeeded(binding, reply.message)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\client.py", l
ine 678, in succeeded
    reply, result = binding.get_reply(self.method, reply)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\bindings\bind
ing.py", line 165, in get_reply
    result = unmarshaller.process(nodes[0], resolved)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\typed.py"
, line 66, in process
    return Core.process(self, content)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 48, in process
    return self.append(content)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 63, in append
    self.append_children(content)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 140, in append_children
    cval = self.append(cont)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 63, in append
    self.append_children(content)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 140, in append_children
    cval = self.append(cont)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 63, in append
    self.append_children(content)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 140, in append_children
    cval = self.append(cont)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\core.py",
 line 61, in append
    self.start(content)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\umx\typed.py"
, line 77, in start
    found = self.resolver.find(content.node)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\resolver.py",
 line 341, in find
    frame = Frame(result, resolved=known, ancestry=ancestry)
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\resolver.py",
 line 473, in __init__
    resolved = type.resolve()
  File "C:\apps\Python27\lib\site-packages\suds-0.4-py2.7.egg\suds\xsd\sxbasic.p
y", line 63, in resolve
    raise TypeNotFound(qref)
suds.TypeNotFound: Type not found: '(ArrayOfint, http://schemas.microsoft.com/20
03/10/Serialization/Arrays, )'

 

1 Replies
Tuesday, May 13, 2014
Avatar
inflectra.sarahx
re: ygan Thursday, May 8, 2014
Hi

It looks like the Python soap client (suds) is not pulling the standard dependencies in the WSDL. Here are some potential solutions:


Regards
Sarah

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Thursday, May 8, 2014
  • Last Reply: Tuesday, May 13, 2014
  • Replies: 1
  • Views: 19122