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
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