#30 bug (?) in ServiceProxy with string url

closed-rejected
zsi (12)
5
2005-12-15
2005-10-03
Anonymous
No

Tag: serialize-dom-scheme

the following code in ServiceProxy.py seems to be
incorrect:

if isinstance(wsdl, basestring) is True:
self._wsdl =
wstools.WSDLTools.WSDLReader().loadFromURL(wsdl)

assert isinstance(self._wsdl,
wstools.WSDLTools.WSDL), 'expecting a WSDL instance'
self._service = wsdl.services[service or 0]

last line should read:

self._service = self._wsdl.services[service or 0]

Or may be I missed something

Discussion

  • Logged In: YES
    user_id=711996

    The line above your example:

    self._wsdl = wsdl

    self._wsdl and wsdl refer to the same instance.

     
    • assigned_to: nobody --> boverhof
    • status: open --> closed-rejected