4

最近有没有人通过Suds Python 库访问Crowd SOAP API取得任何成功?

我发现过去有几个人成功地做到了这一点,但 Atlassian 似乎从那时起改变了他们的 WSDL,以使现有的建议不完全有用。

下面是我一直在尝试的最简单的例子:

from suds.client import Client
url = 'https://crowd.hugeinc.com/services/SecurityServer?wsdl'
client = Client(url)

不幸的是,这会产生以下错误:

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/Users/soconnor/.virtualenvs/hugeface/lib/python2.6/site-packages/suds/client.py", line 116, in __init__
    sd = ServiceDefinition(self.wsdl, s)
  File "/Users/soconnor/.virtualenvs/hugeface/lib/python2.6/site-packages/suds/servicedefinition.py", line 58, in __init__
    self.paramtypes()
  File "/Users/soconnor/.virtualenvs/hugeface/lib/python2.6/site-packages/suds/servicedefinition.py", line 137, in paramtypes
    item = (pd[1], pd[1].resolve())
  File "/Users/soconnor/.virtualenvs/hugeface/lib/python2.6/site-packages/suds/xsd/sxbasic.py", line 63, in resolve
    raise TypeNotFound(qref)
TypeNotFound: Type not found: '(AuthenticatedToken, http://authentication.integration.crowd.atlassian.com, )'

我已经尝试绑定医生来解决这个问题,但无济于事。这两种方法都没有导致任何变化。任何进一步的建议或建议都会非常有帮助。

4

1 回答 1

4

这里有 Crowd WSDL 的补丁:

http://jira.atlassian.com/browse/CWD-159

于 2010-04-28T06:16:48.777 回答