ZSI bug?

  • Thread starter Laszlo Zsolt Nagy
  • Start date
L

Laszlo Zsolt Nagy

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.ServiceProxy(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.ServiceProxy(url)
File "C:\Python24\Lib\site-packages\ZSI\ServiceProxy.py", line 34, in
__init__
wsdl = ZSI.wstools.WSDLTools.WSDLReader().loadFromURL(wsdl)
File "C:\Python24\Lib\site-packages\ZSI\wstools\WSDLTools.py", line
42, in loadFromURL
wsdl.load(document)
File "C:\Python24\Lib\site-packages\ZSI\wstools\WSDLTools.py", line
260, in load
schema = reader.loadFromNode(WSDLToolsAdapter(self), item)
File "C:\Python24\Lib\site-packages\ZSI\wstools\XMLSchema.py", line
80, in loadFromNode
schema.load(reader)
File "C:\Python24\Lib\site-packages\ZSI\wstools\XMLSchema.py", line
1116, in load
tp.fromDom(node)
File "C:\Python24\Lib\site-packages\ZSI\wstools\XMLSchema.py", line
2271, in fromDom
self.content.fromDom(contents[indx])
File "C:\Python24\Lib\site-packages\ZSI\wstools\XMLSchema.py", line
2328, in fromDom
self.derivation.fromDom(i)
File "C:\Python24\Lib\site-packages\ZSI\wstools\XMLSchema.py", line
2388, in fromDom
component = SplitQName(contents[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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top