<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Flash, Web Services, and .NET DataSets</title>
	<atom:link href="http://madowney.com/blog/2004/02/20/flash-web-services-and-net-datasets/feed/" rel="self" type="application/rss+xml" />
	<link>http://madowney.com/blog/2004/02/20/flash-web-services-and-net-datasets/</link>
	<description>Mike Downey is the Principal Evangelist for Platform Business Development at Adobe Systems and focuses on Adobe's platform technologies including AIR, Flash, and Flex. This is his personal blog. The views expressed on this site are his and his alone and do not necessarily reflect the views of Adobe Systems, it's employees or partners in any way.</description>
	<pubDate>Fri, 21 Nov 2008 23:38:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: chirag Rajput</title>
		<link>http://madowney.com/blog/2004/02/20/flash-web-services-and-net-datasets/#comment-3608</link>
		<dc:creator>chirag Rajput</dc:creator>
		<pubDate>Tue, 18 Sep 2007 09:59:34 +0000</pubDate>
		<guid isPermaLink="false">http://madowney.com/blog/?p=16#comment-3608</guid>
		<description>hey, can anyone tell me the step , how i can bind this arry object with the flash componet or dataset.
i try it ,but it give me error dataset is empty.

please,do some needfull.
because,it's urgent for me.
thanks in advance!</description>
		<content:encoded><![CDATA[<p>hey, can anyone tell me the step , how i can bind this arry object with the flash componet or dataset.<br />
i try it ,but it give me error dataset is empty.</p>
<p>please,do some needfull.<br />
because,it&#8217;s urgent for me.<br />
thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Merrill</title>
		<link>http://madowney.com/blog/2004/02/20/flash-web-services-and-net-datasets/#comment-86</link>
		<dc:creator>Jason Merrill</dc:creator>
		<pubDate>Thu, 24 Aug 2006 20:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://madowney.com/blog/?p=16#comment-86</guid>
		<description>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?
</description>
		<content:encoded><![CDATA[<p>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):</p>
<p>trace(projObj.Content.Topics) //traces as undefined.  Expected an array trace(typeof(projObj.Content.Topics));  //traces as object  !?! </p>
<p>and</p>
<p>trace(projObj.Content.Topics[0])  //traces [object Object],undefined //but I expected [object Object], [object Object], [object Object]</p>
<p>Finally:</p>
<p>projObj.Content.Topics[0].TextAreas[0].HtmlText  //traces the value I am expecting!!! ???</p>
<p>What&#8217;s up?  I can get the property values OK, but I cannot treat the array as an array as you would in Flash?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Perica</title>
		<link>http://madowney.com/blog/2004/02/20/flash-web-services-and-net-datasets/#comment-85</link>
		<dc:creator>Perica</dc:creator>
		<pubDate>Tue, 04 Jul 2006 22:49:50 +0000</pubDate>
		<guid isPermaLink="false">http://madowney.com/blog/?p=16#comment-85</guid>
		<description></description>
		<content:encoded><![CDATA[<br />
]]></content:encoded>
	</item>
	<item>
		<title>By: Perica</title>
		<link>http://madowney.com/blog/2004/02/20/flash-web-services-and-net-datasets/#comment-84</link>
		<dc:creator>Perica</dc:creator>
		<pubDate>Tue, 04 Jul 2006 22:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://madowney.com/blog/?p=16#comment-84</guid>
		<description>[WebMethod]
    public Northwind.CategoriesDataTable CategoriesDataSet()
    {
        Northwind.CategoriesDataTable tbl = new Northwind.CategoriesDataTable();
        NorthwindTableAdapters.CategoriesTableAdapter ad = new NorthwindTableAdapters.CategoriesTableAdapter();
        ad.Fill(tbl);
        return tbl;
    }

...</description>
		<content:encoded><![CDATA[<p>[WebMethod]<br />
    public Northwind.CategoriesDataTable CategoriesDataSet()<br />
    {<br />
        Northwind.CategoriesDataTable tbl = new Northwind.CategoriesDataTable();<br />
        NorthwindTableAdapters.CategoriesTableAdapter ad = new NorthwindTableAdapters.CategoriesTableAdapter();<br />
        ad.Fill(tbl);<br />
        return tbl;<br />
    }</p>
<p>&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reza</title>
		<link>http://madowney.com/blog/2004/02/20/flash-web-services-and-net-datasets/#comment-83</link>
		<dc:creator>Reza</dc:creator>
		<pubDate>Mon, 19 Jun 2006 19:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://madowney.com/blog/?p=16#comment-83</guid>
		<description>I think that Macromedia and Abode needs to be bought out buy some company who knows how to develop developer tools, they just suck at it.
Or they need to hire some body like Anders Hielsberg. Even the basic stuff such as editor in Flash sucks. I can not believe that there is no company out there who can challange them. Not to mention their debugger, oh my oh my, people should be hanged for writing that thing. They may be need to drop their crappy ide and use eclipse as a platform, here is an idea!</description>
		<content:encoded><![CDATA[<p>I think that Macromedia and Abode needs to be bought out buy some company who knows how to develop developer tools, they just suck at it.<br />
Or they need to hire some body like Anders Hielsberg. Even the basic stuff such as editor in Flash sucks. I can not believe that there is no company out there who can challange them. Not to mention their debugger, oh my oh my, people should be hanged for writing that thing. They may be need to drop their crappy ide and use eclipse as a platform, here is an idea!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Perica</title>
		<link>http://madowney.com/blog/2004/02/20/flash-web-services-and-net-datasets/#comment-82</link>
		<dc:creator>Perica</dc:creator>
		<pubDate>Tue, 03 Jan 2006 21:25:25 +0000</pubDate>
		<guid isPermaLink="false">http://madowney.com/blog/?p=16#comment-82</guid>
		<description>How to return Microsoft Dataset from .NET web service to Flex.
Following discussion on this site I found more works on this link: http://weblogs.asp.net/astopford/articles/106476.aspx
This works but solution is not so elegant. Searching for better solution I found this link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service02112003.asp (pretty elegant).

1. Define a Item type (record)

private class Items
{
    public int ItemNumber;
    public string Description;
    public Decimal Price;
}

2. Crate a web service which return a array of Items

[WebMethod()]
[return: XmlElement(typeof(Items[]))]
public XmlDataDocument GetTypedXmlDataDocument()
{
    sqlDataAdapter1.Fill(typedDataSet1);
    XmlDataDocument dataDoc 
        = new XmlDataDocument(typedDataSet1);
    return dataDoc;
}</description>
		<content:encoded><![CDATA[<p>How to return Microsoft Dataset from .NET web service to Flex.<br />
Following discussion on this site I found more works on this link: <a href="http://weblogs.asp.net/astopford/articles/106476.aspx" rel="nofollow">http://weblogs.asp.net/astopford/articles/106476.aspx</a><br />
This works but solution is not so elegant. Searching for better solution I found this link: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service02112003.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service02112003.asp</a> (pretty elegant).</p>
<p>1. Define a Item type (record)</p>
<p>private class Items<br />
{<br />
    public int ItemNumber;<br />
    public string Description;<br />
    public Decimal Price;<br />
}</p>
<p>2. Crate a web service which return a array of Items</p>
<p>[WebMethod()]<br />
[return: XmlElement(typeof(Items[]))]<br />
public XmlDataDocument GetTypedXmlDataDocument()<br />
{<br />
    sqlDataAdapter1.Fill(typedDataSet1);<br />
    XmlDataDocument dataDoc<br />
        = new XmlDataDocument(typedDataSet1);<br />
    return dataDoc;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://madowney.com/blog/2004/02/20/flash-web-services-and-net-datasets/#comment-81</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 30 Nov 2005 14:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://madowney.com/blog/?p=16#comment-81</guid>
		<description>Sorry - complete newbie. My colleague and I are working on doing this sort of thing right now.

How do I then use the array that is returned from the webservice?

There is quite a bit of data returned that I don't need to display. So how can I sort throug it and select only the data I want to bind to my display components?</description>
		<content:encoded><![CDATA[<p>Sorry - complete newbie. My colleague and I are working on doing this sort of thing right now.</p>
<p>How do I then use the array that is returned from the webservice?</p>
<p>There is quite a bit of data returned that I don&#8217;t need to display. So how can I sort throug it and select only the data I want to bind to my display components?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iliad2b</title>
		<link>http://madowney.com/blog/2004/02/20/flash-web-services-and-net-datasets/#comment-80</link>
		<dc:creator>iliad2b</dc:creator>
		<pubDate>Sun, 16 Oct 2005 00:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://madowney.com/blog/?p=16#comment-80</guid>
		<description>take a look at amfphp in the how2.... it might help</description>
		<content:encoded><![CDATA[<p>take a look at amfphp in the how2&#8230;. it might help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tj</title>
		<link>http://madowney.com/blog/2004/02/20/flash-web-services-and-net-datasets/#comment-79</link>
		<dc:creator>Tj</dc:creator>
		<pubDate>Thu, 01 Sep 2005 01:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://madowney.com/blog/?p=16#comment-79</guid>
		<description>Hi,

I am using the WebServicesConnector in Flash MX 2004 for the first time. I got the tutorial working that requests tips, returned as text.

I am trying to get a datagrid to display and array of data but am having trouble getting it to work. Do you have to do anything more than the steps in the tutorial (for datagrids)? Tj</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am using the WebServicesConnector in Flash MX 2004 for the first time. I got the tutorial working that requests tips, returned as text.</p>
<p>I am trying to get a datagrid to display and array of data but am having trouble getting it to work. Do you have to do anything more than the steps in the tutorial (for datagrids)? Tj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erhazmo</title>
		<link>http://madowney.com/blog/2004/02/20/flash-web-services-and-net-datasets/#comment-78</link>
		<dc:creator>Erhazmo</dc:creator>
		<pubDate>Fri, 05 Aug 2005 01:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://madowney.com/blog/?p=16#comment-78</guid>
		<description>Im trying to write a Flash DataProvider that can receive/send in the Microsoft DiffGram Format for sending/consuming .NET datasets</description>
		<content:encoded><![CDATA[<p>Im trying to write a Flash DataProvider that can receive/send in the Microsoft DiffGram Format for sending/consuming .NET datasets</p>
]]></content:encoded>
	</item>
</channel>
</rss>
