User Guide

262 Chapter 2: ColdFusion Tags
Example1
<cfinvoke
component="nasdaq.quote"
method="getLastTradePrice"
returnVariable="res">
<cfinvokeargument
name="symbol" value="mot">
<cfinvokeargument
name="symbol" value="macr">
</cfinvoke>
<cfoutput>#res#</cfoutput>
Example2
<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>