View Full Version : Flash Remoting + .NET DataSet returned
wilsoneto
07-13-2007, 01:51 PM
Hello, I have been trying to use Flash along with a .NET WebService which returns a DataSet. As far as my research went on, I should assign the result to a array (Conversion expected is: .NET_DataSet = AS_Array of RecordSet).
Is it the right way to do it?
function method_Result(_resulEvent:mx.rpc.ResultEvent):Void
{
var myArray:Array = _resulEvent.content;
}
Tks
J_Miller
07-30-2007, 04:08 AM
Are you using Flash remoting to call the webservice, or are you calling the web service directly? Also, I think that even if it's a DataSet that the webservice is returning, when it gets to Flash its basically XML (SOAP). I could be wrong as I dont know the details of your webservice, nore do i use them often....but I do think that is the standard format. So in that case the DataSet would all be there, you would just need to loop through and extract all the values out. If you are using Flash Remoting directly (without a webservice), then it will preserve the data type and will ultimitly be a recordset in your result.
Hope any of that made sense
-Jason
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.