Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SoapFaultSubCode Class

Represents the contents of the optional Subcode element of a SOAP fault when SOAP version 1.2 is used to communicate between a client and an XML Web service.

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in system.web.services.dll)
[SerializableAttribute] 
public class SoapFaultSubCode
/** @attribute SerializableAttribute() */ 
public class SoapFaultSubCode
SerializableAttribute 
public class SoapFaultSubCode
Not applicable.

A SOAP 1.2 fault contains a Code element and among other things an optional Subcode element. The Code element specifies the type of error that occurred using a limited number of pre-defined error codes specified by the SOAP protocol, whereas the Subcode element allows the sender of the SOAP fault to provide an application specific error code. This class represents the contents of the Subcode element.

XML Web services return a SOAP fault by throwing a SoapException and.NET clients receive a SOAP fault by catching a SoapException. A SoapException has the Code property representing the Code element and the Subcode property representing the Subcode element.

System.Object
  System.Web.Services.Protocols.SoapFaultSubCode
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

.NET Compact Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.