2.2.2.17 ServerFault

ServerFault is a Class. The Library name of the Class is "mscorlib". It contains fault detail information that is used as part of SOAP fault.

 namespace System.Runtime.Serialization.Formatters
 {
   class ServerFault
   {
     String              exceptionType;
     String              message;
     String              stackTrace;
     System.Exception    exception;
   }
 }
  
  • exceptionType: A String that contains the name of the Remoting Type of the Exception. The format of the string is as specified in section 2.2.1.2.

  • message: A String that contains a human-readable text message that describes the fault.

  • stackTrace: A String that contains the StackTrace field of the Exception.

  • exception: A Data Value that is assignable to System.Exception. The exception object is serialized as specified in [SOAP1.1] section 5. The structure of the System.Exception Class is specified in section 2.2.2.7.

If the client is an implementation of the .NET Remoting Protocol, then the Exception field MUST have a valid value and the other elements MUST contain a serialized Null Object. Otherwise, the Exception field MUST contain a Null Object and other elements MUST contain a valid value.

The client is considered to be an implementation of the .NET Remoting Protocol if one of the following is true:

  • The transport is TCP.

  • The transport is HTTP and the User-Agent header contains "MS .Net Remoting" (case sensitive).