11-12-2005 04:06 AM
from SOAPpy import WSDL, Types,SOAPProxy
alfrescoPassword = "admin"
alfrescoUser = "admin"
wsdlFile = "http://localhost:8080/alfresco/wsdl/authentication-service.wsdl"
server = WSDL.Proxy(wsdlFile)
myTicket=server.startSession(alfrescoUser, alfrescoPassword)11-12-2005 04:54 AM
authoringService = WSDL.Proxy('http://localhost:8080/alfresco/wsdl/authoring-service.wsdl')
I get the following traceback:
—————————————————————————
SOAPpy.wstools.TimeoutSocket.TimeoutError Traceback
(most recent call last)
C:\alfresco\custo\webservice\<console>
C:\Python24\Lib\site-packages\SOAPpy\WSDL.py in __init__(self, wsdlsource, confi
g, **kw)
60 try:
61 stream = urllib.urlopen(wsdlsource)
—> 62 self.wsdl = reader.loadFromStream(stream, wsdlsource)
63 except (IOError, OSError): pass
64
C:\Python24\Lib\site-packages\SOAPpy\wstools\WSDLTools.py in loadFromStream(self
, stream, name)
32 elif hasattr(stream, 'name'):
33 wsdl.location = stream.name
—> 34 wsdl.load(document)
35 return wsdl
36
C:\Python24\Lib\site-packages\SOAPpy\wstools\WSDLTools.py in load(self, document
)
191 location = DOM.getAttr(element, 'location')
192 location = urllib.basejoin(base_location, location)
–> 193 self._import(self.document, element, base_location)
194
195 #reader = SchemaReader(base_url=self.location)
C:\Python24\Lib\site-packages\SOAPpy\wstools\WSDLTools.py in _import(self, docum
ent, element, base_location)
296 obimport._loaded = 1
297
–> 298 importdoc = DOM.loadFromURL(location)
299 try:
300 if location.find('#') > -1:
C:\Python24\Lib\site-packages\SOAPpy\wstools\Utility.py in loadFromURL(self, url
)
607 file = open(url, 'r')
608 else:
–> 609 file = urlopen(url)
610
611 try:
C:\Python24\Lib\site-packages\SOAPpy\wstools\Utility.py in urlopen(url, timeout,
redirects)
145 conn.putrequest('GET', path)
146 conn.putheader('Connection', 'close')
–> 147 conn.endheaders()
148 response = None
149 while 1:
C:\Python24\lib\httplib.py in endheaders(self)
792 raise CannotSendHeader()
793
–> 794 self._send_output()
795
796 def request(self, method, url, body=None, headers={}):
C:\Python24\lib\httplib.py in _send_output(self)
673 msg = "\r\n".join(self._buffer)
674 del self._buffer[:]
–> 675 self.send(msg)
676
677 def putrequest(self, method, url, skip_host=0, skip_accept_encoding=
0):
C:\Python24\lib\httplib.py in send(self, str)
640 if self.sock is None:
641 if self.auto_open:
–> 642 self.connect()
643 else:
644 raise NotConnected()
C:\Python24\Lib\site-packages\SOAPpy\wstools\Utility.py in connect(self)
96 def connect(self):
97 self.sock = TimeoutSocket(self.timeout)
—> 98 self.sock.connect((self.host, self.port))
99
100
C:\Python24\Lib\site-packages\SOAPpy\wstools\TimeoutSocket.py in connect(self, *
addr)
72 return 1
73 raise
—> 74 raise TimeoutError('socket connect() timeout.')
75
76 def send(self, data, flags=0):
TimeoutError: socket connect() timeout.
01-05-2006 11:35 AM
<wss:security>
<wss:UsernameToken>
<wss:Username>userNameValue</wss:Username>
<wss:Password>ticketValue</wss:Password>
</wss:UsernameToken>
</wss:security>
where
wss is the namespace http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
userNameValue is the user name
ticketValue is the ticket string
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.