Name
SoapException
Synopsis
This class is a generic exception for SOAP-related problems. The Common Language
Runtime can throw a SoapException
when it
encounters an incorrectly formatted SOAP message. Also, any error that occurs
inside a web service method is caught on the server and returned to the client as a SoapException
. ASP.NET will
then set the SoapException
property (which identifies the web service URL) and the Code
property
(using one of the fault code fields) automatically.
When you are creating your own web methods, you may need to provide more
information about exceptions. To do so, catch any server errors and
create and throw a corresponding SoapException
object. You can specify application-specific details about the error
by adding custom XML content to the Detail
property.
Public Class SoapException : Inherits SystemException ' Public Constructors Public Sub New(ByVal message As String, ByVal code As System.Xml.XmlQualifiedName) Public Sub New(ByVal message As String, ByVal code As System.Xml.XmlQualifiedName, ByVal innerException As Exception) Public Sub New(ByVal message As String, ByVal code As System.Xml.XmlQualifiedName, ByVal actor As String) Public Sub New(ByVal message As String, ByVal code As System.Xml.XmlQualifiedName, ByVal actor As String, ByVal innerException As Exception) Public Sub New(ByVal message As String, ByVal code As System.Xml.XmlQualifiedName, ByVal actor As String, ByVal detail As System.Xml.XmlNode) Public Sub New(ByVal message As String, ...
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.