Represents the exception that is thrown when an XML Web service method is called over SOAP and an exception occurs.
public ref class SoapException : SystemException
[System.Serializable] public class SoapException : SystemException
type SoapException = class inherit SystemException
Public Class SoapException Inherits SystemException
The SoapException can either be thrown by the common language runtime or by an XML Web service method. The common language runtime can throw a SoapException if a response to a request is not formatted correctly. XML Web service methods can generate a SoapException by simply throwing an exception within the XML Web service method. If the client accessed the method over SOAP, the exception is caught on the server and wrapped inside a new SoapException. The SoapException thrown has the following property values:
|Message||The Message property of the original exception.|
|Actor||The URL of the XML Web service method.|
An XML Web service method might throw a SoapException when clients call using SOAP. If an XML Web service throws the SoapException, other details can be added through the Actor, Code and Detail properties that cannot otherwise be set by an XML Web service method if another type of exception is thrown.
|ClientFaultCode ClientFaultCode ClientFaultCode ClientFaultCode||
Specifies a SOAP fault code that represents a client call that is not formatted correctly or does not contain the appropriate information.
|DetailElementName DetailElementName DetailElementName DetailElementName|
|MustUnderstandFaultCode MustUnderstandFaultCode MustUnderstandFaultCode MustUnderstandFaultCode||
A SOAP Fault Code that represents a SOAP element marked with the
|ServerFaultCode ServerFaultCode ServerFaultCode ServerFaultCode||
Specifies that a SOAP fault code that represents an error occurred during the processing of a client call on the server, where the problem is not due to the message contents.
|VersionMismatchFaultCode VersionMismatchFaultCode VersionMismatchFaultCode VersionMismatchFaultCode||
A SOAP fault code that represents an invalid namespace for a SOAP envelope was found during the processing of the SOAP message.
|Actor Actor Actor Actor||
Gets the piece of code that caused the exception.
|Code Code Code Code||
Gets the type of SOAP fault code.
|Data Data Data Data||
Gets a collection of key/value pairs that provide additional user-defined information about the exception.(Inherited from Exception)
|Detail Detail Detail Detail||
Gets an XmlNode that represents the application-specific error information details.
|HelpLink HelpLink HelpLink HelpLink||
Gets or sets a link to the help file associated with this exception.(Inherited from Exception)
|HResult HResult HResult HResult||
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.(Inherited from Exception)
|InnerException InnerException InnerException InnerException||
Gets the Exception instance that caused the current exception.(Inherited from Exception)
|Lang Lang Lang Lang||
Gets the human language associated with the exception.
|Message Message Message Message||
Gets a message that describes the current exception.(Inherited from Exception)
|Node Node Node Node||
Gets a URI that represents the piece of code that caused the exception.
|Role Role Role Role||
Gets a URI that represents the XML Web service's function in processing the SOAP message.
|Source Source Source Source||
Gets or sets the name of the application or the object that causes the error.(Inherited from Exception)
|StackTrace StackTrace StackTrace StackTrace||
Gets a string representation of the immediate frames on the call stack.(Inherited from Exception)
|SubCode SubCode SubCode SubCode||
Gets the optional error information contained in the
|TargetSite TargetSite TargetSite TargetSite||
Gets the method that throws the current exception.(Inherited from Exception)
|SerializeObjectState SerializeObjectState SerializeObjectState SerializeObjectState||
Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception.(Inherited from Exception)