Chapter 9: Web Services and ColdFusion Components

To drop a Web services component onto the page (p. 158)

<cfinvoke webservice="http://www.xmethods.net/sd/2001/CATrafficService.wdsl" method="getTraffic" returnvariable="aString">
     <cfinvokeargument name="hwynums" value="enter_value_here" />
</cfinvoke>

To create a ColdFusion component (p. 160-162)

<cfcomponent displayName="hello_world">
<cffunction name="say_hello" access="remote" returnType="string" output="true">\ <cfargument name="name" type="string">
<cfreturn "Hello, #name#">
</cffunction>
</cfcomponent>

To add a ColdFusion component to your page (p. 163)

<cfinvoke component="linens.hello_world" method="say_hello" returnvariable="say_helloRet">
     <cfinvokeargument name="name" value="Vlad" />
</cfinvoke>