<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Getting at your SQL Database using Flex and .NET Web Services</title>
	<atom:link href="http://www.fitchett.me/index.php/development/flex-development/getting-at-your-sql-database-using-flex-and-net-web-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fitchett.me/index.php/development/flex-development/getting-at-your-sql-database-using-flex-and-net-web-services/</link>
	<description>Giving back to the community!</description>
	<lastBuildDate>Thu, 15 Jul 2010 14:20:02 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: bhavika</title>
		<link>http://www.fitchett.me/index.php/development/flex-development/getting-at-your-sql-database-using-flex-and-net-web-services/comment-page-1/#comment-97</link>
		<dc:creator>bhavika</dc:creator>
		<pubDate>Thu, 01 Jul 2010 06:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-97</guid>
		<description>I got the solution of above problem also. thanks to ur post. it was really helpful.</description>
		<content:encoded><![CDATA[<p>I got the solution of above problem also. thanks to ur post. it was really helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bhavika</title>
		<link>http://www.fitchett.me/index.php/development/flex-development/getting-at-your-sql-database-using-flex-and-net-web-services/comment-page-1/#comment-96</link>
		<dc:creator>bhavika</dc:creator>
		<pubDate>Wed, 30 Jun 2010 10:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-96</guid>
		<description>I have already solved above problem. Now I am able to get xml data. But while using flex, I am noe getting anything. just an error that wsdl uri is not proper.

plz reply as soon as you see this post. its urgent.</description>
		<content:encoded><![CDATA[<p>I have already solved above problem. Now I am able to get xml data. But while using flex, I am noe getting anything. just an error that wsdl uri is not proper.</p>
<p>plz reply as soon as you see this post. its urgent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bhavika</title>
		<link>http://www.fitchett.me/index.php/development/flex-development/getting-at-your-sql-database-using-flex-and-net-web-services/comment-page-1/#comment-95</link>
		<dc:creator>bhavika</dc:creator>
		<pubDate>Wed, 30 Jun 2010 06:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-95</guid>
		<description>where shall I use this method? Shall I create a new web form or do it in service.asmx.cs file which is being created by default.

[WebMethod]
02	public XmlDocument getDataXML(string strQuery, string strRootNode, string strItemNode)
03	{
04	// Create vars out of connection string and query string
05	string dbConn = dbConnString;
06	string dbQuery = strQuery;
07	 
08	// Connect to the database and run the query
09	SqlConnection conn = new SqlConnection(dbConn);
10	SqlCommand cmd = new SqlCommand(dbQuery, conn);
11	SqlDataAdapter da = new SqlDataAdapter();
12	DataSet ds = new DataSet();
13	ds.DataSetName = strRootNode;
14	da.SelectCommand = cmd;
15	da.Fill(ds, strItemNode);
16	 
17	// Return the data as XML
18	XmlDocument xmlDoc = new XmlDocument();
19	xmlDoc.LoadXml(ds.GetXml());
20	return xmlDoc;
21	}</description>
		<content:encoded><![CDATA[<p>where shall I use this method? Shall I create a new web form or do it in service.asmx.cs file which is being created by default.</p>
<p>[WebMethod]<br />
02	public XmlDocument getDataXML(string strQuery, string strRootNode, string strItemNode)<br />
03	{<br />
04	// Create vars out of connection string and query string<br />
05	string dbConn = dbConnString;<br />
06	string dbQuery = strQuery;<br />
07<br />
08	// Connect to the database and run the query<br />
09	SqlConnection conn = new SqlConnection(dbConn);<br />
10	SqlCommand cmd = new SqlCommand(dbQuery, conn);<br />
11	SqlDataAdapter da = new SqlDataAdapter();<br />
12	DataSet ds = new DataSet();<br />
13	ds.DataSetName = strRootNode;<br />
14	da.SelectCommand = cmd;<br />
15	da.Fill(ds, strItemNode);<br />
16<br />
17	// Return the data as XML<br />
18	XmlDocument xmlDoc = new XmlDocument();<br />
19	xmlDoc.LoadXml(ds.GetXml());<br />
20	return xmlDoc;<br />
21	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bhavika</title>
		<link>http://www.fitchett.me/index.php/development/flex-development/getting-at-your-sql-database-using-flex-and-net-web-services/comment-page-1/#comment-94</link>
		<dc:creator>bhavika</dc:creator>
		<pubDate>Tue, 29 Jun 2010 08:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-94</guid>
		<description>hiii,
I have already developed flex application. till now i dint need any database connectivity. but now i need it. For connection in Flex,while starting to make the project you need to specify what technology will u use for database connectivity. But i dint specify anything at that time. So how can i do it now?
How can i specify now that my project will use .net for connectivity.

thanx.</description>
		<content:encoded><![CDATA[<p>hiii,<br />
I have already developed flex application. till now i dint need any database connectivity. but now i need it. For connection in Flex,while starting to make the project you need to specify what technology will u use for database connectivity. But i dint specify anything at that time. So how can i do it now?<br />
How can i specify now that my project will use .net for connectivity.</p>
<p>thanx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.fitchett.me/index.php/development/flex-development/getting-at-your-sql-database-using-flex-and-net-web-services/comment-page-1/#comment-49</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Wed, 03 Feb 2010 23:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-49</guid>
		<description>Hi Michael

Just trying to work through your example - using Visual Studio 2008

I am getting the following error:
Error	1	The type or namespace name &#039;XmlDocument&#039; could not be found (are you missing a using directive or an assembly reference?)</description>
		<content:encoded><![CDATA[<p>Hi Michael</p>
<p>Just trying to work through your example &#8211; using Visual Studio 2008</p>
<p>I am getting the following error:<br />
Error	1	The type or namespace name &#8216;XmlDocument&#8217; could not be found (are you missing a using directive or an assembly reference?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Fitchett</title>
		<link>http://www.fitchett.me/index.php/development/flex-development/getting-at-your-sql-database-using-flex-and-net-web-services/comment-page-1/#comment-48</link>
		<dc:creator>Michael Fitchett</dc:creator>
		<pubDate>Mon, 25 Jan 2010 20:50:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-48</guid>
		<description>Yea I was able to get it working, but I wrote it =).

So testing the WSDL returns data?

What&#039;s the problem you are having in Flex does it return an error or just no data?</description>
		<content:encoded><![CDATA[<p>Yea I was able to get it working, but I wrote it =).</p>
<p>So testing the WSDL returns data?</p>
<p>What&#8217;s the problem you are having in Flex does it return an error or just no data?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sai</title>
		<link>http://www.fitchett.me/index.php/development/flex-development/getting-at-your-sql-database-using-flex-and-net-web-services/comment-page-1/#comment-46</link>
		<dc:creator>Sai</dc:creator>
		<pubDate>Mon, 25 Jan 2010 18:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-46</guid>
		<description>same problem as Carl. wsdl seems to be working fine, but flex does not return any result after making a web service call. Could anyone get this working ?</description>
		<content:encoded><![CDATA[<p>same problem as Carl. wsdl seems to be working fine, but flex does not return any result after making a web service call. Could anyone get this working ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Fitchett</title>
		<link>http://www.fitchett.me/index.php/development/flex-development/getting-at-your-sql-database-using-flex-and-net-web-services/comment-page-1/#comment-44</link>
		<dc:creator>Michael Fitchett</dc:creator>
		<pubDate>Thu, 07 Jan 2010 23:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-44</guid>
		<description>I&#039;m sure you have already figured this out by now but if not all you need to do is resend the request to the web service like so:

&lt;code&gt;myData.getDataXML.send();&lt;/code&gt;

You don&#039;t need to refresh the datagrid this is automatically done.

Think of Flex as a constantly refreshing application, in other words you don&#039;t need to write a function for each change that is made. If that makes any sense.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sure you have already figured this out by now but if not all you need to do is resend the request to the web service like so:</p>
<p><code>myData.getDataXML.send();</code></p>
<p>You don&#8217;t need to refresh the datagrid this is automatically done.</p>
<p>Think of Flex as a constantly refreshing application, in other words you don&#8217;t need to write a function for each change that is made. If that makes any sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: April</title>
		<link>http://www.fitchett.me/index.php/development/flex-development/getting-at-your-sql-database-using-flex-and-net-web-services/comment-page-1/#comment-42</link>
		<dc:creator>April</dc:creator>
		<pubDate>Fri, 18 Dec 2009 14:42:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-42</guid>
		<description>How do I get the datagrid to refresh/reload the xml on itemClick? 

Thanks!</description>
		<content:encoded><![CDATA[<p>How do I get the datagrid to refresh/reload the xml on itemClick? </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venkatdesan.E</title>
		<link>http://www.fitchett.me/index.php/development/flex-development/getting-at-your-sql-database-using-flex-and-net-web-services/comment-page-1/#comment-40</link>
		<dc:creator>venkatdesan.E</dc:creator>
		<pubDate>Tue, 15 Dec 2009 06:01:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-40</guid>
		<description>It is very useful

Thank You</description>
		<content:encoded><![CDATA[<p>It is very useful</p>
<p>Thank You</p>
]]></content:encoded>
	</item>
</channel>
</rss>
