Exception thrown by webservice and caught by ASP.NET application

Discussion in 'ASP .Net' started by Mark, Apr 4, 2006.

  1. Mark

    Mark Guest

    We have an internal web service that intentionally allows raw Exceptions to
    be thrown to the clients that consume it. This web service is consumed by
    internal ASP.NET applications. When the exception is caught by an ASP.NET
    application, the amount of detail in the SOAP exception is limited. There
    is no inner exception. However, if the exception is interegated by the
    webservice before its thrown, it contains tons of information, including a
    relevant stack trace. Is there a way for the client of the web service to
    see this same level of exception detail?

    Thanks in advance.

    Mark
     
    Mark, Apr 4, 2006
    #1
    1. Advertisements

  2. you have to build a SOAP extension to add the details into the XML:

    http://www.codeproject.com/soap/ExceptionalSoapExtension.asp

    note the security concerns in that article of doing this, and possible
    cross-platform issues (unknown)
     
    Craig Deelsnyder, Apr 4, 2006
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.