[Soap-Python] soaplib Array(String)
Burak Arslan
burak.arslan at arskom.com.tr
Thu Jun 23 01:20:14 CEST 2011
> By the way, I made some more tests and discovered that I had simplified
> by test too much.
> It should be
> class Code(ClassModel):
> designations = Array(String, max_occurs=10)
> refs = Array(Integer)
>
> When there is no max_occurs paramter, the result is correct.
>
when you give the max_occurs=10 parameter to the array, you get an array that can occur up to ten times, hence an array of arrays, hence the output.
you probably want Array(String(max_occurs=10)) or just String(max_occurs=10) if you don't want your array wrapped.
hth
burak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/soap/attachments/20110623/df5e9226/attachment.html>
More information about the Soap
mailing list