I have a Web Service with a few methods. Each of them returns a XML string for the response.
Before each method is accessed, I have some top level code which is executed. In that code, in a very unique situation, I need to return a custom XML response and send that as is without any process to continue, thus the Web Service method called would not even be executed.
In my top level code, the one which is executed before any Web Service method, I have access to the SOAP envelope. I have a oTraceExtension available at that location and can have access to the SOAP envelope.
What kind of mechanism can I use to return a XML response directly, even before the method get accessed?