Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SoapException Constructor (String, XmlQualifiedName, String, String, XmlNode, SoapFaultSubCode, Exception)

Initializes a new instance of the SoapException class with the specified exception message, exception code, URI that identifies the piece of code that caused the exception, application-specific exception information, and reference to the root cause of the exception.

Namespace:  System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

public SoapException(
	string message,
	XmlQualifiedName code,
	string actor,
	string role,
	XmlNode detail,
	SoapFaultSubCode subCode,
	Exception innerException


Type: System.String

A message that identifies the reason the exception occurred. This parameter sets the Message property.

Type: System.Xml.XmlQualifiedName

An XmlQualifiedName that specifies the type of error that occurred. This parameter sets the Code property.

Type: System.String

A URI that identifies the piece of code that caused the exception. Typically, this is a URL to an XML Web service method. This parameter sets the Actor property.

Type: System.String

A URI that represents the XML Web service's function in processing the SOAP message. This parameter sets the Role property.

Type: System.Xml.XmlNode

An XmlNode that contains application specific exception information. This parameter sets the Detail property.

Type: System.Web.Services.Protocols.SoapFaultSubCode

An optional subcode for the SOAP fault. This parameter sets the SubCode property.

Type: System.Exception

An exception that is the root cause of the exception. This parameter sets the InnerException property.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft