Dashboard > WSO2 Mashup Server > ... > ?stub > WebServiceError
  WSO2 Mashup Server Log in | Register   View a printable version of the current page.  
  WebServiceError
Added by Jonathan Marsh , last edited by Jonathan Marsh on Jun 14, 2007
Labels: 
(None)

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

Powered by a free Atlassian Confluence Open Source Project License granted to WSO2 Inc.. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators