<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.

Usage

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

This tag may have a body.

This tag is also supported within cfscript

Attributes

Attribute Description
serviceport
(string, optional)

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.

proxyport
(number, optional)

The port to use on The proxy server.

proxypassword
(string, optional)

The user's password on the proxy server.

proxyuser
(string, optional)

The user ID to send to the proxy server.

proxyserver
(string, optional)

The proxy server required to access the webservice URL.

password
(string, optional)

Overrides password specified in Administrator > Web Services

webservice
(string, optional)

The URL of the WSDL file for the web service.

timeout
(number, optional)

The timeout for the web service request, in seconds

username
(string, optional)

Overrides username specified in Administrator > Web Services

returnvariable
(string, optional)

Name of a variable for the invocation result.

method
(string, optional)

Name of a method. For a web service, the name of an operation.

component
(any, optional)

String or component object; a reference to a component, or component to instantiate.

Examples

There are currently no examples for this tag.