What are you using on your backend?  .NET?  ColdFusion?  If .NET, yes,
you can easily send objects back and forth. It serializes as SOAP
formatted XML inbetween, but you'll never notice. You can read an object
with arrays, set properties, and send it back.  I can't send you our
SOAP message because it might be considered propriety bank information
(even though it's not really), but there are some tutorials on the web>

http://www.sephiroth.it/tutorials/flashPHP/webServiceConnector/

Here is the WSDL is uses:

http://www.xmethods.net/sd/2001/BabelFishService.wsdl

Here is some code I use to test loading in an object from a wsdl SOAP
object from .NET

import mx.services.*;

function startmyws():Void{
        ws = new WebService("http://blahblahurl/theService.asmx?WSDL";);
        ws.onLoad = trace("The webservice loaded fine.");
        methodResultObj = ws.GetProject(0);
        methodResultObj.onResult = showResult;
        methodResultObj.onFault = function(fault) {
          trace("!! Flash Web Services Component Error.  \n Fault Code:
"+fault.faultcode + ", Fault: " + fault.faultstring);
        }
}

function showResult(projObj:Object){
        //test object value:
        theVar = projObj.Content.Topics[0].TextAreas[0].Content
        trace(theVar)
}

startmyws();

Don't bother with parsing through XML if you are using .NET.  And wash
those socks. :) 

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Tom Shaw
>>Sent: Monday, August 14, 2006 9:29 AM
>>To: flashcoders@chattyfig.figleaf.com
>>Subject: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array of
complex
>>objects
>>
>>Hi all,  This is my first post on the list so Ill say hi now and hope
>>you are all friendly :)
>>
>>Ive been going round for days on this one and have searched high and
>>low for an answer.  I even looked under the bed but all I found was
>>smelly socks, so before I actually go mad could anyone shed some light
>>on this rather annoying problem with Flash 8 Pro.
>>
>>I have a SOAP server set up under mod_perl which delivers an array of
>>objects.
>>
>>To avoid reinventing the wheel I wanted Flash to decode the SOAP
>>response from the server.  the result Im actually getting is an array
>>of XML Objects.
>>
>>I could parse these XML objects but then I might as well and decode
>>the entire response manually anyway.  the overhead for getting flash
>>to decode the object has already been incurred so Id really like to
>>figure this out.
>>
>>Now while this might seem trivial I do want to return some rather more
>>complex objects so this has effetively stopped my development for now.
>>
>>I dont want to go down the path with flash Remoting at the minute but
>>for those who might suggest it I have considered it and may implement
>>it in the future.
>>
>>If anyone is getting Flash to fully decode Arrays of Objects or any
>>other remotely complex data structure could they please post their
>>SOAP response and reply for me to study so I can try and find out what
>>exactly is wrong.
>>
>>I have a few more questions to ask but for clarity Ill leave these for
>>another day.
>>
>>Im not sure if posting my SOAP reply would help at this point...I will
>>create a simple example and post it shortly.
>>
>>Id really appreciate some help here so Ill cross my fingers and hope
>>for the best.
>>
>>Cheers,
>>Tom
>>_______________________________________________
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to