<?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: Using HTTPService tag to send/receive variables to a server-side script</title>
	<atom:link href="http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Veronica</title>
		<link>http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/comment-page-1/#comment-631</link>
		<dc:creator>Veronica</dc:creator>
		<pubDate>Tue, 26 May 2009 02:37:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/#comment-631</guid>
		<description>I need to say this: THANKS!!!... I&#039;ve been trying so hard to find out how to get a single result from an xml text recieved by a servlet, on flex, and I finally found your example and IT WORKS!!! I&#039;m so excited that I really want to thank you... BIG help!!</description>
		<content:encoded><![CDATA[<p>I need to say this: THANKS!!!&#8230; I&#8217;ve been trying so hard to find out how to get a single result from an xml text recieved by a servlet, on flex, and I finally found your example and IT WORKS!!! I&#8217;m so excited that I really want to thank you&#8230; BIG help!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nash</title>
		<link>http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/comment-page-1/#comment-630</link>
		<dc:creator>Nash</dc:creator>
		<pubDate>Sun, 24 May 2009 22:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/#comment-630</guid>
		<description>Peter/Dylan-

Thanks for example.

Few ways in which variable can be passed to flex –mainly foccused for http request variables
http://yasob.blogspot.com/2009/05/accessing-http-request-parameter-in.html</description>
		<content:encoded><![CDATA[<p>Peter/Dylan-</p>
<p>Thanks for example.</p>
<p>Few ways in which variable can be passed to flex –mainly foccused for http request variables<br />
<a href="http://yasob.blogspot.com/2009/05/accessing-http-request-parameter-in.html" rel="nofollow">http://yasob.blogspot.com/2009/05/accessing-http-request-parameter-in.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nash</title>
		<link>http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/comment-page-1/#comment-632</link>
		<dc:creator>Nash</dc:creator>
		<pubDate>Sun, 24 May 2009 22:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/#comment-632</guid>
		<description>Dylan-

Thanks for example.

Few ways in which variable can be passed to flex --mainly foccused for http request variables
http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/</description>
		<content:encoded><![CDATA[<p>Dylan-</p>
<p>Thanks for example.</p>
<p>Few ways in which variable can be passed to flex &#8211;mainly foccused for http request variables<br />
<a href="http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/" rel="nofollow">http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dylan</title>
		<link>http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/comment-page-1/#comment-633</link>
		<dc:creator>Dylan</dc:creator>
		<pubDate>Mon, 12 Jan 2009 05:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/#comment-633</guid>
		<description>This has been a trying experience to fully understand how HTTPService and the supporting RPC (remote procedure call) classes operate.  For those of you still having trouble, here is a solution I got working in Flex 3 returning simple XML after sending a login form using the POST method.  It&#039;s server side language independent.

&lt;pre class=&quot;code&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;absolute&quot;&gt;

	&lt;mx:Script&gt;
		&lt;![CDATA[

	import mx.rpc.events.ResultEvent;
	import mx.rpc.events.FaultEvent;

	private function loginResult(event:ResultEvent):void{
		// HTTP Service Succeeded
		trace(&quot;Success &quot; + event.type);

	}

	private function loginFault(event:FaultEvent):void{
		// HTTP Service Failed
		trace(event.type);
		trace(event.fault);
	}

		]]&gt;
	&lt;/mx:Script&gt;

	&lt;!--
		resultFormat=&quot;e4x&quot; was a huge step forward for me

		In this example my server receives the POST form variables email and password and validates the user to return the user_id and email_address .  The output from the server page that was POSTed to returns the following exactly as it is here:

&lt;results&gt;
    &lt;user_id&gt;&lt;![CDATA[ 1 ]]&gt;&lt;/user_id&gt;
    &lt;email_address&gt;&lt;![CDATA[ dylan.valade@pinelakedesign.com ]]&gt;&lt;/email_address&gt;

&lt;/results&gt;

	--&gt;

	&lt;mx:HTTPService
		resultFormat=&quot;e4x&quot;
		method=&quot;POST&quot;
		fault=&quot;loginFault(event)&quot;
		result=&quot;loginResult(event)&quot;
		url=&quot;https://www.yourdomain.com/login/&quot;
		id=&quot;loginService&quot;
		&gt;

	&lt;mx:request&gt;
         	&lt;email&gt;{email.text}&lt;/email&gt;
		&lt;password&gt;{password.text}&lt;/password&gt;
      	&lt;/mx:request&gt;

    &lt;/mx:HTTPService&gt;

    &lt;mx:VBox&gt;

	   &lt;mx:TextInput id=&quot;email&quot; text=&quot;dylan.valade@pinelakedesign.com&quot; /&gt;

	    &lt;mx:TextInput id=&quot;password&quot; text=&quot;secret&quot; /&gt;

		&lt;mx:Button click=&quot;loginService.send();&quot; label=&quot;Login&quot; /&gt;

		&lt;mx:Text id=&quot;resultText&quot; text=&quot;Result From Server: {loginService.lastResult.email_address}&quot; &gt;

		&lt;/mx:Text&gt;

	&lt;/mx:VBox&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This has been a trying experience to fully understand how HTTPService and the supporting RPC (remote procedure call) classes operate.  For those of you still having trouble, here is a solution I got working in Flex 3 returning simple XML after sending a login form using the POST method.  It&#8217;s server side language independent.</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"&gt;

	&lt;mx:Script&gt;
		&lt;![CDATA[

	import mx.rpc.events.ResultEvent;
	import mx.rpc.events.FaultEvent;

	private function loginResult(event:ResultEvent):void{
		// HTTP Service Succeeded
		trace("Success " + event.type);

	}

	private function loginFault(event:FaultEvent):void{
		// HTTP Service Failed
		trace(event.type);
		trace(event.fault);
	}

		]]&gt;
	&lt;/mx:Script&gt;

	&lt;!--
		resultFormat="e4x" was a huge step forward for me

		In this example my server receives the POST form variables email and password and validates the user to return the user_id and email_address .  The output from the server page that was POSTed to returns the following exactly as it is here:

&lt;results&gt;
    &lt;user_id&gt;&lt;![CDATA[ 1 ]]&gt;&lt;/user_id&gt;
    &lt;email_address&gt;&lt;![CDATA[ <a href="mailto:dylan.valade@pinelakedesign.com">dylan.valade@pinelakedesign.com</a> ]]&gt;&lt;/email_address&gt;

&lt;/results&gt;

	--&gt;

	&lt;mx:HTTPService
		resultFormat="e4x"
		method="POST"
		fault="loginFault(event)"
		result="loginResult(event)"
		url="https://www.yourdomain.com/login/"
		id="loginService"
		&gt;

	&lt;mx:request&gt;
         	&lt;email&gt;{email.text}&lt;/email&gt;
		&lt;password&gt;{password.text}&lt;/password&gt;
      	&lt;/mx:request&gt;

    &lt;/mx:HTTPService&gt;

    &lt;mx:VBox&gt;

	   &lt;mx:TextInput id="email" text="dylan.valade@pinelakedesign.com" /&gt;

	    &lt;mx:TextInput id="password" text="secret" /&gt;

		&lt;mx:Button click="loginService.send();" label="Login" /&gt;

		&lt;mx:Text id="resultText" text="Result From Server: {loginService.lastResult.email_address}" &gt;

		&lt;/mx:Text&gt;

	&lt;/mx:VBox&gt;

&lt;/mx:Application&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake hawkes</title>
		<link>http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/comment-page-1/#comment-634</link>
		<dc:creator>Jake hawkes</dc:creator>
		<pubDate>Thu, 06 Nov 2008 15:50:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/#comment-634</guid>
		<description>Hello Peter,

Do you feel this would be a good way to send variables triggered by Cue Points in a flash video. I want to set a coupel cue points in a flash video and when they are triggered send a message that eventually chages out content in a HTML document.

IE Content specific information...similiar to what you expect from CC but rich media.

So a flash or Flex player is playing laong, hits a Cue Point which triggers my object and passes it a URL string.  As above it sends it via MyObj to a MySQL database in my case.  Then a JS object is listening for the object and populates a given content area with a SWF, JPG, Text or whatever that is in the data row...

Am I on the right track?  I have been trying to run this down for a week...spent all last night reading up on External Class...</description>
		<content:encoded><![CDATA[<p>Hello Peter,</p>
<p>Do you feel this would be a good way to send variables triggered by Cue Points in a flash video. I want to set a coupel cue points in a flash video and when they are triggered send a message that eventually chages out content in a HTML document.</p>
<p>IE Content specific information&#8230;similiar to what you expect from CC but rich media.</p>
<p>So a flash or Flex player is playing laong, hits a Cue Point which triggers my object and passes it a URL string.  As above it sends it via MyObj to a MySQL database in my case.  Then a JS object is listening for the object and populates a given content area with a SWF, JPG, Text or whatever that is in the data row&#8230;</p>
<p>Am I on the right track?  I have been trying to run this down for a week&#8230;spent all last night reading up on External Class&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/comment-page-1/#comment-628</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Wed, 28 May 2008 06:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/#comment-628</guid>
		<description>&lt;a href=&quot;http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/#comment-13039&quot; rel=&quot;nofollow&quot;&gt;Mas&lt;/a&gt;,

I updated the entry above, hope that helps.

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/#comment-13039" rel="nofollow">Mas</a>,</p>
<p>I updated the entry above, hope that helps.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mas</title>
		<link>http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/comment-page-1/#comment-627</link>
		<dc:creator>Mas</dc:creator>
		<pubDate>Wed, 28 May 2008 06:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/#comment-627</guid>
		<description>Hi! Do you have the .cfm file? Is it possible if i take a look? Because i&#039;m having problem how to write it.</description>
		<content:encoded><![CDATA[<p>Hi! Do you have the .cfm file? Is it possible if i take a look? Because i&#8217;m having problem how to write it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Whittingham</title>
		<link>http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/comment-page-1/#comment-629</link>
		<dc:creator>Patrick Whittingham</dc:creator>
		<pubDate>Wed, 09 Apr 2008 21:36:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/#comment-629</guid>
		<description>How do I have to different buttons, instead of putting this code (ie., click=&quot;xmlRPC.send();&quot; ). I want to call 2 different functions. One will pass hidden textinput field value as &quot;1&quot; or &quot;2&quot;. This will tell CFMX to one of the 2 given CFC. httpservice calls a cfm page which cfinvokes one of the 2 cfc&#039;s. httpservice use &quot;POST&quot; method.</description>
		<content:encoded><![CDATA[<p>How do I have to different buttons, instead of putting this code (ie., click=&#8221;xmlRPC.send();&#8221; ). I want to call 2 different functions. One will pass hidden textinput field value as &#8220;1&#8243; or &#8220;2&#8243;. This will tell CFMX to one of the 2 given CFC. httpservice calls a cfm page which cfinvokes one of the 2 cfc&#8217;s. httpservice use &#8220;POST&#8221; method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashok</title>
		<link>http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/comment-page-1/#comment-626</link>
		<dc:creator>ashok</dc:creator>
		<pubDate>Tue, 16 Oct 2007 09:50:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/#comment-626</guid>
		<description>hi! nice to see this app</description>
		<content:encoded><![CDATA[<p>hi! nice to see this app</p>
]]></content:encoded>
	</item>
</channel>
</rss>

