[Fedora-suds-list] How to create arrayTypes in suds?

David Bunch david.e.bunch at gmail.com
Fri Mar 13 08:45:48 UTC 2009


Hi I have a question about ArrayTypes.
I have a webservice function that takes an ArrayOfPoints, Which is an
ArrayType that holds Point objects.
Now, I can create the individual Point objects, but how do I create an
ArrayOfPoints and add points to it?  I tried this:

ArrayOfPoints = myClient.factory.create('ArrayOfPoints')

but then, how do I add points to it?  List operations don't seem to work.
And when I do this:

ArrayOfPoints = [Point1, Point2, Point3]
myClient.service.calculateCenter(ArrayOfPoints)

I get a fault error saying that ArrayOfPoints could not be serialized.

Any help/insight on this would be much appreciated.

Sincerely,
-David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-suds-list/attachments/20090313/ac36f1d4/attachment.htm>


More information about the fedora-suds-list mailing list