[Zope-CVS] SVN: soap/trunk/README.txt require ZSI 1.6,
since it handles floats better than ZSI 1.5
Fred L. Drake, Jr.
fdrake at gmail.com
Tue Feb 1 13:50:18 EST 2005
Log message for revision 29014:
require ZSI 1.6, since it handles floats better than ZSI 1.5
Changed:
U soap/trunk/README.txt
-=-
Modified: soap/trunk/README.txt
===================================================================
--- soap/trunk/README.txt 2005-02-01 16:27:46 UTC (rev 29013)
+++ soap/trunk/README.txt 2005-02-01 18:50:18 UTC (rev 29014)
@@ -4,7 +4,7 @@
This SOAP implementation allows you provide SOAP views for objects. The
SOAP layer is based on `ZSI <http://pywebsvcs.sourceforge.net/>`__.
-The package requires ZSI 1.5 or better (which in turn requires that
+The package requires ZSI 1.6 or better (which in turn requires that
`PyXML <http://pyxml.sourceforge.net/>`__ 0.6.6 or better is installed).
SOAP support is implemented in a way very similar to the standard Zope 3
@@ -273,7 +273,7 @@
...1...2...3...4...
-Note that floats dont seem to work for some reason:
+Note that floats are returned as xsd:decimal values:
>>> print http(r"""
... POST / HTTP/1.0
@@ -296,14 +296,14 @@
... </SOAP-ENV:Body>
... </SOAP-ENV:Envelope>
... """)
- HTTP/1.0 500 ...
+ HTTP/1.0 200 ...
Content-Length: ...
Content-Type: text/xml...
<BLANKLINE>
- ...Fault...
+ ...xsi:type="xsd:decimal">42.200000</...
-Nor do float arrays:
+Even if they're in float arrays:
>>> print http(r"""
... POST / HTTP/1.0
@@ -331,11 +331,14 @@
... </SOAP-ENV:Body>
... </SOAP-ENV:Envelope>
... """)
- HTTP/1.0 500 ...
+ HTTP/1.0 200 ...
Content-Length: ...
Content-Type: text/xml...
<BLANKLINE>
- ...Fault...
+ ...xsi:type="xsd:decimal">1.100000</...
+ ...xsi:type="xsd:decimal">2.200000</...
+ ...xsi:type="xsd:decimal">3.300000</...
+ ...xsi:type="xsd:decimal">4.400000</...
>>> result = http(r"""
More information about the Zope-CVS
mailing list