Issue

Access from Macromedia Flash to web services using the Flash Gateway is disabled by default in ColdFusion MX Updater 3 and higher. To enable access, use the steps provided in this TechNote.

Solution

To enable access from Macromedia Flash to web services, follow these steps:

ColdFusion MX 6.1
  1. Open the cf_root/wwwroot/WEB-INF/web.xml file in a text editor. In the J2EE configuration, opencf_root/WEB-INF/web.xml.
  2. Locate the servlet definition for FlashGateway and change the DISABLE_CFWS_ADAPTERS init-param from true to false, as follows:
    <servlet><servlet-name>FlashGateway</servlet-name>  ...<init-param><param-name>DISABLE_CFWS_ADAPTERS</param-name><param-value>false</param-value><description>When set to true, this setting disables the          ColdFusion WebServices Adapters in the gateway.</description></init-param></servlet>
  3. Save the file.

ColdFusion MX Updater 3
  1. Stop the ColdFusion Application Server.
  2. Using WinZip or the archive program of your choice, open the flashgateway.ear file located in thecf_root/runtime/servers/default directory.
  3. Open the gateway-webapp.war file which is within the flashgateway.ear file.
  4. Using the text editor of your choice, open the web.xml file located within the gateway-webapp.war file.
  5. Modify the param-value for the DISABLE_CFWS_ADAPTERS param-name to false to enable access:
    <init-param><param-name>DISABLE_CFWS_ADAPTERS</param-name><param-value>false</param-value><description>When set to true, this setting disables the    ColdFusion WebServices Adapters in the gateway.</description></init-param>
  6. Save the changes to the web.xml file.
  7. Using WinZip or the archive program of your choice, save the modified web.xml file in the gateway-webapp.war archive file.
  8. Using WinZip or the archive program of your choice, save the modified gateway-webapp.war archive file in the flashgateway.ear file.
  9. Replace the existingcf_root/runtime/servers/default/flashgateway.ear with the updated file.
  10. Restart the ColdFusion Application Server.

Additional Information

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy