[Fedora-suds-list] WebFault 'Version Mismatch'

Philipp Kalder pkalder at googlemail.com
Thu Mar 18 16:43:23 UTC 2010


Hello,

I'm trying to write a client for the Virtuozzo Containers 4 SOAP API. The
xml API is working for me, but I'm considering a rewirte. The SOAP API or at
least the WSDL files are quiet heavy.

The main file is:

http://www.swsoft.com/webservices/vzl/4.0.0/VZL.wsdl

You cannot use this file however. I'm parsing it to get the 'sublevel' WSDL
files, like

http://www.swsoft.com/webservices/vzl/4.0.0/VZLauthm.wsdl

After creating the client object I use set_options(location=""), because a
wild guess led me to believe that this way I can set the URL:port to query.
Usually the URL to send requests to would be listed in the WSDL file. But
here it's not.
After using set_options however print client look's just the same, but
running client.service reports a different error. First it's:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/suds/client.py", line 539, in __call__
File "build/bdist.linux-x86_64/egg/suds/client.py", line 598, in invoke
File "build/bdist.linux-x86_64/egg/suds/client.py", line 623, in send
File "build/bdist.linux-x86_64/egg/suds/transport/https.py", line 64, in
send
File "build/bdist.linux-x86_64/egg/suds/transport/http.py", line 77, in send
File "build/bdist.linux-x86_64/egg/suds/transport/http.py", line 118, in
u2open
File "/usr/lib/python2.6/urllib2.py", line 389, in open
response = self._open(req, data)
File "/usr/lib/python2.6/urllib2.py", line 407, in _open
'_open', req)
File "/usr/lib/python2.6/urllib2.py", line 367, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 1154, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.6/urllib2.py", line 1121, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>

The second is:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/suds/client.py", line 539, in __call__
File "build/bdist.linux-x86_64/egg/suds/client.py", line 598, in invoke
File "build/bdist.linux-x86_64/egg/suds/client.py", line 633, in send
File "build/bdist.linux-x86_64/egg/suds/client.py", line 684, in failed
File "build/bdist.linux-x86_64/egg/suds/bindings/binding.py", line 238, in
get_fault
suds.WebFault: Server raised fault: 'Version mismatch'

Following the second traceback upward it looks to me that I didn't even send
a call. Looking through the source code it look's as though the target
namespace's differ.

Does anybody know under which conditions the error:

suds.WebFault: Server raised fault: 'Version mismatch'

is raised? I'm clueless were to go from here. At the moment I'm still on
python's interactive shell, Version 2.6. Suds was installed from the tarball
(version 0.3.9) with

python setup.py install

(though the traceback look's that I should rather have used build copied it
;-) )

Any help is much appreciated. If details are missing, please accept my
apologies. Let me know and I'll send them in.

Regards,
Phil

P.S.:

The steps I do on interactive:

from suds.client import Client as sudsClient
client = sudsClient("
http://www.swsoft.com/webservices/vzl/4.0.0/VZLauthm.wsdl")
client.set_options(location="https://$vz_node_ip:$vzsoap_api_port")
client.service.get_realm()

P.S.S.: I thought of setting faults to false, but then I get another error
that seems to be related to some suds bug:

client.set_options(location="https://
$vz_node_ip:$vzsoap_api_port",faults=False)

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/suds/client.py", line 535, in __call__
File "build/bdist.linux-x86_64/egg/suds/client.py", line 598, in invoke
File "build/bdist.linux-x86_64/egg/suds/client.py", line 633, in send
File "build/bdist.linux-x86_64/egg/suds/client.py", line 684, in failed
File "build/bdist.linux-x86_64/egg/suds/bindings/binding.py", line 239, in
get_fault
AttributeError: Fault instance has no attribute 'detail'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/suds/attachments/20100318/de631a0d/attachment.html 


More information about the suds mailing list