Passes the name and value of a parameter to a component method or a web service. This tag is used within the cfinvoke tag.
<cfinvokeargument name="argument name" value="argument value">
cfargument, cfcomponent, cffunction, cfinvoke, cfobject, cfproperty, cfreturn
New in ColdFusion MX: This tag is new.
| Attribute | Req/Opt | Default | Description |
|---|---|---|---|
| name |
Required |
|
Argument name |
| value |
Required |
|
Argument value |
You can code multiple name/value pairs within this tag.
<cfinvoke
component="nasdaq.quote"
method="getLastTradePrice"
returnVariable="res">
<cfinvokeargument
name="symbol" value="mot">
<cfinvokeargument
name="symbol" value="macr">
</cfinvoke>
<cfoutput>#res#</cfoutput>
<cfinvoke
webservice ="http://www.xmethods.net/sd/2001/BabelFishService.wsdl"
method ="BabelFish"
returnVariable = "varName"
>
<cfinvokeargument
name="translationmode" value="en_es">
<cfinvokeargument
name="sourcedata" value="Hello world, friend">
</cfinvoke>
<cfoutput>#varName#</cfoutput>