I’m using Lucee 18.104.22.168-RC on Windows 10
I’m trying to log a call to my wsdl, i add to Application.cfc this:
Void function onCFCRequest(
required String cfcName,
required String method,
required Struct args
writeLog( text="onCFCRequest() call", file = this.name );
but onCFCRequest() event is never fired.
I make a call from a ACF:
<cfset uri = "http://LUCEE_HOST:8080/services/shipments.cfc?wsdl">
<cfset ws = CreateObject( "webservice", uri )>
I can use onRequestStart() …
but, why onCFCRequest() is never fired?
where am I doing wrong?
does it fire when you call an actual method, as opposed to just the WSDL?
Thanks for reply, Zac.
does it fire when you call an actual
method, as opposed to just the WSDL?
With onRequestStart(), instead, I can see both:
- when I call the CreateObject() and
- when I call the method()
actually it’s working for me for direct method requests, like /service.cfc?method=login, but not for the WSDL request, using the latest SNAPSHOT
Lucee 22.214.171.124 on Windows 10
I get some test:
- ws = CreateObejct( “webservice”, ‘http://host/test.cfc’ ); <- NOT fire
- ws.method() <- NOT fire
http://host/test.cfc <- NOT fire
http://host/test.cfc?wsdl <- NOT fire
- 5 http://host/test.cfc?metthod=eco <- FIRE
Never fired except for direct call in url, with method in query string.
This is a bug?