Flex CFF Location for FlexFusion

I am a ColdFusion developer who wants to break into Flex. I have a couple of Flex Ii'm test applications, but I have problems connecting to my CFC. I tried:

  • creating mappings in CFAdmin,
  • Place CFC in the same folder as the Flex application
  • placing CFC in the folder C: \ Coldfusion8 \ Gateway \ CFC,

all to no avail.

Each time I get the message "Could not find a ColdFusion Component or Interface error." What am I missing?

This is how I invoke using CFC to use Flex.

 <mx:RemoteObject id="conn" destination="ColdFusion" source="cfc.bulkmail"
    result="orderGrid.dataProvider = event.result;" showBusyCursor="true">
+3
source share
3 answers

C: \ Coldfusion8 \ wwwroot \ Gateway \ CFC is the right folder and cfc.bulkmail is the right source.

, - .

, .

0

remoting-config.xml([coldfusionRoot] wwwroot\WEB-INF\flex) coldfusion. Flex cfc.

<destination id="ColdFusion">
    <channels>
        <channel ref="my-cfamf"/>
    </channels>
    <properties>
        <source>*</source>
        <!-- define the resolution rules and access level of the cfc being invoked -->
        <access>
            <!-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -->
            <use-mappings>false</use-mappings>
            <!-- allow "public and remote" or just "remote" methods to be invoked -->
            <method-access-level>remote</method-access-level>
        </access>

        <property-case>
            <!-- cfc property names -->
            <force-cfc-lowercase>false</force-cfc-lowercase>
            <!-- Query column names -->
            <force-query-lowercase>false</force-query-lowercase>
            <!-- struct keys -->
            <force-struct-lowercase>false</force-struct-lowercase>
        </property-case>
    </properties>
</destination>

, , . use-mapping true, .

+2

. , - , . CFC WebServices.

0

Source: https://habr.com/ru/post/1706819/


All Articles