Hi Tracy,
apologies that it took me quite a while to reply and continue this. been
sidetracked on another project.
anyway, when I have passed the xmllistcollection as string to .net, what method
would i use to parse the information in the .net side?
thanks.
regards,
Angelo
Hi Sam Lai,
THanks for the input and my apologies for replying late since I felt the need
to get deeper on the issue I am encountering.
In my web service, the arraycollection is received as an array list and yes, it
is like an array of xml nodes.
In my arraycollection, say I have 5 columns
Hi Tracy,
I would certainly appreciate if you could point me in the right direction on
using XMLListCollection and sending it back to .NET as a string.
Thanks.
Regards,
Angelo
From: Tracy Spratt tr...@nts3rd.com
To: flexcoders@yahoogroups.com
Sent:
var sXML:String = root;
sXML += myXMLListCollection.toXMLSTring();
sXML+= /root;
myWebService.setUserPermits(sXML,sSID);
on the .net side:
WebMethod(Description:=Updates multiple UserPermit records) _
Public Function setUserPermits(ByVal sRowsXml As String, ByVal sSId As
String) As
Why not use XMLListCollection and send the xml to .net as a string? There
is little value in building an ArrayCollection of generic obects. You can
sort/filter an XMLListCollection.
XML is more verbose than some other methods, but if bandwidth is truly an
issue, then you should be looking at
Hi Sam,
Basically this is the process which I am using.
.NET
Retrieve records from Oracle DB and store the same into a dataset. Return the
dataset as XML string via the command DataSet.GetXML.
Flex
In the event handler of my webservice method call, I parse the string into XML,
then
I just wrote up a simple C# web service that accepts an ArrayList:
[WebMethod]
public bool ArrayListTest(System.Collections.ArrayList a)
{ ... }
Then in Flex I wrote this,
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
private function
How is it being parsed in .NET? You can parse it into a hashtable, or
better yet, use a pre-defined object.
Not sure why the order is different, but it is probably fragile to
rely on the order in this case.
2009/7/2 Angelo Anolin angelo_ano...@yahoo.com:
Hi FlexCoders,
I have an array
Hi Sam,
Care to show some examples? I am parsing the arrayCollection into an ArrayList
on .NET. This is particularly not too appealing since I just discovered that
for example, if one of the objects in the arraycollection would have an empty
string value, the number of items inside the array
Instead of using an array list and trying to emulate the type-less
abilities of AS3, I'd try to map the XML to typed objects in .NET. Or
does the XML from your Flex app differ too wildly to do this?
Are you using the XmlSerializer to deserialize this? Or are you using
WCF? Or are you doing it
Hi FlexCoders,
I have an array collection which I am populating as follows:
var oTemp:Object;
var xl:XMLList = _xmlData.children();
var i:int;
for(i = 0; i xl.length(); i++)
{
oTemp = {ID_TAG:xl[i].ID.text(), CAT_TAG:xl[i].CAT.text(),
DET_TAG:xl[i].DET.text(),
11 matches
Mail list logo