>>However, there is no way to >>get the name/value pairs(the data in the array).
Actually Stephen, I think what you're asking about is different than what I'm asking about. I can access the data in the .NET object array just fine, it's just that referencing the array object directly returns undefined, which is quite odd. This is my issue: trace(myNETWebserviceObject.mySubObject.MyArray[0]) //traces "hello world" trace(myNETWebserviceObject.mySubObject.MyArray) //traces undefined !? this is after I verified I have loaded the webservice and the method result returns the object. On your end, I think it's the way the Object is being created in C#. Are you sure the C# object is a public variable? Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions >>-----Original Message----- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Brake, Stephen >>Sent: Friday, August 25, 2006 1:55 PM >>To: Flashcoders mailing list >>Subject: RE: [Flashcoders] Webservices and .NET array serialization >> >>//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:flashcoders- >>[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 _______________________________________________ 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