|
|
|
[
Permlink
| « Hide
]
__________ - [03/22/08 03:21 PM ]
I'd love to help debug this issue, but I am unable to add breakpoints to the Flex framework sources. If you can find a solution to FB-12293 (Flex Framework: source not found), I have no doubt I'd be a lot more helpful.
Instead of the result being an XML object as I expected, it actually ends up being Object. This Object then contains an ArrayCollection (projectNames). Now, I'm wondering if it should be an XML object. I can see the reason to decode it into an ArrayCollection, but isn't this also valid XML? When the Object is converted to an XML object, shouldn't it still work as an array of complex types does?
When accessing data from a web service, you have the option to choose resultFormat="object" or resultFormat="e4x" (there's also "xml", which is there for backwards compatibility with Flex 1.x)
"object" is the default resultFormat, which means that your result will be an AS Object (typically an Object, ObjectProxy, Array or ArrayCollection). You can access it through ResultEvent.result or WebService.lastResult. If you set resultFormat to "e4x", the result will be an XML object (XML or XMLList). It is not clear from your description which resultFormat you are using. Do you prefer to work with XML objects or AS objects? In which case are you seeing incorrect behavior? It would also help if you could please provide the wsdl of this webservice. Thanks Svetlin,
I'm using e4x. Unfortunately, the wsdl is not accessible externally at this time (project is not in production). Seems like this situation is a result of optimizations designed to make life easier, but I also feel that access via XML should work. Note that it works for complex types, which do not undergo to optimization into an ArrayCollection. Since I now know that the XML is optimized into an ArrayCollection, this issue is not a blocker for me.
Please save and attach the WSDL, the capture from the SOAP Response, and an MXML test case. Thank you.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||