//array declaration
var ds:Array = new Array();

//push data to array
ds.push({TranNum: "value1", TranNum2: "another value});
ds.push({TranNum: "value2", TranNum2: "yet another value});

//send array to .net web service
var Post_ws:mx.services.WebService;
var PostWsCall:mx.services.PendingCall;
Post_ws=new mx.services.WebService("https://somedotcomaddress 
/Portal.asmx?wsdl");

PostWsCall=Post_ws.PostIt(ds);

In the .net web service, the length of the array can properly be seen to be 
2(in this case since two push commands were issued).  However, there is no way 
to get the name/value pairs(the data in the array).

Why - that's the $1,000,000.00 question.





-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zoltan Csibi
Sent: Friday, August 25, 2006 1:41 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Webservices and .NET array serialization



var ar:Array = new Array();
trace(typeof(ar));   
trace(ar instanceof Array);


Mit freundlichem Gruß,
Zoli


-----Original Message-----
From: Brake, Stephen [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 3:47 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Webservices and .NET array serialization

Me too.  I have searched the internet and have found no other people (or
examples) of this being done or being a problem.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, August 25, 2006 8:45 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Webservices and .NET array serialization

I'm surprised nobody has dealt with this before?  Array serialization from a
.NET Webservice?



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
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>_______________________________________________
>>>>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
_______________________________________________
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
_______________________________________________
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