[XML-SIG] [ pyxml-Bugs-565056 ] SOAP.py detects error in PyXML-0.7.1

noreply@sourceforge.net noreply@sourceforge.net
Wed, 05 Jun 2002 15:16:27 -0700


Bugs item #565056, was opened at 2002-06-05 14:16
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=565056&group_id=6473

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Dave Kuhlman (dkuhlman2)
Assigned to: Nobody/Anonymous (nobody)
Summary: SOAP.py detects error in PyXML-0.7.1

Initial Comment:
When I use SOAP.py (e.g. from SOAPpy097) with 
PyXML-0.7.1, I get an error.  The trace-back is below.

If I rename the _xmlplus directory under 
/usr/local/lib/python2.2/site-packages, then the error goes 
away.  I guess a default implementation of pyexpat in 
Python 2.2.1 is being used.

If I re-install PyXML-7.0, there is no error.

Note that if I attempt to fix the offending call by changing 
line 233 in expatreader.py from:

  self._parser = expat.ParserCreate(None, " ", intern =    
self._interning)

to:

  self._parser = expat.ParserCreate(None)

then I get another error, a bit farther down the line, which 
indicates that PyXML-0.7.1 is handling namespaces in a 
way that SOAP.py does not expect.

I am using Python 2.2.1.

Are there any notes on how to upgrade client code in 
order to adapt to PyXML-0.7.1?

  - Dave Kuhlman


=========================================
python weatherTest.py
Traceback (most recent call last):
  File "daveweatherTest.py", line 37, in ?
    main()
  File "daveweatherTest.py", line 33, in main
    getWeather(args[0])
  File "daveweatherTest.py", line 21, in getWeather
    print "inline", server._ns('ns1', 
MethodNamespaceURI).getTemp(zipcode=zip)
  File "../SOAP.py", line 3640, in __call__
    return self.__r_call(*args, **kw)
  File "../SOAP.py", line 3660, in __r_call
    self.__hd, self.__ma)
  File "../SOAP.py", line 3571, in __call
    p, attrs = parseSOAPRPC(r, attrs = 1)
  File "../SOAP.py", line 2825, in parseSOAPRPC
    t = _parseSOAP(xml_str, rules = rules)
  File "../SOAP.py", line 2809, in _parseSOAP
    parser.parse(inpsrc)
  File 
"/usr/local/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py", 
line 107, in parse
    self.reset()
  File 
"/usr/local/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py", 
line 233, in reset
    self._parser = expat.ParserCreate(None, " ", intern = 
self._interning)
=========================================



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=565056&group_id=6473