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>

Reply via email to