The @WebFault annotation
The @WebFault annotation is defined by the javax.xml.ws.WebFault interface. It is placed on exceptions that are thrown by your SEI. The @WebFault annotation is used to map the Java exception to a wsdl:fault element. This information is used to marshall the exceptions into a representation that can be processed by both the service and its consumers.
The following table describes the properties of the @WebFault annotation.
Property |
Description |
---|---|
name |
Specifies the local name of the fault element. |
targetNamespace |
Specifies the namespace under which the fault element is defined. The default value is the target namespace of the SEI. |
faultName |
Specifies the full name of the Java class that implements the exception. |