<cfinvoke>

Invokes component methods from within a page or component.

Use this tag to reference a WSDL file and consume a web service from within a block of CFML code.

This tag may have a body.

This tag is also supported within <cfscript>

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

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

method
string, optional

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

returnvariable
string, optional

Name of a variable for the invocation result.

username
string, optional

Overrides username specified in Administrator > Web Services

password
string, optional

Overrides password specified in Administrator > Web Services

webservice
string, optional

The URL of the WSDL file for the web service.

proxyserver
string, optional

The proxy server required to access the webservice URL.

proxyport
number, optional

The port to use on The proxy server.

proxyuser
string, optional

The user ID to send to the proxy server.

proxypassword
string, optional

The user's password on the proxy server.

Unimplemented Attribute(s)

Attribute Description
timeout
number, optional

The timeout for the web service request, in seconds

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

* unimplemented *

Examples

There are currently no examples for this tag.

See also