Difficulties with collections of objects being XML serialized, and deserializing XML conveying collection of objects
I'm having a terrible time and it's likely due to my unfamiliarity with the magic of XML serialization/deserialization.
I have a bunch of plain old Smalltalk objects generated from a web service WSDL & XSD.
An object of one class (serialized here as "greetingList") intended to hold onto a collection of instances of a second class, serialized here as "greeting". Made up example. Paraphrasing the excerpt of my generated XML, I am getting:
As opposed to what I was hoping for (which I get in Java by cobbling together plain old Java objects which I generated from WSDL/XSD):
I should mention that the greetingList attribute is an OrderedCollection of the greeting objects. The problem seems to be the OrderedCollection (or Array, doesn't matter) doesn't just quietly serialize the elements.
I am having a similar problem taking nice XML produced in Java that conveys a collection of objects and deserializing it in Smalltalk. I get the expected high level Smalltalk object and some other attributes fine, but the attribute that should be a collection of lower level objects - is instead a SstSoapMappedElement.
I assume I should be able to fix everything with some small piece of cleverness, but am stuck.
So the only problem is in the reverse, with Smalltalk getting back good looking XML, but ending up with a business object with an attribute of a SstSoapMappedElement. Maybe I'll open a support case asking why that would happen.