954,315 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

403 FORBIDDEN Error when using Python-Suds with Sharepoint

For the past 2 days, no matter which Sharepoint web service I access via Python's suds lib, the remote service always returns 403 Forbidden.

I'm using Python Suds 0.4 and Python NTLM 1.0. Suds 0.4 has built-in support for accessing Python NTLM.
I followed the documentation from Suds's website on Sharepoint and Suds.

Let me know if anyone has a clue about this.

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

    import logging
    logging.basicConfig(level=logging.INFO)
    logging.getLogger('suds.client').setLevel(logging.DEBUG)


    ntlm = WindowsHttpAuthenticated(username='USER_ID', password='PASS')
    c_lists = client.Client(url='https://SHAREPOINT_URL/_vti_bin/Lists.asmx?WSDL', transport=ntlm)
    #c_lists = client.Client(url='https://SHAREPOINT_URL/_vti_bin/spsearch.asmx?WSDL')

    #print c_lists

    listsCollection = c_lists.service.GetListCollection()
ttback
Newbie Poster
10 posts since Oct 2010
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: