Railo 4.2 Reference
Choose a tag:

Tag <CFINVOKE>

Invokes component methods from within a page or component. You use this tag to reference a WSDL file and consume a web service from within a block of CFML code.

Body

This tag may have a body.

Example

	<cfinvoke
[component="any"]
[method="string"]
[password="string"]
[proxypassword="string"]
[proxyport="number"]
[proxyserver="string"]
[proxyuser="string"]
[returnvariable="string"]
[serviceport="string"]
[timeout="number"]
[username="string"]
[webservice="string"] ... >
[</cfinvoke>]

Attributes

This tag has a fixed definition of attributes (see below). In addition it allowes to use any additional attribute.
Name Type Required Description
component any No String or component object; a reference to a component, or
component to instantiate. 
method string No Name of a method. For a web service, the name of an
operation. 
password string No Overrides password specified in Administrator > Web Services 
proxypassword string No The user's password on the proxy server. 
proxyport number No The port to use on The proxy server. 
proxyserver string No The proxy server required to access the webservice URL. 
proxyuser string No The user ID to send to the proxy server. 
returnvariable string No Name of a variable for the invocation result. 
serviceport string No The port name for the web service. This value is
case-sensitive and corresponds to the port element's
name attribute under the service element. Specify this
attribute if the web service contains multiple ports.
Default: first port found in the WSDL. 
timeout number No The timeout for the web service request, in seconds 
username string No Overrides username specified in Administrator > Web Services 
webservice string No The URL of the WSDL file for the web service.