View Single Post
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#5
Originally Posted by mece View Post
perhaps some bug in the soap library there?
missing an import sys?
sys is imported into script. But its not in the library.
Anyway it isn't very imported because it fails at this line
Code:
nodes = domobj.getElementsByTagName('definitions')
		if len(nodes) == 0:
			print "Couldn't find definitions tag!"
			sys.exit(1)

Originally Posted by viraptor View Post
Not sure about the rest, but this should be imported as:
Code:
from ZSI.ServiceProxy import ServiceProxy
Changed it and it hives a different error.
File "build/bdist.linux-i686/egg/ZSI/wstools/WSDLTools.py", line 1116, in getAddressBinding
ZSI.wstools.WSDLTools.WSDLError: No address binding found in port.

Originally Posted by viraptor View Post
Ah - and httplib should be without "http://...":
Code:
httpServ = httplib.HTTPConnection("192.168.1.72", 80)
When I do this, it doesn't give an error. But it returns nothing.
However if I omit the first / in the uri path, it returns Bad Request HTTP Error.