<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Flexed Up!</title>
	<atom:link href="http://flexedup.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexedup.wordpress.com</link>
	<description>My trysts with Flex, ActionScript, Flash and other technologies that reek of awesomeness...</description>
	<lastBuildDate>Tue, 15 Jun 2010 06:55:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='flexedup.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Flexed Up!</title>
		<link>http://flexedup.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://flexedup.wordpress.com/osd.xml" title="Flexed Up!" />
	<atom:link rel='hub' href='http://flexedup.wordpress.com/?pushpress=hub'/>
		<item>
		<title>The largest Adobe conference in India is Back!</title>
		<link>http://flexedup.wordpress.com/2010/06/03/the-largest-adobe-conference-in-india-is-back/</link>
		<comments>http://flexedup.wordpress.com/2010/06/03/the-largest-adobe-conference-in-india-is-back/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 11:31:11 +0000</pubDate>
		<dc:creator>Shyam P.</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash Platform]]></category>

		<guid isPermaLink="false">http://flexedup.wordpress.com/?p=121</guid>
		<description><![CDATA[Need I say more?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=121&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.adobesummit.com"><img src="http://flexedup.files.wordpress.com/2010/06/afpsisback.jpg?w=600&#038;h=272" alt="" title="AFPSisBACK" width="600" height="272" class="aligncenter size-full wp-image-132" /></a><br />
Need I say more? <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexedup.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexedup.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexedup.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexedup.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexedup.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexedup.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexedup.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexedup.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexedup.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexedup.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexedup.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexedup.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexedup.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexedup.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=121&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexedup.wordpress.com/2010/06/03/the-largest-adobe-conference-in-india-is-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a47444360de559e9f98bfed39ab9901b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Shyam P.</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2010/06/afpsisback.jpg" medium="image">
			<media:title type="html">AFPSisBACK</media:title>
		</media:content>
	</item>
		<item>
		<title>Adobe Dev Summit at Chennai and Hyderabad</title>
		<link>http://flexedup.wordpress.com/2009/11/19/adobe-dev-summit-at-chennai-and-hyderabad/</link>
		<comments>http://flexedup.wordpress.com/2009/11/19/adobe-dev-summit-at-chennai-and-hyderabad/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 09:56:00 +0000</pubDate>
		<dc:creator>Shyam P.</dc:creator>
				<category><![CDATA[Adobe]]></category>

		<guid isPermaLink="false">http://flexedup.wordpress.com/?p=112</guid>
		<description><![CDATA[Watch out for the Adobe DevSummit in Chennai on the 24th of this month and Hyderabad on Dec 1st! After the great response we got in Bangalore this year, this is the first time that the DevSummit is hitting the cities of Chennai and Hyderabad. I will be taking a hands-on session on building the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=112&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Watch out for the <a href="http://endtoend.in/apps/forms/adobe/DevSummitNovDec09/home.html">Adobe DevSummit</a> in Chennai on the 24th of this month and Hyderabad on Dec 1st! After the great response we got in Bangalore this year, this is the first time that the DevSummit is hitting the cities of Chennai and Hyderabad.</p>
<p>I will be taking a hands-on session on building the user experience, along with fellow evangelist <a href="http://blog.flexgeek.in/">Harish</a>. Really looking forward to it! We also have a few speakers from the Adobe Developer Community sharing their expertise.</p>
<p>You can find the agenda of the event <a href="http://endtoend.in/apps/forms/adobe/DevSummitNovDec09/agenda.html">here</a>. Go ahead and <a href="http://endtoend.in/apps/forms/adobe/DevSummitNovDec09/registration.aspx">register</a> now!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexedup.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexedup.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexedup.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexedup.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexedup.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexedup.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexedup.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexedup.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexedup.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexedup.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexedup.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexedup.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexedup.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexedup.wordpress.com/112/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=112&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexedup.wordpress.com/2009/11/19/adobe-dev-summit-at-chennai-and-hyderabad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a47444360de559e9f98bfed39ab9901b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Shyam P.</media:title>
		</media:content>
	</item>
		<item>
		<title>Form Generation in Flash Builder 4 (Part II)</title>
		<link>http://flexedup.wordpress.com/2009/10/23/form-generation-in-flash-builder-4-part-ii/</link>
		<comments>http://flexedup.wordpress.com/2009/10/23/form-generation-in-flash-builder-4-part-ii/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 05:06:27 +0000</pubDate>
		<dc:creator>Shyam P.</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexedup.wordpress.com/?p=102</guid>
		<description><![CDATA[In my previous post, we had seen how to generate forms for data types and service operations. Now, let us generate a form for master-detail view. As we saw in the earlier post, this refers to the case where there is a control (for eg. List, ComboBox) that displays the instances of a data type [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=102&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://flexedup.wordpress.com/2009/10/12/form-generation-in-flash-builder-4/">previous post</a>, we had seen how to generate forms for data types and service operations.</p>
<p>Now, let us generate a form for master-detail view. As we saw in the earlier post, this refers to the case where there is a control (for eg. List, ComboBox) that displays the instances of a data type and a form is generated which displays the details of the selected item in the control.</p>
<p>In this example, we have with us a data service named PopulationService…</p>
<p><a href="http://flexedup.files.wordpress.com/2009/10/step-2-pic-6.png"><img class="alignnone" src="http://flexedup.files.wordpress.com/2009/10/step-2-pic-6.png?w=313&#038;h=257" alt="" width="313" height="257" /></a></p>
<p>&#8230; and a ComboBox which is bound to the getCountries() operation. (To know how to create the complete app from scratch, go <a href="http://flexedup.wordpress.com/2009/10/06/connecting-to-webservices-using-the-data-centric-development-dcd-feature-in-flash-builder-4/">here</a>).</p>
<p><a href="http://flexedup.files.wordpress.com/2009/10/step-3-pic-3.png"><img class="alignnone" src="http://flexedup.files.wordpress.com/2009/10/step-3-pic-3.png?w=277&#038;h=167" alt="" width="277" height="167" /></a></p>
<p>The form will retrieve the details of the selected country in the ComboBox.</p>
<p>So, let’s get started! Switch to Design View. Then, right-click on the ComboBox and click on ‘Generate Details Form’.</p>
<p><a href="http://flexedup.files.wordpress.com/2009/10/step-3-pic-42.png"><img class="alignnone" src="http://flexedup.files.wordpress.com/2009/10/step-3-pic-42.png?w=445&#038;h=458" alt="" width="445" height="458" /></a></p>
<p>A pop-up is thrown. By default, Generate form for: Master-Detail, is selected. Ensure that ‘Make form editable’ is kept unchecked because we don’t need an editable one in this case.</p>
<p>In this example, the Population Service has a service called getPopulation(String) which takes as argument the name of the country, and returns the details of that country.  Hence, check ‘Call a service to get the detail data…’. Then make sure the service and operation are selected and hit Finish!</p>
<p><a href="http://flexedup.files.wordpress.com/2009/10/step-3-pic-5.png"><img class="alignnone" src="http://flexedup.files.wordpress.com/2009/10/step-3-pic-5.png?w=500&#038;h=520" alt="" width="500" height="520" /></a></p>
<p>You’ll automatically be directed to the source view (to the ComboBox’s change handler). And you&#8217;ll see the following code.</p>
<p>protected function comboBox_changeHandler(event:ListEvent):void</p>
<p>{</p>
<p>getPopulationResult.token = populationService.getPopulation(<strong><em>/*Enter value(s) for */</em> strCountry</strong>);</p>
<p>}</p>
<p>Here, change the parameter to the getPopulation(String) operation (to comboBox.selectedItem.toString() ). So the code looks like this:</p>
<p>protected function comboBox_changeHandler(event:ListEvent):void</p>
<p>{</p>
<p>getPopulationResult.token = populationService.getPopulation(<strong>comboBox.selectedItem.toString()</strong>);</p>
<p>}</p>
<p>As simple as that! You have yourself a details form. Adjust the position of the generated form in the design view and run the application.</p>
<p><a href="http://flexedup.files.wordpress.com/2009/10/step-3-pic-6.png"><img class="alignnone" src="http://flexedup.files.wordpress.com/2009/10/step-3-pic-6.png?w=281&#038;h=165" alt="" width="281" height="165" /></a></p>
<p>More articles on using Flash Builder 4 can be found in Sujit’s Blog – <a href="http://sujitreddyg.wordpress.com/flash-builder-4/" target="_blank">http://sujitreddyg.wordpress.com/flash-builder-4/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexedup.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexedup.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexedup.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexedup.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexedup.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexedup.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexedup.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexedup.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexedup.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexedup.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexedup.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexedup.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexedup.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexedup.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=102&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexedup.wordpress.com/2009/10/23/form-generation-in-flash-builder-4-part-ii/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a47444360de559e9f98bfed39ab9901b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Shyam P.</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-2-pic-6.png" medium="image" />

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-3-pic-3.png" medium="image" />

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-3-pic-42.png" medium="image" />

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-3-pic-5.png" medium="image" />

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-3-pic-6.png" medium="image" />
	</item>
		<item>
		<title>Form Generation in Flash Builder 4 (Part I)</title>
		<link>http://flexedup.wordpress.com/2009/10/12/form-generation-in-flash-builder-4/</link>
		<comments>http://flexedup.wordpress.com/2009/10/12/form-generation-in-flash-builder-4/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 16:01:39 +0000</pubDate>
		<dc:creator>Shyam P.</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexedup.wordpress.com/?p=85</guid>
		<description><![CDATA[The Form Generation feature in Flash Builder helps DCD users to create forms. Form code is automatically generated for the data types or service calls and the controls are bound to the properties of the required data type, saving us a lot of time. Forms can be generated: For a data type. Controls for each [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=85&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Form Generation feature in Flash Builder helps DCD users to create forms. Form code is automatically generated for the data types or service calls and the controls are bound to the properties of the required data type, saving us a lot of time.</p>
<p>Forms can be generated:</p>
<ul>
<li>For a data type. Controls for each property of a data type are auto generated and bound.</li>
</ul>
<ul>
<li>For a service operation.  Controls of the form are generated for the input parameters or the return type of the service.</li>
</ul>
<ul>
<li>For a master-detail view. This refers to the case where there is a control (for eg. List, ComboBox) that displays the instances of a data type and a form is generated which displays the details of the selected item in the control.</li>
</ul>
<p>Let us take a look at how forms can be generated. This post will talk about form generation for data type and service operation (My next post talks about <a href="http://flexedup.wordpress.com/2009/10/23/form-generation-in-flash-builder-4-part-ii/">generating a master detail form</a>). We start off with the following example, which has a service called CarsService.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/form-generation-01.png"><img class="aligncenter size-full wp-image-86" title="Form Generation 01" src="http://flexedup.files.wordpress.com/2009/10/form-generation-01.png?w=401&#038;h=353" alt="Form Generation 01" width="401" height="353" /></a></p>
<p><strong><span style="text-decoration:underline;">Generating a Form for a data type</span></strong></p>
<p>First we’ll generate a Form to take in details of an object of type ‘Cat_type’. Go to the Data/Services tab.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/form-generation-11.png"><img class="aligncenter size-full wp-image-87" title="Form Generation 11" src="http://flexedup.files.wordpress.com/2009/10/form-generation-11.png?w=600&#038;h=398" alt="Form Generation 11" width="600" height="398" /></a></p>
<p>Right-click on the data type (which is Car_type in this case) and click on ‘Generate Form’.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/form-generation-12.png"><img class="aligncenter size-full wp-image-88" title="Form Generation 12" src="http://flexedup.files.wordpress.com/2009/10/form-generation-12.png?w=371&#038;h=354" alt="Form Generation 12" width="371" height="354" /></a></p>
<p>Now you’ll see a window where you can choose what type of form you want. By default it says Generate form for: Data type. And the data type is Car_type. Keep the box checked to keep the form editable. Now click Finish.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/form-generation-13.png"><img class="aligncenter size-full wp-image-89" title="Form Generation 13" src="http://flexedup.files.wordpress.com/2009/10/form-generation-13.png?w=500&#038;h=521" alt="Form Generation 13" width="500" height="521" /></a></p>
<p>Run the application. An editable Form is generated with each property of the data type.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/form-generation-14.png"><img class="aligncenter size-full wp-image-90" title="Form Generation 14" src="http://flexedup.files.wordpress.com/2009/10/form-generation-14.png?w=231&#038;h=157" alt="Form Generation 14" width="231" height="157" /></a></p>
<p><strong><span style="text-decoration:underline;">Generating a Form for a service operation</span></strong></p>
<p>Now, we want to generate a Form that lets the user give details to add a new Car. Go to the Data/Services tab.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/form-generation-111.png"><img class="aligncenter size-full wp-image-91" title="Form Generation 11" src="http://flexedup.files.wordpress.com/2009/10/form-generation-111.png?w=600&#038;h=398" alt="Form Generation 11" width="600" height="398" /></a></p>
<p>Right-click on the operation, which is addCar(Car_type) in this case, and click on ‘Generate Form’.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/form-generation-22.png"><img class="aligncenter size-full wp-image-92" title="Form Generation 22" src="http://flexedup.files.wordpress.com/2009/10/form-generation-22.png?w=435&#038;h=439" alt="Form Generation 22" width="435" height="439" /></a></p>
<p>A window appears and you’ll see that all the options we want are selected. Make sure Generate form for: ‘Service Call’ is selected and ‘New Service Call’ is chosen. Since we want the Form to provide us with the argument to the addCar operation, keep ‘Form for input parameters’ checked. And yes, it is obvious, but also ensure that the CarsService service and addCar operation are selected.</p>
<p>Finally, click on Finish.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/form-generation-23.png"><img class="aligncenter size-full wp-image-93" title="Form Generation 23" src="http://flexedup.files.wordpress.com/2009/10/form-generation-23.png?w=499&#038;h=520" alt="Form Generation 23" width="499" height="520" /></a></p>
<p>And there you go! Run the application. You have the form you want along with a button. Clicking the button will invoke the addCar operation and take the Form control values as its argument.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/form-generation-24.png"><img class="aligncenter size-full wp-image-94" title="Form Generation 24" src="http://flexedup.files.wordpress.com/2009/10/form-generation-24.png?w=228&#038;h=180" alt="Form Generation 24" width="228" height="180" /></a></p>
<p>If you want to check out how to generate a master detail form, check out my <a href="http://flexedup.wordpress.com/2009/10/23/form-generation-in-flash-builder-4-part-ii/">next post</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexedup.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexedup.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexedup.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexedup.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexedup.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexedup.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexedup.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexedup.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexedup.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexedup.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexedup.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexedup.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexedup.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexedup.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=85&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexedup.wordpress.com/2009/10/12/form-generation-in-flash-builder-4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a47444360de559e9f98bfed39ab9901b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Shyam P.</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/form-generation-01.png" medium="image">
			<media:title type="html">Form Generation 01</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/form-generation-11.png" medium="image">
			<media:title type="html">Form Generation 11</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/form-generation-12.png" medium="image">
			<media:title type="html">Form Generation 12</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/form-generation-13.png" medium="image">
			<media:title type="html">Form Generation 13</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/form-generation-14.png" medium="image">
			<media:title type="html">Form Generation 14</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/form-generation-111.png" medium="image">
			<media:title type="html">Form Generation 11</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/form-generation-22.png" medium="image">
			<media:title type="html">Form Generation 22</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/form-generation-23.png" medium="image">
			<media:title type="html">Form Generation 23</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/form-generation-24.png" medium="image">
			<media:title type="html">Form Generation 24</media:title>
		</media:content>
	</item>
		<item>
		<title>Consuming a static XML with HTTP Service using the Data Centric Development (DCD) feature in Flash Builder 4</title>
		<link>http://flexedup.wordpress.com/2009/10/07/connecting-to-a-static-xml-with-http-service-using-the-data-centric-development-dcd-feature-in-flash-builder-4/</link>
		<comments>http://flexedup.wordpress.com/2009/10/07/connecting-to-a-static-xml-with-http-service-using-the-data-centric-development-dcd-feature-in-flash-builder-4/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 07:55:04 +0000</pubDate>
		<dc:creator>Shyam P.</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexedup.wordpress.com/?p=48</guid>
		<description><![CDATA[Using an HTTP Service has become incredibly easy with the DCD feature of Flash Builder 4. In Flash Builder, it is possible to define multiple operations in an HTTP Service. Each operation can point to a different URL. This is different from Flex Builder, where each HTTP Service pointed only to one URL. We will [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=48&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using an HTTP Service has become incredibly easy with the DCD feature of Flash Builder 4.</p>
<p>In Flash Builder, it is possible to define multiple operations in an HTTP Service. Each operation can point to a different URL. This is different from Flex Builder, where each HTTP Service pointed only to one URL.</p>
<p>We will now create a simple FB4 app which gets data from a static XML file in the project and displays it on the DataGrid.</p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<p><strong><span style="text-decoration:underline;">Step 1 : Create a new project</span></strong></p>
<p>Create a new flex project [File-&gt;New-&gt;Flex Project]. Give it a name (in this example, CDStoreApp).</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p1.png"><img class="aligncenter size-full wp-image-54" title="Static XML S1P1" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p1.png?w=600&#038;h=656" alt="Static XML S1P1" width="600" height="656" /></a></p>
<p>Now, we need an XML file in the project. You may create one of your own or find my sample XML file here – <a href="http://sujitreddyg.com/fb4articles/beta2/CDStore.xml">CDStore.xml</a>. The file contains details about Music CDs at a fictitious store.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p2.png"><img class="aligncenter size-full wp-image-55" title="Static XML S1P2" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p2.png?w=431&#038;h=575" alt="Static XML S1P2" width="431" height="575" /></a></p>
<p>Create a new folder inside the “src” folder of your project&#8230;</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p3.png"><img class="aligncenter size-full wp-image-56" title="Static XML S1P3" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p3.png?w=600&#038;h=336" alt="Static XML S1P3" width="600" height="336" /></a></p>
<p>&#8230;and call it &#8220;assets&#8221;.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p4.png"><img class="aligncenter size-full wp-image-57" title="Static XML S1P4" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p4.png?w=501&#038;h=576" alt="Static XML S1P4" width="501" height="576" /></a></p>
<p>Copy the XML file and paste it inside the “assets” folder.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p5.png"><img class="aligncenter size-full wp-image-59" title="Static XML S1P5" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p5.png?w=600&#038;h=508" alt="Static XML S1P5" width="600" height="508" /></a></p>
<p>So we have a flex project and a static XML file with the necessary data.</p>
<p>We’re good to go!</p>
<p><strong><span style="text-decoration:underline;">Step 2 : Create an HTTP Service</span></strong></p>
<p>Go to the Data/Services Tab in your Flash Builder IDE and click on “Connect to Data Service”</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s2p1.png"><img class="aligncenter size-full wp-image-60" title="Static XML S2P1" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s2p1.png?w=600&#038;h=361" alt="Static XML S2P1" width="600" height="361" /></a></p>
<p>Choose HTTP from the pop-up and click Next.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s2p2.png"><img class="aligncenter size-full wp-image-61" title="Static XML S2P2" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s2p2.png?w=598&#038;h=602" alt="Static XML S2P2" width="598" height="602" /></a></p>
<p>Now you’ll see a screen where you can configure your HTTP Service.</p>
<p>Give your HTTP Service a name (say CDStoreService). You can define operations and enter the corresponding URLs.</p>
<p>For this example, we’ll just name one operation called getDiscs, which gets the data from our XML file. Enter the URL: “assets/CDStore.xml”  (path relative to the source folder of your flex project).  Finally, click on Finish.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s2p3.png"><img class="aligncenter size-full wp-image-62" title="Static XML S2P3" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s2p3.png?w=599&#038;h=602" alt="Static XML S2P3" width="599" height="602" /></a></p>
<p>Check out the Data/Services and you’ll find our HTTP Service.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s2p4.png"><img class="aligncenter size-full wp-image-63" title="Static XML S2P4" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s2p4.png?w=238&#038;h=180" alt="Static XML S2P4" width="238" height="180" /></a></p>
<p>We can now move on to building a UI and binding it to our HTTP Service.</p>
<p><strong><span style="text-decoration:underline;">Step 3 : Call the service and bind it to UI Controls</span></strong></p>
<p>Go to the design view. Drag and drop a DataGrid onto your app. Now, right-click on the DataGrid and click on “<em>Bind to Data</em>”.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p1.png"><img class="aligncenter size-full wp-image-65" title="Static XML S3P1" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p1.png?w=600&#038;h=471" alt="Static XML S3P1" width="600" height="471" /></a></p>
<p>You will see a wizard now, where you can choose the service and operation that you want to bind the DataGrid to. Since we have just one service and one operation in this example, your choice is made for you. Else, you can always make your choice with the drop down lists.</p>
<p>You will observe that you can’t proceed without configuring the return type. So go ahead and click on “Configure Return Type…”</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p2.png"><img class="aligncenter size-full wp-image-66" title="Static XML S3P2" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p2.png?w=377&#038;h=266" alt="Static XML S3P2" width="377" height="266" /></a></p>
<p>At this point, you can choose for your operation to return an existing data type, or the return type can be detected from sample data. We will choose the latter for this example.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p3.png"><img class="aligncenter size-full wp-image-67" title="Static XML S3P3" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p3.png?w=600&#038;h=597" alt="Static XML S3P3" width="600" height="597" /></a></p>
<p>At this screen, you are expected to give a sample result so that Flash Builder can detect the return type. Out of the given options, select “Enter a sample XML/JSON response”. Your XML code can be found in the text area. Click next. (If the text area is empty, copy all the content from the XML file and paste it)</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p4.png"><img class="aligncenter size-full wp-image-68" title="Static XML S3P4" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p4.png?w=600&#038;h=595" alt="Static XML S3P4" width="600" height="595" /></a></p>
<p>Now, Flash Builder is able to determine the structure of the XML data from the sample code. Select the node of the XML file that you want as the root of the return type. In our file CDStore.xml, you would have noticed that “Disc” is the required node. Select “Disc” from the drop down list.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p5.png"><img class="aligncenter size-full wp-image-69" title="Static XML S3P5" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p5.png?w=600&#038;h=595" alt="Static XML S3P5" width="600" height="595" /></a></p>
<p>Click on Finish. Then click OK in the “Bind To Data” pop-up box. Now, run the project and you should see the XML displayed on the DataGrid. It should look like this:</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p6.png"><img class="aligncenter size-full wp-image-70" title="Static XML S3P6" src="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p6.png?w=525&#038;h=203" alt="Static XML S3P6" width="525" height="203" /></a></p>
<p>Now wasn&#8217;t that a piece of cake? <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>More articles on using Flash Builder 4 can be found in Sujit&#8217;s Blog &#8211; <a href="http://sujitreddyg.wordpress.com/flash-builder-4/" target="_blank">http://sujitreddyg.wordpress.com/flash-builder-4/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexedup.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexedup.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexedup.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexedup.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexedup.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexedup.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexedup.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexedup.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexedup.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexedup.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexedup.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexedup.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexedup.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexedup.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=48&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexedup.wordpress.com/2009/10/07/connecting-to-a-static-xml-with-http-service-using-the-data-centric-development-dcd-feature-in-flash-builder-4/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a47444360de559e9f98bfed39ab9901b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Shyam P.</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p1.png" medium="image">
			<media:title type="html">Static XML S1P1</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p2.png" medium="image">
			<media:title type="html">Static XML S1P2</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p3.png" medium="image">
			<media:title type="html">Static XML S1P3</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p4.png" medium="image">
			<media:title type="html">Static XML S1P4</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s1p5.png" medium="image">
			<media:title type="html">Static XML S1P5</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s2p1.png" medium="image">
			<media:title type="html">Static XML S2P1</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s2p2.png" medium="image">
			<media:title type="html">Static XML S2P2</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s2p3.png" medium="image">
			<media:title type="html">Static XML S2P3</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s2p4.png" medium="image">
			<media:title type="html">Static XML S2P4</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p1.png" medium="image">
			<media:title type="html">Static XML S3P1</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p2.png" medium="image">
			<media:title type="html">Static XML S3P2</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p3.png" medium="image">
			<media:title type="html">Static XML S3P3</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p4.png" medium="image">
			<media:title type="html">Static XML S3P4</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p5.png" medium="image">
			<media:title type="html">Static XML S3P5</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/static-xml-s3p6.png" medium="image">
			<media:title type="html">Static XML S3P6</media:title>
		</media:content>
	</item>
		<item>
		<title>Connecting to WebServices using the Data Centric Development (DCD) feature in Flash Builder 4</title>
		<link>http://flexedup.wordpress.com/2009/10/06/connecting-to-webservices-using-the-data-centric-development-dcd-feature-in-flash-builder-4/</link>
		<comments>http://flexedup.wordpress.com/2009/10/06/connecting-to-webservices-using-the-data-centric-development-dcd-feature-in-flash-builder-4/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 21:07:08 +0000</pubDate>
		<dc:creator>Shyam P.</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexedup.wordpress.com/?p=10</guid>
		<description><![CDATA[WebServices are an elemental part of the Service-Oriented Architecture, and building SOAs using WebServices standards have gained broad industry acceptance. Flash Builder 4 makes this incredibly easy with the new Services Wizard feature.Let&#8217;s take a look how. (Note: This is an update of Raghu&#8217;s blog post, for Flash Builder 4 Beta 2) There are 3 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=10&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>WebServices are an elemental part of the Service-Oriented Architecture, and building SOAs using WebServices standards have gained broad industry acceptance. Flash Builder 4 makes this incredibly easy with the new Services Wizard feature.Let&#8217;s take a look how.</p>
<p>(Note: This is an update of <a href="http://raghuonflex.wordpress.com/2009/06/01/connecting-to-webservices-with-the-data-centric-development-dcd-feature-in-flash-builder-4-part-1/">Raghu&#8217;s blog post</a>, for Flash Builder 4 Beta 2)</p>
<p>There are 3 steps to working with Web Services (HTTPService or Remoting using any backend technologies like ColdFusion, Java, PHP etc)</p>
<ol>
<li>Add the service.</li>
<li>Configure the return type.</li>
<li>Call the service and bind it to UI controls.</li>
</ol>
<p>A <a href="http://en.wikipedia.org/wiki/Web_Services_Description_Language" target="_blank">WSDL(Web Service Description Language) Document</a> is what signifies how a Web Service is exposed. Each WS has the following:</p>
<ul>
<li>Elements</li>
<li>Complex-types</li>
<li>Messages</li>
<li>Operations</li>
</ul>
<p>Each operation will have an input &amp; output message and each message may be built with an element or complex-types.</p>
<p>In the following example, the data to the application will be served using <a href="http://www.abundanttech.com/WebServices/Population/population.asmx?WSDL" target="_blank">this Population WS</a> (click to see the link). The operations that will be used are:</p>
<ul>
<li>getCountries      – to get the various countries for which data is available.</li>
<li>getPopulation      – for getting the population of a selected country.</li>
</ul>
<p>And here we go!</p>
<p><strong><span style="text-decoration:underline;">Step 1 : New project</span></strong></p>
<p>Create a new project by clicking File-&gt;New-&gt;Flex Project. Give your project a name (say PopulationApp) and hit the Finish button.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-1-pic-1.png"><img class="aligncenter size-full wp-image-11" title="Step 1 Pic 1" src="http://flexedup.files.wordpress.com/2009/10/step-1-pic-1.png?w=450&#038;h=493" alt="Step 1 Pic 1" width="450" height="493" /></a></p>
<p><strong><span style="text-decoration:underline;">Step 2 : Import the service</span></strong></p>
<p>Go to the Data/Services Tab in your Flash Builder IDE and click on “Connect to Data Service”</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-2-pic-1.png"><img class="aligncenter size-full wp-image-12" title="Step 2 Pic 1" src="http://flexedup.files.wordpress.com/2009/10/step-2-pic-1.png?w=450&#038;h=324" alt="Step 2 Pic 1" width="450" height="324" /></a></p>
<p>Choose Web Service from the pop-up and click Next.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-2-pic-2.png"><img class="aligncenter size-full wp-image-13" title="Step 2 Pic 2" src="http://flexedup.files.wordpress.com/2009/10/step-2-pic-2.png?w=450&#038;h=452" alt="Step 2 Pic 2" width="450" height="452" /></a></p>
<p>Now, enter a Service Name (say PopulationService) that you’d like it to be called in the Flex application. Also enter the path to the WSDL file [<a href="http://www.abundanttech.com/WebServices/Population/population.asmx?WSDL" target="_blank">http://www.abundanttech.com/WebServices/Population/population.asmx?WSDL</a>]</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-2-pic-33.png"><img class="aligncenter size-full wp-image-17" title="Step 2 Pic 3" src="http://flexedup.files.wordpress.com/2009/10/step-2-pic-33.png?w=450&#038;h=452" alt="Step 2 Pic 3" width="450" height="452" /></a></p>
<p>If your WSDL is not SOAP 1.1 protocol compliant, you will encounter this screen. Choose the appropriate SOAP port from the drop down menu. (However, you might not see this screen if your WSDL is SOAP 1.1 compliant. In that case, you will be shown the operations screen directly – the next screen described below)</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-2-pic-4.png"><img class="aligncenter size-full wp-image-18" title="Step 2 Pic 4" src="http://flexedup.files.wordpress.com/2009/10/step-2-pic-4.png?w=450&#038;h=451" alt="Step 2 Pic 4" width="450" height="451" /></a></p>
<p>Now, you can choose the operations that your application requires. Or you may just click Select All and hit Finish.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-2-pic-5.png"><img class="aligncenter size-full wp-image-20" title="Step 2 Pic 5" src="http://flexedup.files.wordpress.com/2009/10/step-2-pic-5.png?w=450&#038;h=452" alt="Step 2 Pic 5" width="450" height="452" /></a></p>
<p>And voila! You have a Data/Services tab with all the operations configured.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-2-pic-6.png"><img class="aligncenter size-full wp-image-21" title="Step 2 Pic 6" src="http://flexedup.files.wordpress.com/2009/10/step-2-pic-6.png?w=313&#038;h=257" alt="Step 2 Pic 6" width="313" height="257" /></a></p>
<p>Observe that in the above step, Flash Builder introspects the WSDL and the selected operations and generates the required classes. You will notice that the return type for <em>getPopulation()</em> is created as a client side model class called <em>Population. </em>However, <em>getWorldPopulation()</em> has a return type of <em>Object. </em>The reason is that the WSDL for the <em>getWorldPopulation()</em> is not well formed.</p>
<p>Hence, if the operation is well formed, then the introspector creates the model classes. If it’s not well formed, Flash Builder keeps the return type as Object. Therefore, return types need not be configured for well formed operations because the WSDL itself defines the input and output types.</p>
<p>Now let&#8217;s build a UI and bind the service to it!</p>
<p><strong><span style="text-decoration:underline;">Step 3 : Build the UI</span></strong></p>
<p>Go to the design view. Drag and drop a ComboBox onto your app (You might want to set its editable property to false if it isn&#8217;t already so). Now, right-click on the ComboBox and click on “<em>Bind to Data</em>”.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-3-pic-11.png"><img class="aligncenter size-full wp-image-23" title="Step 3 Pic 1" src="http://flexedup.files.wordpress.com/2009/10/step-3-pic-11.png?w=450&#038;h=455" alt="Step 3 Pic 1" width="450" height="455" /></a></p>
<p>You will see a wizard now, where you can choose the service and operation that you want to bind the ComboBox to. In this case, it is <em>getCountries().</em></p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-3-pic-2.png"><img class="aligncenter size-full wp-image-24" title="Step 3 Pic 2" src="http://flexedup.files.wordpress.com/2009/10/step-3-pic-2.png?w=383&#038;h=333" alt="Step 3 Pic 2" width="383" height="333" /></a></p>
<p>Now run the application. You should see the following:</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-3-pic-3.png"><img class="aligncenter size-full wp-image-26" title="Step 3 Pic 3" src="http://flexedup.files.wordpress.com/2009/10/step-3-pic-3.png?w=277&#038;h=167" alt="Step 3 Pic 3" width="277" height="167" /></a></p>
<p>Now, we’ll get the population details for a selected item on the ComboBox. Right-click on the ComboBox and click on “<em>Generate Details Form</em>”</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-3-pic-42.png"><img class="aligncenter size-full wp-image-28" title="Step 3 Pic 4" src="http://flexedup.files.wordpress.com/2009/10/step-3-pic-42.png?w=445&#038;h=458" alt="Step 3 Pic 4" width="445" height="458" /></a></p>
<p>A pop-up is thrown. You can choose which operation to call on change of selected item, and what to display. Then click Finish.</p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-3-pic-5.png"><img class="aligncenter size-full wp-image-29" title="Step 3 Pic 5" src="http://flexedup.files.wordpress.com/2009/10/step-3-pic-5.png?w=450&#038;h=468" alt="Step 3 Pic 5" width="450" height="468" /></a></p>
<p>You will be automatically directed to the source view and asked to provide the parameter for the <em>getPopulation()</em> method.</p>
<p>This is what the change handler will look like:</p>
<p><strong>protected</strong> <strong>function</strong> comboBox_changeHandler(event:ListEvent):<strong>void</strong></p>
<p>{ getPopulationResult.token =</p>
<p>populationService.getPopulation(<em>/*Enter value(s) for */ </em>strCountry);}</p>
<p>Change it to:</p>
<p><strong>protected</strong> <strong>function</strong> comboBox_changeHandler(event:ListEvent):<strong>void</strong></p>
<p>{getPopulationResult.token = populationService.getPopulation(comboBox.selectedItem.toString());}</p>
<p>Now for the final step. Go to the design view and adjust the position of the generated Form. Run the application.</p>
<p>We now have a fully functional application served by a Web Service <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align:center;"><a href="http://flexedup.files.wordpress.com/2009/10/step-3-pic-6.png"><img class="aligncenter size-full wp-image-30" title="Step 3 Pic 6" src="http://flexedup.files.wordpress.com/2009/10/step-3-pic-6.png?w=281&#038;h=165" alt="Step 3 Pic 6" width="281" height="165" /></a></p>
<p>More articles on using Flash Builder 4 can be found at <a href="http://sujitreddyg.wordpress.com/flash-builder-4/" target="_blank">http://sujitreddyg.wordpress.com/flash-builder-4/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexedup.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexedup.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexedup.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexedup.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexedup.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexedup.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexedup.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexedup.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexedup.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexedup.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexedup.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexedup.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexedup.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexedup.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=10&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexedup.wordpress.com/2009/10/06/connecting-to-webservices-using-the-data-centric-development-dcd-feature-in-flash-builder-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a47444360de559e9f98bfed39ab9901b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Shyam P.</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-1-pic-1.png" medium="image">
			<media:title type="html">Step 1 Pic 1</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-2-pic-1.png" medium="image">
			<media:title type="html">Step 2 Pic 1</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-2-pic-2.png" medium="image">
			<media:title type="html">Step 2 Pic 2</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-2-pic-33.png" medium="image">
			<media:title type="html">Step 2 Pic 3</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-2-pic-4.png" medium="image">
			<media:title type="html">Step 2 Pic 4</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-2-pic-5.png" medium="image">
			<media:title type="html">Step 2 Pic 5</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-2-pic-6.png" medium="image">
			<media:title type="html">Step 2 Pic 6</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-3-pic-11.png" medium="image">
			<media:title type="html">Step 3 Pic 1</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-3-pic-2.png" medium="image">
			<media:title type="html">Step 3 Pic 2</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-3-pic-3.png" medium="image">
			<media:title type="html">Step 3 Pic 3</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-3-pic-42.png" medium="image">
			<media:title type="html">Step 3 Pic 4</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-3-pic-5.png" medium="image">
			<media:title type="html">Step 3 Pic 5</media:title>
		</media:content>

		<media:content url="http://flexedup.files.wordpress.com/2009/10/step-3-pic-6.png" medium="image">
			<media:title type="html">Step 3 Pic 6</media:title>
		</media:content>
	</item>
		<item>
		<title>Flexed Up!</title>
		<link>http://flexedup.wordpress.com/2009/10/05/hello-world/</link>
		<comments>http://flexedup.wordpress.com/2009/10/05/hello-world/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 10:51:34 +0000</pubDate>
		<dc:creator>Shyam P.</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Flexed Up is about my experiences as I wade through the world of Rich Internet Applications. It is an assortment of know-hows, code snippets, sample apps and tips and tricks about the framework which has come to be synonymous with Web 2.0 - Adobe Flex. So let&#8217;s take the finer world of RIAs and flex [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=1&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Flexed Up is about my experiences as I wade through the world of Rich Internet Applications. It is an assortment of know-hows, code snippets, sample apps and tips and tricks about the framework which has come to be synonymous with Web 2.0 -<strong> Adobe Flex</strong>. So let&#8217;s take the finer world of RIAs and flex it up!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexedup.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexedup.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexedup.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexedup.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexedup.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexedup.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexedup.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexedup.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexedup.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexedup.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexedup.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexedup.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexedup.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexedup.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexedup.wordpress.com&amp;blog=9791263&amp;post=1&amp;subd=flexedup&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexedup.wordpress.com/2009/10/05/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a47444360de559e9f98bfed39ab9901b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Shyam P.</media:title>
		</media:content>
	</item>
	</channel>
</rss>
