By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,333 Members | 1,843 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,333 IT Pros & Developers. It's quick & easy.

Handling Exception in Web Services when using HttpGet protocol.

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I posted in the wrong newsgroup, sorry for the inconvenience. Still any help
would be appreciated. Thanks.

"Sherif ElMetainy" <el******@thewayout.net> wrote in message
news:el**************@tk2msftngp13.phx.gbl...
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

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.