Class SoapMessage

java.lang.Object
org.somda.sdc.dpws.soap.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:
  • Method Details

    • getWsAddressingHeader

      public WsAddressingHeader getWsAddressingHeader()
    • getWsDiscoveryHeader

      public WsDiscoveryHeader getWsDiscoveryHeader()
    • getOriginalEnvelope

      public org.somda.sdc.dpws.soap.model.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 org.somda.sdc.dpws.soap.model.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.
    • toString

      public String toString()
      Overrides:
      toString in class Object