Passes the name and value of an argument to a component method or a web service method. This tag is used inside of the cfinvoke tag.

 <cfinvokeargument name="" value="">

 cfinvokeargument(name="", value="");

Attribute Reference for the cfinvokeargument tag


Required: Yes
The argument name


Required: Yes
The argument value


Required: No
Default: NO
Enables you to omit a parameter when invoking a web service.
It is an error to specify omit="true" if the cfinvoke
webservice attribute is not specified.
- true: omit this parameter when invoking a web service.
- false: do not omit this parameter when invoking a web service.

Examples sample code using the cfinvokeargument tag

Invoke a SOAP webservice and passing arguments using cfinvokeargument

Calls a remote web service to perform an addition, uses cfinvokeargument to pass the arguments to the method.

<cfinvoke webservice="" method="add" returnvariable="answer">
    <cfinvokeargument name="x" value="2">
    <cfinvokeargument name="y" value="3">

Expected Result: 5.0

Fork me on GitHub