Last post Aug 20, 2013 11:29 AM by l.laxmikant
Aug 16, 2013 07:38 AM|PraveenM|LINK
I am building an ASMX web service, which interacts with a application on the host and send the response back.
Here I need to have customized response which also includes a log tag, which will be having all the debug information during the processing of a perticular web method. This will help us in debugging issues with out getting into the details of the web service
Can some one please point me to right direction or a good solution.
Thanks in advance.
Aug 16, 2013 11:02 AM|kushalrdalal|LINK
The one way of writing log is you can have an error class which you can include in response.
If everything is fine then just add success. If there is an error then add the exception to the error.
You can create log file and write everything to the log file.
Please check the following links-
Aug 20, 2013 11:29 AM|l.laxmikant|LINK
You can use MessageContracts to customize your requrest and response. You can return the log conditionally or unconditionally attaching with response.
see how to implement message contracts in wcf