我如何从 python 使用共享点(通过soap?)? [英] how can i use sharepoint (via soap?) from python?

查看:17
本文介绍了我如何从 python 使用共享点(通过soap?)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 python (C-Python) 中使用 Sharepoint

I want to use Sharepoint with python (C-Python)

有人试过吗?

推荐答案

我怀疑自从回答了这个问题后,SUDS 库已经更新以处理所需的身份验证本身.跳过各种圈套后,我发现这样做可以解决问题:

I suspect that since this question was answered the SUDS library has been updated to take care of the required authentication itself. After jumping through various hoops, I found this to do the trick:


from suds import WebFault
from suds.client import *
from suds.transport.https import WindowsHttpAuthenticated


user = r'SERVERuser'
password = "yourpassword"
url = "http://sharepointserver/_vti_bin/SiteData.asmx?WSDL"


ntlm = WindowsHttpAuthenticated(username = user, password = password)
client = Client(url, transport=ntlm)

这篇关于我如何从 python 使用共享点(通过soap?)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆