Taking a look at a different part of this issue now . can anyone see what's
wrong with this code?  Why this would work as a web service on one server
but not another?



<cfcomponent>

<!--- Function for internal use:  get anniversaries this week--->

<cffunction name="getthisweek" access="public" returntype="query" hint="This
returns the anniversaries happening this week as a query ">

<cfquery name="getthisweek" datasource="#application.DSN#">

(Valid SQL Query cut and pasted from Query Builder)

</cfquery>

<cfreturn getthisweek>

</cffunction>



<!--- Function for web service:  get anniversaries this week--->

<cffunction name="getthisweeksevents" access="remote" returntype="query"
hint="This returns the anniversaries happening this week as a query for a
web service ">

<cfquery name="getthisweekevents" datasource="#request.DSN#">

(Same valid query as used above)

</cfquery>

<cfreturn getthisweekevents>

</cffunction>

</cfcomponent>



There isn't any registration in the CF Adminitrator or anything is there?
The method getthisweek, the first one, works fine internally on the web
site.  The second method, getthisweeksevents  identical except for its names
and the access type doesn't work.   Anyone able to see why?

Cheers

Mike Kear

Windsor, NSW, Australia

AFP Webworks

http://afpwebworks.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to