python ... WSDL SOAP
2:10 AM | Author: devista
import SOAPpy

from SOAPpy import WSDL

if __name__ == '__main__':
#SOAPpy.Config.debug = 1
url = '???'
server = WSDL.Proxy(url)

#print server.methods.keys()
#returns: [u'Echo']

server.Echo('Testing')

### OUTPUT BELOW

Traceback (most recent call last):
File "test_api.py", line 12, in <module>
server.Echo('Testing')
File "/usr/lib/pymodules/python2.6/SOAPpy/Client.py", line 470, in __call__
return self.__r_call(*args, **kw)
File "/usr/lib/pymodules/python2.6/SOAPpy/Client.py", line 492, in __r_call
self.__hd, self.__ma)
File "/usr/lib/pymodules/python2.6/SOAPpy/Client.py", line 363, in __call
config = self.config)
File "/usr/lib/pymodules/python2.6/SOAPpy/Client.py", line 187, in call
r.endheaders()
File "/usr/lib/python2.6/httplib.py", line 892, in endheaders
self._send_output()
File "/usr/lib/python2.6/httplib.py", line 764, in _send_output
self.send(msg)
File "/usr/lib/python2.6/httplib.py", line 723, in send
self.connect()
File "/usr/lib/python2.6/httplib.py", line 704, in connect
self.timeout)
File "/usr/lib/python2.6/socket.py", line 500, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known

|
This entry was posted on 2:10 AM and is filed under . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

0 comments: