I have a Web Service where each method ends with Return cXml to return the Xml to the client.
I can return unexpected content at any time by using SOAPException and that will be sent as an exception. By doing that, I can intercept the code in the middle of the process and simply end it. But, I would like to do that but not under an exception. I would like to be able to plug such logic anywhere in the code and return the content in the same format as I am returning cXml now.
I have a hook to TraceExtension. Can I use TraceExtension for that?