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

发布于 2024-08-30 09:01:55 字数 1586 浏览 6 评论 0原文

最近是否有人通过 Crowd SOAP API 成功访问href="https://fedorahosted.org/suds/" rel="nofollow noreferrer">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, )'

我尝试了 绑定医生修复此问题无济于事。这两种方法都没有带来任何改变。任何进一步的建议或建议都会非常有帮助。

Has anybody had any recent success with accessing the Crowd SOAP API via the Suds Python library?

I've found a few people successfully doing it in the past but Atlassian seems to have changed their WSDL since then to make the existing advice not entirely helpful.

Below is the simplest example I've been trying:

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

Unfortunately that generates the following error:

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, )'

I've tried to both binding and doctors to fix this problem to no avail. Neither approach resulted in any change. Any further recommendations or suggestions would be incredibly helpful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萧瑟寒风 2024-09-06 09:01:55

这里有一个 Crowd WSDL 补丁:

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

There is a patch for the Crowd WSDL here:

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文