cffaq.com


Hosted and maintained by Ben Forta. Designed by Trilemetry.
Language:
    © 2002-2007 Ben Forta. All Rights Reserved  
<Home> <FAQ: Extending ColdFusion> <About>

Questions

1: How can I use Perl, PHP, ASP, or other scripting code in my ColdFusion application?  
2: Can ColdFusion interact with XML data?  
3: Can ColdFusion invoke Web Services?  
4: Can I create Web Services using ColdFusion?  
5: What is the preferred way to integrate Flash and ColdFusion?  


FAQ

1: How can I use Perl, PHP, ASP, or other scripting code in my ColdFusion application?
There are several ways to invoke external code. The <CFEXECUTE> tag can be used to execute scripts that can be invoked on the command line. Pages that need to be executed a Web pages can be invoked using <CFHTTP>. Code that can be invoked as a Web Service can be executed using the <CFINVOKE> tag (this is the preferred form of invocation). Regardless of how the code is executed, the tags will return any results returned by the executed script.
2: Can ColdFusion interact with XML data?
ColdFusion can read, parse, and write XML data. CFML even includes functions that can be used to apply XSL transformations and perform XPath searches.
3: Can ColdFusion invoke Web Services?
ColdFusion has very sophisticated (and easy to use) Web Services client support. To invoke a Web Server simple pass the URL of its WSDL to the <CFINVOKE> tag. ColdFusion handles all SOAP and XML processing for you automatically.
4: Can I create Web Services using ColdFusion?
To create a Web Service in ColdFusion simply create a ColdFusion Component and specify ACCESS="remote" for any methods to be exposed as Web Services. You must also be careful to specify return types, and to not use any special characters (including underscore) in method, argument, or file names.
5: What is the preferred way to integrate Flash and ColdFusion?
Flash and ColdFusion can be integrated in several ways (including XML data manipulation, and direct HTTP calls). The ideal interface, however, is Flash Remoting – using Flash Remoting, Flash side ActionScript can invoke ColdFusion CFM and CFC files directly as if they were local objects (of the two, .CFC files are preferred).

<submit question>