I Just want to get back a list of firstnames cfc webservice, then I try and invoke this in the cfm.
What am I doing wrong?
<cfcomponent>
<cffunction name="echoQuery" access="remote" returntype="query">
<cfquery name="result" datasource="#request.dsn#">
SELECT Firstname
FROM Loger
</cfquery>
<cfreturn result>
</cffunction>
</cfcomponent>
_________________________
<cfinvoke
webservice="method="echoQuery"
returnvariable="result">
</cfinvoke>
<cfdump var="#result#">
What am I doing wrong?
<cfcomponent>
<cffunction name="echoQuery" access="remote" returntype="query">
<cfquery name="result" datasource="#request.dsn#">
SELECT Firstname
FROM Loger
</cfquery>
<cfreturn result>
</cffunction>
</cfcomponent>
_________________________
<cfinvoke
webservice="method="echoQuery"
returnvariable="result">
</cfinvoke>
<cfdump var="#result#">