I found when moving from dev to production ( ie changing from non ssl to ssl
) I had to completely exist Flexbuilder edit the config file to look like
this:
<default-channels>
<channel ref="my-cfamf-secure"/>
</default-channels>
<destination id="ColdFusion">
<channels>
<channel ref="my-cfamf-secure"/>
</channels>
Then re launch Flexbuilder and produce a release build.
Also if you are using Mappings to CFC's make sure you turned this on the
production server. And that your mappings are set on the production box.
<access>
<!-- Use the ColdFusion mappings to find CFCs, by default
only CFC files under your webroot can be found. -->
<use-mappings>true</use-mappings>
<!-- allow "public and remote" or just "remote" methods to
be invoked -->
<method-access-level>remote</method-access-level>
</access>
Paul.
http://blog.kukiel.net
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of mbarbh
Sent: Thursday, 8 May 2008 3:34 AM
To: [email protected]
Subject: [flexcoders] SSL and Flex
I'm having some real issues here trying to make this file work in
production. It works fine on our test server. The only difference is we
have an SSL cert on the production server. Below are the three files I
believe are affected the application file, remoting-config.xml and
services-config.xml. I looked on the internets, but couldn't find the
problem. The datagrid appears, just no data is returned in production. I
am 99.99% sure the cfc is never accessed in the production app.
Can someone help?
Application file:
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.InvokeEvent;
[Bindable]
private var partnerListData:ArrayCollection;
private function
dataHandler(event:ResultEvent,tkn:String):void
{
if(tkn == "partnerList"){
partnerListData = event.result as
ArrayCollection;
}
}
private function filterPartnerList():void
{
partnerListGetter.getPartnerList();
}
private function startUp():void
{
partnerListGetter.getPartnerList();
}
]]>
</mx:Script>
<mx:RemoteObject id="partnerListGetter"
destination="ColdFusion"
source="partner">
<mx:method name="getPartnerList" makeObjectsBindable="true"
result="dataHandler(event,'partnerList')"/>
</mx:RemoteObject>
<mx:Button label="Get List" click="filterPartnerList();"
visible="true"/>
<mx:DataGrid id="partnerListDG"
dataProvider="{partnerListData}"
height="400">
<mx:columns>
<mx:DataGridColumn dataField="name"
headerText="Company Name"
width="200" wordWrap="true"/>
</mx:columns>
</mx:DataGrid>
remoting-config file:
<default-channels>
<channel ref="my-cfamf-secure"/>
</default-channels>
<destination id="ColdFusion">
<channels>
<channel ref="my-cfamf"/>
<channel ref="my-cfamf-secure"/>
</channels>
services-config file:
<channel-definition id="my-cfamf-secure"
class="mx.messaging.channels.SecureAMFChannel">
<endpoint uri="https://{server.name}:{server.port}
{context.root}/flex2gateway/cfamfsecure"
class="flex.messaging.endpoints.SecureAMFEndpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
<serialization>
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>