In this chapter, we will cover:
Handling server-side exceptions by returning an exception's message as a SOAP fault string
Mapping exception class names to SOAP faults
Annotating exception classes with the
Writing your own exception resolvers in Spring-WS
The server-side exceptions generated while processing a Web-Service are transmitted as SOAP faults. The
SOAP <Fault> element is used to carry error and status information within a SOAP message.
The following code represents a general structure of the SOAP fault element in a SOAP message:
<SOAP-ENV:Fault> <faultcode xsi:type="xsd:string">SOAFP-ENV:Client</faultcode> <faultstring xsi:type="xsd:string"> A human readable summary of the ...