<?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/"
	>

<channel>
	<title>Kalen Gibbons &#187; RemoteObject</title>
	<atom:link href="http://www.kalengibbons.com/blog/index.php/tag/remoteobject/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kalengibbons.com/blog</link>
	<description>The Dead Tree Blog</description>
	<lastBuildDate>Mon, 24 Oct 2011 20:43:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Connecting Abobe AIR (beta) to Coldfusion via mx:RemoteObject</title>
		<link>http://www.kalengibbons.com/blog/index.php/2007/08/connecting-abobe-air-beta-to-coldfusion-via-mxremoteobject/</link>
		<comments>http://www.kalengibbons.com/blog/index.php/2007/08/connecting-abobe-air-beta-to-coldfusion-via-mxremoteobject/#comments</comments>
		<pubDate>Fri, 17 Aug 2007 17:20:27 +0000</pubDate>
		<dc:creator>Kalen Gibbons</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[endpoint]]></category>
		<category><![CDATA[RemoteObject]]></category>

		<guid isPermaLink="false">http://www.kalengibbons.com/blog2/?p=20</guid>
		<description><![CDATA[While Flex 3 and AIR are still in beta, there are lots of little bugs and quirks that need to be worked around.&#160; Today I was porting over a Flex application to AIR, and received an error whenever using mx:RemoteObject.&#160; It looked something like the following: [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: [...]]]></description>
			<content:encoded><![CDATA[<p>While Flex 3 and AIR are still in beta, there are lots of little bugs and quirks that need to be worked around.&nbsp; Today I was porting over a Flex application to AIR, and received an error whenever using mx:RemoteObject.&nbsp; It looked something like the following:</p>
<p><font style="" color="red">[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://myApp-debug.swf/flex2gateway/'"]</font></p>
<p>I searched for hours and hours trying to find out why my application worked correctly as a regular Flex application but not as an AIR app.&nbsp; I finally stumbled upon the solution and I thought I would share&#8230; in order to save everyone else the same headache.&nbsp; The key is to explicitly specify the endpoint attribute in the RemoteObject tag.&nbsp; If you are testing locally it may look something like this:</p>
<div class="code"><span class="mxmlComponent">&lt;mx:RemoteObject</span></p>
<div class="indent">
id=&quot;<span class="mxmlString">AIR_Service</span>&quot;<br />
destination=&quot;<span class="mxmlString">ColdFusion</span>&quot;<br />
showBusyCursor=&quot;<span class="mxmlString">true</span>&quot;<br />
endpoint=&quot;<span class="mxmlString">http://localhost:8500/flex2gateway</span>&quot;<br />
source=&quot;<span class="mxmlString">myApp.cfc.cfcName</span>&quot; <span class="mxmlComponent">/&gt;</span></div>
</div>
<p>This is something I hope Adobe will fix before the official release of both these applications, but in the meantime, here is your workaround.</p>
<p class="notice">Update: After working with AIR for a while, I realize, of course, that this is not actually a bug.  AIR does not have the same server context that Flex has, and therefore, an endpoint is required. The thing to remember when porting an application from Flex to AIR is not to forget the endpoint, or AIR won&#8217;t know what server it is supposed to connect to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kalengibbons.com/blog/index.php/2007/08/connecting-abobe-air-beta-to-coldfusion-via-mxremoteobject/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

