If you are writing CFC methods that are exposed as Web Services, then you may want to be able to determine exactly how your method is being invoked (as a CFC or as a Web Service). I’d been struggling with this one for a while, and today Tom Jordahl came to my rescue with the following function. You can drop it in any CFC and call it as needed, it will return TRUE if responding to a SOAP request and FALSE if not.
Leave a Reply