fails when connecting to https wsdl files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zsi (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
trying to create python wrapper for https:/
it can retrieve that URL, but the schema includes imports for other https locations e.g.
<xsd:import schemaLocation="https:/
this falls over with
Error loading https:/
sendall
Traceback (most recent call last):
File "/usr/lib/
wsdl = load(location)
File "/usr/lib/
document = DOM.loadFromURL
File "/usr/lib/
file = urlopen(url)
File "/usr/lib/
conn.
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.
AttributeError: sendall
and if I download that wsdl and try from a file I get:
Error loading eloqua.wsdl:
sendall
Traceback (most recent call last):
File "/usr/lib/
wsdl = load(location)
File "/usr/lib/
wsdl = self.loadFromSt
File "/usr/lib/
wsdl.
File "/usr/lib/
schema = reader.
File "/usr/lib/
schema.
File "/usr/lib/
tp.
File "/usr/lib/
reader.
File "/usr/lib/
reader.
File "/usr/lib/
self.__node = DOM.loadFromURL
File "/usr/lib/
file = urlopen(url)
File "/usr/lib/
conn.
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.
I managed to fix it by changing line 641 of /usr/lib/
file = urllib.urlopen(url)
which means it uses the standard urllib function rather than the one it wraps to add timeouts.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-zsi 2.1~a1-3 [modified: usr/share/
ProcVersionSign
Uname: Linux 3.2.0-17-generic x86_64
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
Date: Tue Feb 28 09:21:12 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120217)
PackageArchitec
SourcePackage: zsi
UpgradeStatus: No upgrade log present (probably fresh install)
I also got same error and fixed by changing
file = urlopen(url) to file = urllib.urlopen(url)
in ZSI-2.0_ rc3-py2. 7.egg/ZSI/ wstools/ Utility. py line number 637