[Soap-Python] Help for complex type definition

Liu Ming mliu at biigroup.com
Thu Feb 24 11:24:46 CET 2011

Hello everyone,

I try to define a type according to the wsdl following:

<s:complexType name="pointSet">
<s:element maxOccurs="unbounded" minOccurs="0" name="pointSet"
<s:element maxOccurs="unbounded" minOccurs="0" name="point"
<s:attribute name="id" type="s:anyURI" use="required"/>

I write:

class PointSet(ClassModel):
pointSet = Array(PointSet)
point = Array(Point)

But error occurs:

NameError: name 'PointSet' is not defined

I think it is because PointSet has not finished DEFINITION, so you can't use
it. Is it right? How can I fix it?

Thank you very much

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/soap/attachments/20110224/eca4d9ee/attachment.html>

More information about the Soap mailing list