Name

cfinvoke

Synopsis

<cfinvoke>
  [<cfinvokeargument>]
  ...
</cfinvoke>

Instantiates a ColdFusion Component (CFC) or SOAP-based web service, and/or invokes a method on an instantiated CFC or web service. Arguments can be passed to a component or web service’s invoked method via the attributecollection attribute, cfinvokeargument tag, or as an attribute of the cfinvoke tag. If more than one passed argument has the same name, ColdFusion uses the aforementioned order of precedence.

Attributes

component=" component_name "

Name of the component (CFC) to instantiate or invoke a component method on. Required when invoking a component method on a CFC.

webservice=" url_to_wsdl | registered_name "

Absolute URL to the web services WSDL file or the name of the web service as registered in the ColdFusion Administrator. Required when invoking a method on a web service.

method=" method_name "

Name of the method in the CFC or web service you want to invoke. Required.

argumentcollection=" structure "

The name of a ColdFusion structure containing argument names as keys and their associated values. Optional. If an argument is passed to the cfinvoke tag using more than one technique, the order of precedence is cfinvokeargument, cfinvoke (inline), and finally argumentcollection.

password=" password "

Password for accessing the web service specified in the webservice attribute. Overrides the value (if any) set in the ColdFusion Administrator under the web services section. Optional.

proxypassword=" ...

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.