Re: exception responses to ASP.Net soap services



"Mark" <mmodrall@xxxxxxxxxxxxx> wrote in message news:982724F7-C98F-46E5-9963-FF7728907745@xxxxxxxxxxxxxxxx
Hi...

How does one get an exception in a SOAP method call to get returned as a
SOAP error packet? I found several articles online that seemed to imply
wrapping it in a SoapException should result in proper handling but that
doesn't appear to be the case.

Throwing a SoapException from a web service method just leads to an http
status of 500 and no output at all.

Is there support in the framework for returning a soap exception packet, or
does one have to roll one's own?

Any uncaught exception is translated into a SOAP Fault. That should always happen.

Please create and post a small piece of code that reproduces the situation where an exception is not returned as a SOAP Fault?

--
John Saunders | MVP - Connected System Developer

.



Relevant Pages

  • Re: SoapExtension doesnt work with HttpGet
    ... The SoapExtension capability exposes the parsing and formatting of SOAP ... HttpGet, then the extension never gets activated. ... will get invoked in the case of an unhandled application exception. ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Global Exception Handling
    ... Exceptions thrown by an XML Web service method created using ASP.NET are ... sent back to the client in the form of a SOAP fault. ... XML element contains details such as the exception string and the ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: SoapExtension doesnt work with HttpGet
    ... HttpGet too saying it will used 80% of the time rather than SOAP!! ... > Summary of Http Handlers and Http Modules in ASP.NET ... > will get invoked in the case of an unhandled application exception. ...
    (microsoft.public.dotnet.framework.webservices)
  • exception responses to ASP.Net soap services
    ... How does one get an exception in a SOAP method call to get returned as a ... SOAP error packet? ... Is there support in the framework for returning a soap exception packet, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Deserialization of Soap Fault into custom exception class: possible?
    ... My webservice throws an exception, which is translated into a soap ... Fault in the soap message body. ... as a SoapException. ...
    (microsoft.public.dotnet.framework.webservices)

Loading