Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coldfusion Web Services - Can't invoke

Status
Not open for further replies.

wrighterb

Programmer
Feb 20, 2007
80
US
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#">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top