[Soap-Python] soaplib Array(String)

Remi Jolin rj-soaplib at sysgroup.fr
Fri Jun 24 21:59:17 CEST 2011


Hello Burak,
Le 23/06/2011 01:20, Burak Arslan a écrit :
>
> > 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.
>
Thanks a lot.

I'm completely new to SOAP and I try to find my way by reading soaplib 
sources and the few examples I can find.


>
> hth
> burak
>


More information about the Soap mailing list