<cfcomponent output="false" hint="I am a test web service component."> <cffunction name="Test" access="remote" returntype="string" output="false" hint="I take an XML argument."> <!--- Define arguments. ---> <cfargument name="Data" type="xml" required="true" hint="I am the xml data." /> <!--- Define the local scope. ---> <cfset var LOCAL = {} /> <!--- Get the value. ---> <cfset LOCAL.ValueNodes = XmlSearch( XmlParse( ARGUMENTS.Data ), "//value" ) /> <!--- Get the value. ---> <cfset LOCAL.Value = LOCAL.ValueNodes[ 1 ].XmlText /> <!--- Return value. ---> <cfreturn LOCAL.Value /> </cffunction> </cfcomponent>