Hi Graham, I did not read your entire post, nor do I
have any knowledge about cairngorm. But I’ll give a try ... Your code: var tObj:TestObj = event.result
as TestObj; will not work. event.result is a dynamic Object and you
cannot cast it to your own custom made ActionScript class TestObj. If you want
to put the webservice result into an ActionScript object, you will have to do
the following:
Yep, it’s tedious and boring, but
that’s exactly the way I’m doing it at the moment ... On the other hand: it’s quite
understandable. How can Flex know that the result coming back from a webservice
is actually some sort of custom type? It would be an extremely interesting
feature of Flex if you could specify that somehow ... Cheers, Franck From: I am just getting up to speed with
the Cairngorm architecture and have been struggling with this problem for a
while. I have got to the point where I am getting a response from my web
service call that has the data in that I expect but I cannot seem to get it to
deserialize into the object that I need. <?xml version="1.0" encoding="utf- -
<soap:Envelope xmlns:soap="http://schemas. -
<GetTesterResponse xmlns=""> -
<GetTesterResult>
<Id>1</Id>
<Name>Graham</Name>
</GetTesterResult>
</GetTesterResponse>
</soap:Body> </soap:Envelope>
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |