ZSI bug?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Laszlo Zsolt Nagy

    #1

    ZSI bug?


    Hi All,

    I'm trying to use ZSI (and SOAP) for the first time. I read somewhere
    that ZSI is the most compete SOAP implementation. I have ZSI-1.7 and
    PyXML-0.8.4. This very simple code:

    import ZSI
    fname = 'eBaySvc.wsdl'
    version = 421
    url = 'http://developer.ebay. com/webservices/%s/%s' % (version,fname)
    print "Creating proxy..."
    proxy = ZSI.ServiceProx y(url)
    print proxy

    Throws me:

    C:/Python24/pythonw.exe -u "T:/Python/Projects/eBay-SOAP/test.py"
    Creating proxy...
    Traceback (most recent call last):
    File "T:/Python/Projects/eBay-SOAP/test.py", line 6, in ?
    proxy = ZSI.ServiceProx y(url)
    File "C:\Python24\Li b\site-packages\ZSI\Se rviceProxy.py", line 34, in
    __init__
    wsdl = ZSI.wstools.WSD LTools.WSDLRead er().loadFromUR L(wsdl)
    File "C:\Python24\Li b\site-packages\ZSI\ws tools\WSDLTools .py", line
    42, in loadFromURL
    wsdl.load(docum ent)
    File "C:\Python24\Li b\site-packages\ZSI\ws tools\WSDLTools .py", line
    260, in load
    schema = reader.loadFrom Node(WSDLToolsA dapter(self), item)
    File "C:\Python24\Li b\site-packages\ZSI\ws tools\XMLSchema .py", line
    80, in loadFromNode
    schema.load(rea der)
    File "C:\Python24\Li b\site-packages\ZSI\ws tools\XMLSchema .py", line
    1116, in load
    tp.fromDom(node )
    File "C:\Python24\Li b\site-packages\ZSI\ws tools\XMLSchema .py", line
    2271, in fromDom
    self.content.fr omDom(contents[indx])
    File "C:\Python24\Li b\site-packages\ZSI\ws tools\XMLSchema .py", line
    2328, in fromDom
    self.derivation .fromDom(i)
    File "C:\Python24\Li b\site-packages\ZSI\ws tools\XMLSchema .py", line
    2388, in fromDom
    component = SplitQName(cont ents[indx].getTagName())[1]
    IndexError: list index out of range

    Is this a ZSI bug? Or is it something that is not implemented in ZSI yet?

    Unfortunately, eBay's simple XML API is deprecated, I do not want to
    start a new project with that. Also I would not like to use MS .NET or
    Java because I prefer Python, of course. :-)

    Thanks,

    Laszlo Nagy



Working...