[Soap-Python] List of objects

Minh Luu minh_luu at toll.com.au
Mon Aug 30 07:32:15 CEST 2010


Hi,

I am new to soaplib. I would like to setup a service that would accept the following XML

<contacts>
  <contact>
    <name>Allan</name>
    <title>MR</title>
  </contact>
  <contact>
    <name>Julie</name>
    <title>MS</title>
  </contact>
</contacts>

I have try this but it didn't work. I get the error of 'NoneType object has no attribute from_xml

class Contact(ClassSerializer):
    class types:
        name = String
        title = String

class Contacts(ClassSerializer):
    class types:
        contact = Array(Contact)


Thanks, 



More information about the Soap mailing list