Title: Re: [flexcoders] Re: Web services: Question about array serialization
You could however send XML and use .NET to easily populate a DataSet...
-Original Message-
From: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Sent: Wed Dec 14 15:49:25 2005
Subject: RE
Subject: RE: [flexcoders] Re: Web
services: Question about array serialization
Flex won’t really allow you to send
anything that .NET will accept as a dataset. Information can be sent from .NET
TO flex as a dataset, and flex get the info out, but not the other way around
I’m afraid
I should be looking at Flex 2 migration issues (but i'll take a
break).
You can have a flex datagrid be populated by a .net dataset
my .net webservice looks like this
[Webmethod]
public DataSet GetDataSet()
{
//code here
}
flex 1.5
in as code
function getdataset(){
var call = service1.GetData
PROTECTED] On Behalf
Of fc989898
Sent: 14 December 2005 14:16
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Web
services: Question about array serialization
Some more details: it's a
.NET web service which expects a DataSet as
input parameter.
Since the array of MyClass objec
DataSets won't work... even "typed" ones. Actionscript won't know
how to translate your DataSet into an actionscript object.
I recommend creating a class based object model on the .net side.
That will serialize back and forth properly between .net and flex.
I do remember reading about a produ
Some more details: it's a .NET web service which expects a DataSet as
input parameter.
Since the array of MyClass objects is serialized by Flex as
elements, the resulting DataSet contains a DataTable named "item",
whereas it should be named "MyClass".
Any help is much appreciated
--
Matt, thanks for pointing me in the right direction. Anyway, I tried
everything but couldn't make the array serialize as , it
always serializes as elements.
Can you please provide an example on how to make an array be
serialized using a custom name?
Also, I couldn't find docs or samples regar
7 matches
Mail list logo