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.
 
 
 
 

20 lines
643 B

  1. COMPLEX TYPES HOWTO
  2. ===================
  3. The easiest way (at the moment) to create complex SOAP typs is to
  4. use the SOAPpy.structType class, which allows you to create an
  5. object with named arguments of arbitraty types. For example:
  6. >>> in0 = SOAPpy.structType()
  7. >>> in0._addItem('outwardDate', dep)
  8. >>> in0._addItem('returnDate', ret)
  9. >>> in0._addItem('originAirport', 'den')
  10. >>> in0._addItem('destinationAirport', 'iad')
  11. SOAPpy has code for declaring structured object templates including
  12. the type for each component, but this broke sometime in the past and
  13. has not yet been corrected. (See tests/TCtypes.py to see how it
  14. should work.)