Class SOAPSampleSet


  • public final class SOAPSampleSet
    extends org.apache.axiom.testing.multiton.Multiton
    A set of two equivalent SOAP messages, one for SOAP 1.1 and one for SOAP 1.2.
    • Field Detail

      • NO_HEADER

        public static final SOAPSampleSet NO_HEADER
        A simple SOAP message without header.
      • WSA

        public static final SOAPSampleSet WSA
        A SOAP request with WS-Addressing headers.
      • COMMENT_IN_PROLOG

        public static final SOAPSampleSet COMMENT_IN_PROLOG
        A simple SOAP request with a comment in the XML prolog.
      • SIMPLE_FAULT

        public static final SOAPSampleSet SIMPLE_FAULT
        A SOAP response with a simple SOAP fault containing a fault code (without subcode), reason (English only) and detail.
      • CUSTOM_ROLE_REQUEST

        public static final SOAPSampleSet CUSTOM_ROLE_REQUEST
        A SOAP request having a header block with a custom role.
      • MUST_UNDERSTAND

        public static final SOAPSampleSet MUST_UNDERSTAND
        A SOAP request with a single mustUnderstand header.
      • FAULT_DETAIL_DEFAULT_NAMESPACE

        public static final SOAPSampleSet FAULT_DETAIL_DEFAULT_NAMESPACE
        A SOAP fault response with a detail entry that uses a default namespace.
      • HEADERS

        public static final SOAPSampleSet HEADERS
        A SOAP request with header blocks with varying characteristics.
      • XSI_TYPE

        public static final SOAPSampleSet XSI_TYPE
        A SOAP request with an xsi:type attribute in the payload and a corresponding namespace declaration on the SOAP envelope (rather than in the payload).
    • Method Detail

      • getMessage

        public SOAPSample getMessage​(SOAPSpec spec)
        Get the test message for the given SOAP version.
        Parameters:
        spec - the SOAP specification version
        Returns:
        the test message