Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 2nd, 2012, 07:45 AM
SachinS SachinS is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 12 SachinS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 37 m 41 sec
Reputation Power: 0
SUDS question: [Errno 10060] while accessing sharepoint

Hi,
I am facing some problems while accessing sharepoint web-services, while it prints perfectly fine for "Sitedata.asmx", but fails for other services on the same sharepoint server.

Versions: Python 2.7
SUDS: 0.3.9
OS: Windows 7
----------Code---------
try:
import sys
from suds.client import *
from suds.transport.https import WindowsHttpAuthenticated
except ImportError, err:
print err
sys.exit(1)

if __name__ == '__main__':
mntlm = WindowsHttpAuthenticated(**creds) #username = user, password = password)
print mntlm

#-- The Sitedata.asmx works.
#mysite = mysite + '_vti_bin/SiteData.asmx?wsdl'
#print Client(mysite, transport=mntlm)

#-- The Lists.asmx doesn't work
mysite = mysite + '_vti_bin/Lists.asmx?wsdl'
print Client(mysite, transport=mntlm)


----------Error---------

D:\Data\Python Scripts\review>shpoint.py
<suds.transport.https.WindowsHttpAuthenticated instance at 0x0000000002318708>
Traceback (most recent call last):
File "D:\Data\Python Scripts\review\shpoint.py", line 38, in <module>
print Client(mysite, transport=mntlm)
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\client.py", line 111, in __ini
t__
self.wsdl = reader.open(url)
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\reader.py", line 136, in open
d = self.fn(url, self.options)
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\wsdl.py", line 159, in __init_
_
self.build_schema()
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\wsdl.py", line 220, in build_s
chema
self.schema = container.load(self.options)
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\xsd\schema.py", line 92, in lo
ad
child.open_imports(options)
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\xsd\schema.py", line 298, in o
pen_imports
imported = imp.open(options)
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\xsd\sxbasic.py", line 515, in
open
result = self.download(options)
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\xsd\sxbasic.py", line 533, in
download
d = reader.open(url)
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\reader.py", line 73, in open
d = self.download(url)
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\reader.py", line 88, in downlo
ad
fp = self.options.transport.open(Request(url))
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\transport\https.py", line 60,
in open
return HttpTransport.open(self, request)
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\transport\http.py", line 62, i
n open
return self.u2open(u2request)
File "C:\ActivePython27\lib\site-packages\suds-0.3.9-py2.7.egg\suds\transport\http.py", line 118,
in u2open
return url.open(u2request, timeout=tm)
File "C:\ActivePython27\lib\urllib2.py", line 394, in open
response = self._open(req, data)
File "C:\ActivePython27\lib\urllib2.py", line 412, in _open
'_open', req)
File "C:\ActivePython27\lib\urllib2.py", line 372, in _call_chain
result = func(*args)
File "C:\ActivePython27\lib\urllib2.py", line 1199, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\ActivePython27\lib\urllib2.py", line 1174, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 10060] A connection attempt failed because the connected par
ty did not properly respond after a period of time, or established connection failed because connect
ed host has failed to respond>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > SUDS question: [Errno 10060] while accessing sharepoint

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap