> with '?wsdl' to generate a WSDL description ?
> I'd say it was a bug, rather than a feature if so...
Incorrect. Consider...
<cfcomponent>
<cfset this.name = "ThisRaymond">
<cffunction name="test" access="remote" returntype="string">
<cfreturn this.name>
</cffunction>
</cfcomponent>
When I call this cfc's test method via web services, it works just fine.
> Either, any good work arounds ? Our objects call a logger on
> init., and pass in '#this#'. The logger uses getMetaData() to
> write log messages.
> I'd really rather not go through all the objects and put
> <cfif> round all the loging statements...
Remember that when using a CFC as a WS, you are not using an object per se,
it's more of a service. The CFC gets created then destroyed once you are
done. So, for example, if my test method above we to say...
<cfif not isDefined("this.counter")>
<cfset this.counter = 0>
</cfif>
<cfset this.counter = this.counter + 1>
<cfreturn this.counter>
the value will _always_ be 1.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

