Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#300 SharePoint compatibility

open
nobody
None
5
2011-09-10
2011-09-10
No

Sharepoint likes to give back results in empty tags with lots of attributes. (Insert MS bashing here).
soappy first takes this kind as simple type then cannot convert it to any simple type.
The following patch makes it possible to retrieve such data from SPS

diff --git a/Parser.py b/Parser.py
index 7423fd8..ee82581 100644
--- a/Parser.py
+++ b/Parser.py
@@ -374,7 +374,7 @@ class SOAPParser(xml.sax.handler.ContentHandler):
data = self.convertType(string.join(self._data, ""),
kind, attrs)
except UnknownTypeError:
- data = None
+ data = structType(name = (ns, name), attrs = attrs)
else:
data = None

Discussion