Package org.somda.sdc.dpws.soap.factory
Class SoapFaultFactory
java.lang.Object
org.somda.sdc.dpws.soap.factory.SoapFaultFactory
Factory to create SOAP fault structures.
- Parameter names are in accordance with the SOAP fault specification. Other parameter names are explained.
- The implied reason text's language is 'en'.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateFault(String actionUri, QName code, QName subcode) Creates a fault SOAP message based on an action URI, code and subcode.createFault(String actionUri, QName code, QName subcode, String reasonText) Creates a fault SOAP message based on an action URI, code, subcode and reason text.Creates a fault SOAP message based on an action URI, code, subcode, reason text and arbitrary details.createReceiverFault(String reasonText) Creates a soap:Receiver fault with a given text.createSenderFault(String reasonText) Creates a soap:Sender fault with a given text.
-
Method Details
-
createFault
public SoapMessage createFault(String actionUri, QName code, QName subcode, String reasonText, @Nullable Object detail) Creates a fault SOAP message based on an action URI, code, subcode, reason text and arbitrary details.- Parameters:
actionUri- wsa:Action to put into the resultingSoapMessageheader.code- the SOAP fault code.subcode- the SOAP fault subcode.reasonText- the fault reason.detail- the fault details.- Returns:
- a
SoapMessagecontaining the fault.
-
createFault
Creates a fault SOAP message based on an action URI, code, subcode and reason text.- Parameters:
actionUri- wsa:Action to put into the resultingSoapMessageheader.code- the SOAP fault code.subcode- the SOAP fault subcode.reasonText- the fault reason.- Returns:
- a
SoapMessagecontaining the fault.
-
createFault
Creates a fault SOAP message based on an action URI, code and subcode.- Parameters:
actionUri- wsa:Action to put into the resultingSoapMessageheader.code- the SOAP fault code.subcode- the SOAP fault subcode.- Returns:
- a
SoapMessagecontaining the fault.
-
createReceiverFault
Creates a soap:Receiver fault with a given text.- Parameters:
reasonText- the fault reason.- Returns:
- a
SoapMessagecontaining the fault.
-
createSenderFault
Creates a soap:Sender fault with a given text.- Parameters:
reasonText- the fault reason.- Returns:
- a
SoapMessagecontaining the fault.
-