使用 Python 通过 SOAP 实现 SharePoint
我一直在遵循此处提到的解决方案 - 因为这正是我需要实现的目标;
我如何从Python使用sharepoint(通过soap?)?< /a>
但是,当我运行此代码的最后一行之一时,出现以下错误;
<代码>>> client = SoapClient(url, {'opener' : opener})
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "build\bdist.win32\egg\suds\client.py", line 456, in __init__
AttributeError: 'str' object has no attribute 'options'
任何关于如何解决这个问题的建议或建议都非常受欢迎!
I have been following the solution noted here - as this is exactly what I need to achieve;
how can i use sharepoint (via soap?) from python?
however when I run one of the last lines of this code I get the following error;
>>> client = SoapClient(url, {'opener' : opener})
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "build\bdist.win32\egg\suds\client.py", line 456, in __init__
AttributeError: 'str' object has no attribute 'options'
Any advice or suggestion as to how to solve this most welcome!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 https://fedorahosted.org/suds/browser/ trunk/suds/client.py?rev=504
SoapClient
的第一个参数不是string
而是Client
的对象> 类。 您的参数不是所需类的实例。According to https://fedorahosted.org/suds/browser/trunk/suds/client.py?rev=504
The first parameter of
SoapClient
is not astring
but an object of theClient
class. Your parameter is not an instance of the required class.