Class SoapMessage


  • public class SoapMessage
    extends Object
    Modelling of a SOAP Message with convenient access to different headers.

    SoapMessage is a wrapper around an Envelope which provides mappers for certain header elements in Ws-Addressing and Ws-Discovery. When additional headers are required, the original Envelope can be accessed and modified through getOriginalEnvelope(). There are no duplicate checks for any headers covered through the mappers, care is required.

    See Also:
    WsAddressingHeader, WsDiscoveryHeader
    • Method Detail

      • getOriginalEnvelope

        public Envelope getOriginalEnvelope()
        Gets the original envelope.
        Returns:
        always returns the envelope as passed to the constructor. Information that is stored in convenience headers are not synchronized with this envelope.
      • getEnvelopeWithMappedHeaders

        public Envelope getEnvelopeWithMappedHeaders()
        Gets the envelope that includes mapped headers.
        Returns:
        new envelope with mapped convenience headers as well as headers and the body reference from getOriginalEnvelope().
      • isFault

        public boolean isFault()
        Checks if a SOAP message is a fault or not.
        Returns:
        true if it is a fault, false otherwise.