Possible SOAP/ZSI bug?

Laszlo Zsolt Nagy <[email protected]>
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
  Hello,

I'm new to SOAP and pyXML. I tried to use the ZSI. Not sure about SOAPpy 
- is it better for me?

Here is my test program:

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

Results in an exception:

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

Thanks,

    Laszlo

_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.