Interface FaultAwareWebServiceMessage
- All Superinterfaces:
WebServiceMessage
- All Known Subinterfaces:
SoapMessage
- All Known Implementing Classes:
AbstractSoapMessage, AxiomSoapMessage, SaajSoapMessage
Sub-interface of
WebServiceMessage that can contain special Fault messages.
Fault messages (such as SoapFault SOAP Faults)
often require different processing rules.- Since:
- 1.0.0
- See Also:
-
Method Summary
Methods inherited from interface WebServiceMessage
getPayloadResult, getPayloadSource, writeTo
-
Method Details
-
hasFault
boolean hasFault()Does this message have a fault?- Returns:
trueif the message has a fault.- See Also:
-
getFaultCode
@Nullable QName getFaultCode()Returns the fault code, if any. -
getFaultReason
@Nullable String getFaultReason()Returns the fault reason message.- Returns:
- the fault reason message, if any; returns
nullwhen no fault is present. - See Also:
-