gpt4 book ai didi

python - 使用 Suds(python SOAP 库)访问 Atlassian Crowd SOAP API

转载 作者:太空狗 更新时间:2023-10-30 03:07:52 25 4
gpt4 key购买 nike

有没有人最近成功访问了Crowd SOAP API?通过 Suds Python 库?

我发现过去有几个人成功地做到了这一点,但 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, )'

我都试过了 bindingdoctors修复此问题无济于事。这两种方法都没有导致任何改变。任何进一步的建议或建议都会非常有帮助。

最佳答案

这里有一个 Crowd WSDL 补丁:

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

关于python - 使用 Suds(python SOAP 库)访问 Atlassian Crowd SOAP API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2710086/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com