Class SoapFaultFactory

java.lang.Object
org.somda.sdc.dpws.soap.factory.SoapFaultFactory

public class SoapFaultFactory extends Object
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 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 resulting SoapMessage header.
      code - the SOAP fault code.
      subcode - the SOAP fault subcode.
      reasonText - the fault reason.
      detail - the fault details.
      Returns:
      a SoapMessage containing the fault.
    • createFault

      public SoapMessage createFault(String actionUri, QName code, QName subcode, String reasonText)
      Creates a fault SOAP message based on an action URI, code, subcode and reason text.
      Parameters:
      actionUri - wsa:Action to put into the resulting SoapMessage header.
      code - the SOAP fault code.
      subcode - the SOAP fault subcode.
      reasonText - the fault reason.
      Returns:
      a SoapMessage containing the fault.
    • createFault

      public SoapMessage createFault(String actionUri, QName code, QName subcode)
      Creates a fault SOAP message based on an action URI, code and subcode.
      Parameters:
      actionUri - wsa:Action to put into the resulting SoapMessage header.
      code - the SOAP fault code.
      subcode - the SOAP fault subcode.
      Returns:
      a SoapMessage containing the fault.
    • createReceiverFault

      public SoapMessage createReceiverFault(String reasonText)
      Creates a soap:Receiver fault with a given text.
      Parameters:
      reasonText - the fault reason.
      Returns:
      a SoapMessage containing the fault.
    • createSenderFault

      public SoapMessage createSenderFault(String reasonText)
      Creates a soap:Sender fault with a given text.
      Parameters:
      reasonText - the fault reason.
      Returns:
      a SoapMessage containing the fault.