<?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>Fri, 13 May 2011 10:35:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Bob</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-839</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Wed, 02 Mar 2011 01:02:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-839</guid>
		<description>Michael -

   Very nice straightforward approach to this problem! I have previously created webservices to do this very thing (and Flex 4 has some nice new data connection features which facilitate this) but there&#039;s one issue I can&#039;t seem to get good information on that I was hoping you might be able to help me with.

    Rather than binding the results to a datagrid I want to step through the results for post processing in the webservice result event. I recently uncovered a bit of code that casts the results into XML nodes and parses them that way and I&#039;m intending on trying that out with your code since I think that the XML you&#039;re returning is cleaner than the WSDL XML I have been returning previously, but I&#039;m just curious to see if you didn&#039;t have another approach you would take?

    Any code snippets or links you could point me to would be great appreciated. Thanks again!

- Bob</description>
		<content:encoded><![CDATA[<p>Michael -</p>
<p>   Very nice straightforward approach to this problem! I have previously created webservices to do this very thing (and Flex 4 has some nice new data connection features which facilitate this) but there&#8217;s one issue I can&#8217;t seem to get good information on that I was hoping you might be able to help me with.</p>
<p>    Rather than binding the results to a datagrid I want to step through the results for post processing in the webservice result event. I recently uncovered a bit of code that casts the results into XML nodes and parses them that way and I&#8217;m intending on trying that out with your code since I think that the XML you&#8217;re returning is cleaner than the WSDL XML I have been returning previously, but I&#8217;m just curious to see if you didn&#8217;t have another approach you would take?</p>
<p>    Any code snippets or links you could point me to would be great appreciated. Thanks again!</p>
<p>- Bob</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-265</link>
		<dc:creator>Michael Fitchett</dc:creator>
		<pubDate>Wed, 06 Oct 2010 21:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-265</guid>
		<description>Post a comment with your code or shoot me an email. Make sure to remove any private information.</description>
		<content:encoded><![CDATA[<p>Post a comment with your code or shoot me an email. Make sure to remove any private information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srikanth</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-261</link>
		<dc:creator>srikanth</dc:creator>
		<pubDate>Wed, 06 Oct 2010 17:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.fitchett.me/?p=8#comment-261</guid>
		<description>thanks for your post.... I have a question .. i am usinig flash builder 4.... using data center service .. to bind ... am not able to bind the results to data grid .... though i am able to see the xml in test connection ..... it says root must be an array collection .... Please reply</description>
		<content:encoded><![CDATA[<p>thanks for your post&#8230;. I have a question .. i am usinig flash builder 4&#8230;. using data center service .. to bind &#8230; am not able to bind the results to data grid &#8230;. though i am able to see the xml in test connection &#8230;.. it says root must be an array collection &#8230;. Please reply</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-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>
</channel>
</rss>

