[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:sequence>
<s:element maxOccurs="unbounded" minOccurs="0" name="pointSet"
type="s0:pointSet"/>
<s:element maxOccurs="unbounded" minOccurs="0" name="point"
type="s0:point"/>
</s:sequence>
<s:attribute name="id" type="s:anyURI" use="required"/>
</s:complexType>

I write:

class PointSet(ClassModel):
__namespace__="http://gutp.jp/fiap/2009/11/"
__type_name__="pointSet"
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

Luke
-------------- 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