CFINVOKEARGUMENT  
Description
Passes the name and value of a parameter to a component method or a web service. This tag is used within the cfinvoke tag.
 
Category
Extensibility tags
 
Syntax
<cfinvokeargument
   name="argument name"
   value="argument value">
 
See also
cfargument, cfcomponent, cffunction, cfinvoke, cfobject, cfproperty, cfreturn
 
History
ColdFusion MX: Added this tag.
 
Usage
You can have multiple cfinvokeargument tags in a cfinvoke tag body.
You can use cfinvokeargument tag to dynamically determine the arguments to be passed. For example, you can use conditional processing to determine the argument name, or you can use a cfif tag to determine whether to execute the cfinvokeargument tag.
 
Example
<cfinvoke 
   component="nasdaq.quote" 
   method="getLastTradePrice"
   returnVariable="res">
   <cfinvokeargument 
      name="symbol" value="mot">
   <cfinvokeargument 
      name="symbol"    value="macr">
</cfinvoke>

<cfoutput>#res#</cfoutput>
 
Example
<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>   
NAME  
  Required
 

Argument name

VALUE  
  Required
 

Argument value