A fork of https://github.com/Synerty/SOAPpy-py3 This is a working tree till fixes get imported upstream.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

591 lines
21 KiB

  1. Release 0.12.0 of SOAPpy
  2. ------------------------
  3. This release primarily foces on bug fixes. Primary changes:
  4. - Fixes for bug reports that have accumulated over the last year
  5. [ 916265] "Arrays of unicode do not serialize correctly (patch included)"
  6. [ 918216] "Parsing faults in SOAPpy 0.11.3"
  7. [ 925077] "SOAPpy prints out SOAP fault" (even when Config.debug is off).
  8. [1001646] "SOAPpy stomps headers when sending multirefs"
  9. [1001646] "SOAPpy stomps headers when sending multirefs.
  10. [1064233] "Bug fixes for complex types"
  11. [1064248] "Bugs in _asdict() and _asarray() in Types.py"
  12. [1078051] "Arrays of complex types (doc/lit)"
  13. [1096971] "Parse error: missing HTTP header 'Content-length'"
  14. [1106450] "Floats are truncated to 10 digits, causing precision loss"
  15. [1122991] "error from SOAPpy/Client.py for content_length evaluation?"
  16. - Fixes for 'rules' which allow control of the data types of *incoming* messages.
  17. As a consequence TCtest.py now passes all tests.
  18. - WSDL support has been improving, due to work on the 'wstools'
  19. module which is shared between ZSI and SOAPpy.
  20. - Some work has been done to improve documentation.
  21. Release 0.11.6 of SOAPpy
  22. ------------------------
  23. Changes to URLs and email addresses in documentation.
  24. Release 0.11.5 of SOAPpy
  25. ------------------------
  26. - Bug fixes
  27. - Fix string format error in fault handling
  28. Release 0.11.4 of SOAPpy
  29. ------------------------
  30. - Bug fixes:
  31. - SOAPpy/Server.py: Check if header information contains SOAPAction
  32. key before checking its value.
  33. - Fixes for generating SOAP from complexType arrays, contributed by
  34. antonio.beamud@linkend.com
  35. - Fixed bug that caused typedArrayTypes to lose their type
  36. information when rendered to SOAP and added corresponding
  37. test case.
  38. - New Features
  39. - Enhancements to fault handling: The faultType Faultstring is now
  40. a non-variable string (i.e. no nsmethod in it) so that it can be
  41. programmatically checked. In addition fault handlers can now be
  42. registered to handle specific types of faults.
  43. - SOAPpy/Server.py: Modified unregsiterObject function to take
  44. optional namespace/path args to be consistent with registerObject.
  45. - SOAPpy/Server.py: Added an unregisterObject function
  46. - Changes to allow SOAPBuilder so it can handle a 'raw' Python object.
  47. Release 0.11.2 of SOAPpy
  48. ------------------------
  49. - News:
  50. Ivan R. Judson has joined the SOAPpy team. He is focused on
  51. Globus support but is also responsible for a lot of other work for
  52. this release,
  53. - Bug fixes:
  54. - Code in Types.py assumes nested scopes, so I added the proper import so
  55. this will work under python 2.2.x
  56. - Fixing namespace collision
  57. - Fixed handing of named arguments bug introduced in 0.11.1.
  58. - Fix memory leak when exceptions are raised.
  59. - Fix bug when content-length is not present in parsed SOAP message.
  60. - Fix bug #888345: Python 2.3 boolean type serialized as int
  61. - Fix bug #875977: no escaping of bad tagnames for NoneTypes
  62. - New features:
  63. - Improved Globus support and documentation. Thanks Ivan!
  64. - Added context handling
  65. - Changed the use of SOAPAction, it used to default to setting it
  66. to "", now it defaults to setting it to the method (not the
  67. nsmethod). There is a clause in Server.py that catches 'old style'
  68. SOAPActions (aka "") and sets them to the method. When this is
  69. confirmed to be what everyone wants and we decide it's alright to
  70. (possibly) break client/server interop, we can take the clause out
  71. of Server.py and just handle SOAPActions of "" as a possible
  72. error/warning.
  73. - Additional test code.
  74. - Raise a SOAPException instead of returning a SOAPpy.faultType
  75. when a SOAP Fault is encountered and simplify_objects is enabled.
  76. Release 0.11.1 of SOAPpy
  77. ------------------------
  78. - Bug fixes:
  79. - Fixed bug [ 792258 ] "SOAPBuilder.SOAPBuilder.dump can catch
  80. wrong exceptions" in SOAPBuilder.dump() submitted by Greg Chapman
  81. (glchapman).
  82. - Changes suggested by Richard Au (richardau) to fix ssl support.
  83. See bug report [ 752882 ] "SSL SOAP Server no longer working."
  84. - Remove call to gentag from 'dump' and add to 'dump_float', per
  85. bug report [ 792600 ] "SOAPBuilder.SOAPBuilder.dump possibly should
  86. not call gentag" by Greg Chapman (glchapman).
  87. - Add a tests for handling of nil="true" and nil="false". This
  88. fixes bug [ pywebsvcs-Bugs-858168 ] 'xsi:nil="true" causes
  89. exception' reported by Robert Zimmermann (robertzett):
  90. - testClient1.py now works properly. It had been failing to start the
  91. server thread on the second unit test. It turned out that the
  92. variable 'quit' needed to be reset to zero after the SOAP server
  93. thread for the first unit test exited. With the solution of this
  94. problem testClient1 can now be extended to run unit tests of both
  95. client and server components.
  96. - Added 'strict' option to the WSDL class. If strict is true, a
  97. RuntimeException will be raised if an unrecogned message is recieved.
  98. If strict is false, a warning will be printed to the console, the
  99. message type will be added to the WSDL schema, and processing will
  100. continue. This is in response to the second half of bug report [
  101. 817331 ] "Some WSDL.py changes", submitted by Rudolf Ruland.
  102. Release 0.11.0 of SOAPpy
  103. ------------------------
  104. - New/Changed configuration settings:
  105. - Config.simplify_objects=1 now converts all SOAPpy objects into basic
  106. Python types (list, dictionary, tuple, double, float, etc.). By default,
  107. Config.simplify_objects=0 for backward compatibility.
  108. - Config.dict_encoding='ascii' converts the keys of dictionaries
  109. (e.g. created when Config.simplify_objects=1) to ascii == plain python
  110. strings instead of unicode strings. This variable can be set to any
  111. encoding known to string.encode().
  112. - Config.strict_range=1 forces the SOAP parsing routines to perform
  113. range checks on recieved SOAP float and double objects. When
  114. Config.strict_range=0, the default, parsing does not perform range
  115. checking (except for detecting overflows, which always occurs). In
  116. either case, range checking is performed when
  117. generating SOAP float and double objects.
  118. - Fixes for WSDLProxy.
  119. - Scripts in the test/ directory
  120. - Verbose debugging messages have been turned off..
  121. - SOAPtest.py now functions when Config.simplify_objects=1
  122. - SOAPtest.py now sets Config.strict_range=1 so that range
  123. checks are be properly tested.
  124. - New README file listing what test scripts fail and why.
  125. - Initial support for Globus via pyGlobus contributed by Ivan
  126. R. Judson <judson@mcs.anl.gov>.
  127. Release 0.10.4 of SOAPpy
  128. ------------------------
  129. Dramatic performance improvements for large data transfers.
  130. Release 0.10.1 of SOAPpy
  131. ------------------------
  132. only minor changes
  133. 1) Code now uses a single file to store version number
  134. 2) Client and server now report 'SOAPpy' as the server/user-agent.
  135. 3) All test scripts now use the local SOAPpy source instead of the
  136. globally installed version.
  137. Release 0.10.0 of SOAPpy
  138. ------------------------
  139. Enhancements:
  140. 1) The new name handling mechanism has been enabled by default.
  141. The primary purpose of this release is to allow users to test this
  142. to see if it causes problems. Please take the time to do so. If
  143. there are no problems reported by April 15, 2003, 0.9.9 will be
  144. released with this feature enabled by default.
  145. Note that running a client under an old release of SOAPpy and a
  146. server under this release will be likely to generate errors due to
  147. the different name handling mechanisms.
  148. 2) MS-Windows systems should now be fully supported.
  149. This required implementing a new module, ieee754, which provides
  150. functions for detecting and generating IEEE 754 special floating
  151. point values (+Inf, -Inf, NaN) which are not properly handled by
  152. the Windows implementation of the float() function.
  153. 3) Code reorganization: The huge file SOAPpy/SOAP.py (4,122 lines,
  154. 131K) has been split into 10 separate files. In addition code
  155. shared with ZSI has been moved into a separate subdirectory and a
  156. separate CVS module.
  157. 4) Fixed bug 678239 which caused loss of namespace information in the
  158. client.
  159. 5) Mark Bucciarelli's <mark@hubcapconsulting.com> has ported client
  160. support for WSDL from ZSI, as well as providing a mechanism for
  161. SOAPpy servers to provide WSDL on properly structured .GET
  162. requests.
  163. 6) Added ThreadingSOAPServer which inherits from ThreadingTCPServer
  164. server so that multiple clients will be automatically multiplexed.
  165. VERSION 0.10.4
  166. --------------
  167. - Integrated a simple patch submitted by Erik Westra that dramatically
  168. improves parser performance.
  169. - WSDL tools now uses m2crypto for SSL if it's installed.
  170. - Various other WSDL changes.
  171. VERSION 0.10.3
  172. --------------
  173. - Removed import of obsoleted ieee753.py. Now use the fpconst module
  174. proposed by PEP 754, available from
  175. <http://research.warnes.net/Zope/projects/fpconst/>
  176. - SOAPpy should no longer depend on pyXML.
  177. VERSION 0.10.2
  178. --------------
  179. - Fixed client support for basic authentication
  180. - Fixed import error in Client.py
  181. - Improved Client parsing of namespaces to support stateful SOAP servers.
  182. VERSION 0.10.1
  183. --------------
  184. - Modified setup.py, Server.py, and Client.py to obtain SOAPpy version
  185. number from a new file, version.py.
  186. - SOAP server/user-agent is now to 'SOAPpy' instead of 'SOAP.py'.
  187. - Added ident string containing CVS version to all files that were
  188. lacking this.
  189. VERSION 0.10.0
  190. --------------
  191. CHANGES SINCE VERSION 0.9.9-pre5
  192. - Major Change: The huge file SOAPpy/SOAP.py (4,122 lines, 131K) has
  193. been split into 10 separate files:
  194. Client.py NS.py SOAPBuilder.py Utilities.py
  195. Config.py Parser.py Server.py
  196. Errors.py SOAP.py Types.py
  197. This should ease navigation and maintenance.
  198. - A new CVS module 'wstools' was created to hold code which is used by
  199. both ZSI and SOAPpy. While this module is stored separately in CVS,
  200. it will be distributed as an integral part of both ZSI and SOAPpy,
  201. and will be included as an 'internal' module by both. In the SOAPpy
  202. source, it lives in the directory SOAPpy/wstools.
  203. - The files XMLname.py, ieee754.py, have been moved into SOAPpy/wstools.
  204. - Added TODO file
  205. - Fix bug in getNS that caused loss of namespace by using better
  206. pattern matching to find the namespace in the SOAP message. Fixes bug
  207. 678239
  208. - Added Mark Bucciarelli's <mark@hubcapconsulting.com> patch to
  209. provide wsdl code on properly structured .GET requests to the server.
  210. - Added client support for WSDL, ported from ZSI by Mark Bucciarelli
  211. <mark@hubcapconsulting.com>
  212. - Added ThreadingSOAPServer which inherits from ThreadingTCPServer
  213. server so that muliple clients will be automatically multiplexed.
  214. - Removed some files from /test for services that no longer exist.
  215. CHANGES SINCE VERSION 0.9.9-pre4
  216. --------------------------------
  217. - Added client support for WSDL, ported from ZSI by Mark Bucciarelli
  218. <mark@hubcapconsulting.com>.
  219. CHANGES SINCE VERSION 0.9.9-pre3
  220. --------------------------------
  221. - Code shared between SOAPpy and ZSI now lives in
  222. SOAPpy/SOAPpy/wstools and is stored in a separate CVS package. This
  223. will allow ZSI and SOAPpy to keep these files synchronized.
  224. CHANGES SINCE VERSION 0.9.9-pre2
  225. --------------------------------
  226. - Fixed trivial compilation bug on Win32: Only define
  227. SOAPUnixSocketServer if the Unix domain sockets are supported
  228. CHANGES SINCE VERSION 0.9.9-pre1
  229. --------------------------------
  230. - Added request for nested scopes, should now work properly in python
  231. 2.1 with named argument calls.
  232. - Fixed bug caused by omission of the ieee754 module from __init__.py.
  233. - SOAPpy now provides a SOAPUnixSocketServer class, which uses a unix
  234. domain socket instead of a network TCP/IP socket for communication. A
  235. corresponding client will be provided in the future. [This class
  236. has not yet been tested.]
  237. CHANGES SINCE VERSION 0.9.8
  238. ---------------------------
  239. - IEEE 754 floating point specials (Inf, -Inf, NaN) should now be
  240. properly and consistently handled on all platforms.
  241. Added code to explicitly check for and handle IEEE 754 floating
  242. point specials (Inf, -Inf, NaN). This replaces an ugly hack for
  243. systems whose python float() doesn't understand the strings "Inf",
  244. "NaN", etc. Floating point specials should now be properly handled
  245. on all operating systems.
  246. ***SOAPpy should now work properly on all versions of Microsoft Windows.***
  247. A new module, ieee754 contains the functions required to detect and
  248. create NaN, Inf, and -Inf values. This module should be usable in
  249. other contexts.
  250. - *** The new argument handling method (via SOAPpy.SOAP.Config.specialArgs=1)
  251. is now enabled by default.***
  252. - Changed all references to actzero.com in SOAP.py to pywebscvs.sf.net.
  253. - Fixed a bug where lists included as parameters to SOAP method calls
  254. were being incorrectly named 'Results' even when another name was
  255. given.
  256. CHANGES SINCE VERSION 0.9.7
  257. ---------------------------
  258. - Modified structure to allow installation using Python distutils
  259. (i.e. setup.py). Access to the SOAPpy library now requires:
  260. from SOAPpy import SOAP
  261. - I (Gregory R. Warnes) have implemented an experimental and
  262. non-standard method of handling named and unnamed arguments. This
  263. mechanism is enabled in SOAPpy by setting
  264. SOAPpy.SOAP.Config.specialArgs=1.
  265. When enabled, parameters with names of the form _#### (i.e.,
  266. matching the regexp "^_[0-9]+") are assumed to be unnamed parameters
  267. and are passed to the method in numeric order. All other parameters
  268. are assumed to be named and are passed using the xml tag id as the
  269. parameter name. Outgoing SOAP method calls now always generate
  270. names in this way--whether or not specialArgs is enabled--instead of
  271. using the pattern v#####.
  272. See the file README.MethodParameterNaming for more details.
  273. - Added noroot parameter to the SOAPBuilder and SOAPProxy objects
  274. in order to provide compatibility with an older version of
  275. EasySOAP (v0.2) that balked if the SOAP-ENC:root parameter was
  276. included.(Brad Knotwell)
  277. - Added support for namespace-rewriting (used by Apache v2.x SOAP server for
  278. error conditions as well as stateful communication) (Christopher Blunck)
  279. - Added string <-> str conversion for array types (Python 2.2+)
  280. (Christopher Blunck)
  281. - Added convenience method (invoke) to SOAPProxy that calls __call (not sure
  282. if it is necessary - feel free to remove if you want) (Christopher Blunck)
  283. - Python 'float' are equivalent to SOAP 'double'. Modified dump_float
  284. and dump_list to use SOAP type string 'double'
  285. appropriately. (Gregory R. Warnes)
  286. - Add basic authentication (Brad Knotwell)
  287. - Fixes to enable proper handling of SOAP faults by the client:
  288. - Fixed test of whether message content is text/xml when recieving a fault.
  289. - Added __call__ method to exception classes to match the current API.
  290. - The faultType.__repr__() method now print details if present
  291. (Gregory R. Warnes)
  292. - Added XMLnam.py which provides toXMLname() and fromXMLname() for
  293. properly encoding xml tag names per the SOAP 2.1 (draft)
  294. specification. (Gregory R. Warnes)
  295. - Added calls to toXMLname() and fromXMLname() so that tags names are
  296. properly encoded. This resolves bug [ 548785 ] 'Error passing dict
  297. keys containing space.' (Gregory R. Warnes)
  298. - Added code to cgi encode contents of tags when they are not a
  299. recognized type. Fixes bug [ 549551 ] 'Error when passing
  300. non-standard types'. (Gregory R. Warnes)
  301. - Added __init__.py, so that SOAPpy can be used like a standard python
  302. module. (Gregory R. Warnes)
  303. VERSION 0.9.7 (6/27/01)
  304. -----------------------
  305. - Fixed the unamed ordered parameters bug
  306. - Added the ability to specify a http_proxy
  307. - Added a patch provided by Tim MiddelKoop to allow printing of proxy objects
  308. - Added the contrib directory and included a medusa implementation of a
  309. SOAP.py server by Ng Pheng Siong
  310. VERSION 0.9.6 (6/08/01)
  311. -----------------------
  312. - The date and time types now check their initial values when the type
  313. is created, not when the data is marshalled.
  314. - The date and time types are now parsed and returned as tuples (for
  315. multi-element types) or scalars (for single element types) in UTC and thus
  316. can represent the entire range of SOAP dates.
  317. - If an element doesn't have a type but has a name with a namespace, the
  318. name is tried as the type.
  319. - Untyped compound types with more than one element and all the elements
  320. the same name are turned into an array when parsing.
  321. - When parsing a structType, elements with the same name are placed in a
  322. list instead of saving just the last one. _getItemsAsList can be used to
  323. get an element of a structure as a list, whether there was one or many
  324. occurances of the item.
  325. - Added schemaNamespace, schemaNamespaceURI, and namespaceStyle
  326. configuration options. namespaceStyle takes one of 1999, 2000, or 2001,
  327. and sets typesNamespace, typesNamespaceURI, schemaNamespace, and
  328. schemaNamespaceURI.
  329. - Normalized the type class names, replacing Compound with compoundType,
  330. Struct with structType, Header with headerType, Body with bodyType, Array
  331. with arrayType, TypedArray with typedArrayType, Fault with faultType, and
  332. urType with anyType.
  333. - Attributes now appear on an element itself instead of the element's
  334. parent. For elements parsed to builtin python types, the attributes are
  335. stored in a dictionary keyed by the element's python id. The dictionary
  336. is in the Context object, can be returned from parseSOAP*, and can be
  337. returned from method calls if the returnAllAttrs configuration option
  338. is set.
  339. - isinstance is used to check for a class, so classes can be subtyped.
  340. - An encoding of None can be specified to not include encoding information.
  341. - Problems with the SOAPProxy URL are now reported when the SOAPProxy
  342. instance is created instead of when the first method call is made.
  343. - The Binary, Boolean and DateTime types have been removed in favor of
  344. binaryType, booleanType, and dateTimeType.
  345. VERSION 0.9.5 (5/16/01)
  346. -----------------------
  347. - Should parse and build all 1999, 2000, 2001, and SOAP-ENC datatypes.
  348. - Initial handling of multi-dimensional, partial, and sparse arrays.
  349. - Supports SSL clients (if Python built with OpenSSL).
  350. - Supports SSL servers (if M2Crypto installed).
  351. - Applies defaults to SOAPproxy URLs (nice for command-line tools).
  352. - Added the _SOAPContext object, gives registered server functions more info
  353. about the current call.
  354. - Now assumes that any type that isn't in a schema could be a struct.
  355. - Added the Config object, now config options can be set globally or on an
  356. individual call level.
  357. - Deprecated the DateTime, Binary and Boolean types, should now
  358. use dateTimeType, binaryType and booleanType.
  359. - Includes N+I interop suite.
  360. - Various bug fixes and improvements.
  361. VERSION 0.9 (5/01/01)
  362. -----------------------
  363. - The Envelope now just contains definitions for namespaces actually used
  364. (Builder)
  365. - Namespace definitions are inherited by children but not siblings (Builder)
  366. - Further improved multi-reference parsing -- it handles circular references
  367. (Parser)
  368. - Added support for building recursive and circular types using references
  369. (Builder)
  370. - More types
  371. - Proper handling of overflow and underflow integral and floating point
  372. types (Parser)
  373. - More interop
  374. - Various bug fixes and improvements
  375. VERSION 0.8.5 (4/25/01)
  376. -----------------------
  377. - buildSOAP, SOAPProxy, SOAPServer now taking encoding argument
  378. - Much improved multi-referencing (Parser)
  379. - Added base64 and dateTime to interop suite
  380. - Various bug fixes
  381. VERSION 0.8 (4/23/01)
  382. -----------------------
  383. - Added more types
  384. - Early multi-referencing support (Parser)
  385. - Reorganized the parser, much cleaner now
  386. - Preserve whitepsace in strings (per the standard)
  387. - Full XML attribute support (Parser/Builder)
  388. - Object (de)serialization now maintains element order
  389. - Fixed the zero-length array problem
  390. - Made indentation uniform (spaces not tabs)
  391. - Made Header and Body work more like real structs
  392. - Changed the parseSOAP api, now returns the body structure,
  393. instead of a list of body elements
  394. - Changed the soapaction and namespaces for the interop server
  395. - New silabclient options
  396. - Initial encoding support
  397. VERSION 0.7 (4/19/01)
  398. -----------------------
  399. - Fixed a bug that caused nothing to work with Python 2.1
  400. - Float work arounds for WIN32 (others?)
  401. - DateTime parsing for WIN32
  402. - Beginnings of XML attribute support
  403. - Better interop
  404. VERSION 0.6 (4/18/01)
  405. -----------------------
  406. - Fixed numerous bugs (dateTime, float precision, Response Element, null
  407. strings)
  408. - Added more types
  409. - Homogeneous typed arrays
  410. - Added support for more schemas
  411. - Early Header support and mustUnderstand and actor
  412. - Added interop suite
  413. - Passes validator
  414. - Interop greatly improved, passes all client tests for Frontier,
  415. SOAP::LITE.
  416. VERSION 0.5 (4/17/01)
  417. -----------------------
  418. - Initial public release