Really need some help on this quick if anyone knows the answer... Also,
I noticed in the Webservice the .NET developer made for me, the Array
has nodes in the SOAP message that look like this:
<Topic xsi:nil="true" />
Is that where the incompatibility in Flash comes in? Flash doesn't like
XML namespaces right? so I assume maybe the Webservice component
wouldn't either? Is this maybe why the Array is showing as a weird type
of object? If I do a for(i in theArrayObject){trace(i)} I get:
arrayType
sCall
xmlNodes
??
Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions
>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>Sent: Thursday, August 24, 2006 3:35 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] Webservices and .NET array serialization
>>
>>Here I was helping someone today with complex objects in .NET
>>webservices and didn't notice a big problem on my end.
>>
>>I thought I had this figured out, but Arrays are coming across weird
in
>>a .NET webservice as generic objects not arrays that Flash can
>>understand. I never noticed it before because I can still reference
the
>>properties in objects in the array OK, just not the array itself. For
>>example (projObj is the object of arrays and objects resulting from my
>>webservice method call):
>>
>>trace(projObj.Content.Topics) //traces as undefined. Expected an
array
>>trace(typeof(projObj.Content.Topics)); //traces as object !?!
>>
>>and
>>
>>trace(projObj.Content.Topics[0]) //traces [object Object],undefined
>>//but I expected [object Object], [object Object], [object Object]
>>
>>Finally:
>>
>>projObj.Content.Topics[0].TextAreas[0].HtmlText //traces the value I
am
>>expecting!!! ???
>>
>>What's up? I can get the property values OK, but I cannot treat the
>>array as an array as you would in Flash?
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>_______________________________________________
>>[email protected]
>>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
_______________________________________________
[email protected]
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