Handling Exception in Web Services when using HttpGet protocol.

S

Sherif ElMetainy

Hello

I have an application with several web services. I want to be able to log
all exception are thrown by any web method. Since the web services handler
catches and swallows all exceptions, and send them to the client in a soap
message, Global.asax's Application_Error method can't be used. So I made a
SoapExtension class that override ProcessMessage method. That solution
worked for HttpSoap protocol.
The problem is that my application web.config also enables the HttpGet
protoco because some clients needs it. When a client calls my web services
using HttpGet, the soap extensions are not invoked, and also Context.Error
is null. I can only know that an error occured in Application_EndRequest
method by checking that Response.StatusCode is 500. But I don't know how do
I get information about the exception itself.

Any help would be appreciated, thanks in advance.

Best regards,
Sherif
 
S

Sherif ElMetainy

I posted in the wrong newsgroup, sorry for the inconvenience. Still any help
would be appreciated. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top