Hi,
I have a Flex 4.6 project communicating with .NET 4.5 through WCF
WebServices. I've been struggling with passing complex types from .NET to
Flex - they were always returning as ObjectProxy until I found this tip[1]
about using the SchemaTypeRegistry to map classes.
Now I have the root types returning correctly, but if the type contains a
List<T>, the first element is another ArrayCollection (or Array if I have *
makeObjectsBindable=false*). So I end up with:
result ->
MyType
listOfItems : ArrayCollection (correct)
[0] ArrayCollection (extra - wrong)
ItemA
ItemB
...
This is what I am expecting:
result ->
MyType
listOfItems : ArrayCollection
ItemA
ItemB
...
The SOAP response is correct and doesn't contain the nested collection, so
I think it is something in the decoder. Is there a property or
configuration I can try to fix this?
[1]
http://www.patrick-heinzelmann.de/blog/2010/08/12/tips-and-tricks-to-use-soap-webservice-with-flex/