1.0 Introduction
The WebServiceError object encapsulates information about the cause of a failed Web service invocation.
2.0 API documentation
| member |
description |
supported in version |
| code |
A string (often a QName) representing the error code. |
0.1 |
| reason |
A brief textual description of the error. |
0.1 |
| details |
A full description (usually XML) of the error. |
0.1 |
For SOAP 1.2 the properties are mapped to a SOAP fault as follows:
| error.code |
S:Fault/s:Code/S:Value[0] (string) |
| error.reason |
S:Fault/s:Reason/s:Text (string) |
| error.detail |
S:Fault/s:Detail (XML serialized as a string) |
For SOAP 1.1 the properties are mapped to a SOAP fault as follows:
| error.code |
S:Fault/faultcode (string) |
| error.reason |
S:Fault/faultstring (string) |
| error.detail |
S:Fault/detail (XML serialized as a string) |
For either SOAP version, if the response doesn't contain a SOAP Envelope, the error property is set as follows:
| error.code |
"HTTPxxx" where xxx is the HTTP status code |
| error.reason |
"No SOAP Body." |
| error.detail |
HTTP status text |
References