L
ltnats
Hi there,
I have been developing a webservices data access layer for a
project I am working on. I have researched exception handling in
webservices and found that global handling of unhandled exceptions can
be done using a SOAP Extension. I have implemented one of these
successfully. However if the webservice does not get invoked with a
client proxy; (eg using a HTTP Get request like when you press the
Invoke button in IE after browsing to the service.asmx file) the SOAP
Extension does not get executed and as a result neither does my global
exception handler. Information about the exception is returned to the
browser in text form, showing the error and method/line number it
happened on. I want to prevent this from happening and log the
exception details and send back a SOAP Exception as I do in my global
exception handler. How can I do this for HTTP Get requests on my
webservices?
Thank you for your time,
Scott.
I have been developing a webservices data access layer for a
project I am working on. I have researched exception handling in
webservices and found that global handling of unhandled exceptions can
be done using a SOAP Extension. I have implemented one of these
successfully. However if the webservice does not get invoked with a
client proxy; (eg using a HTTP Get request like when you press the
Invoke button in IE after browsing to the service.asmx file) the SOAP
Extension does not get executed and as a result neither does my global
exception handler. Information about the exception is returned to the
browser in text form, showing the error and method/line number it
happened on. I want to prevent this from happening and log the
exception details and send back a SOAP Exception as I do in my global
exception handler. How can I do this for HTTP Get requests on my
webservices?
Thank you for your time,
Scott.