Package org.somda.sdc.dpws.soap
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:
WsAddressingHeader,WsDiscoveryHeader
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvelopegetEnvelopeWithMappedHeaders()Gets the envelope that includes mapped headers.EnvelopegetOriginalEnvelope()Gets the original envelope.WsAddressingHeadergetWsAddressingHeader()WsDiscoveryHeadergetWsDiscoveryHeader()booleanisFault()Checks if a SOAP message is a fault or not.StringtoString()
-
-
-
Method Detail
-
getWsAddressingHeader
public WsAddressingHeader getWsAddressingHeader()
-
getWsDiscoveryHeader
public WsDiscoveryHeader getWsDiscoveryHeader()
-
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.
-
-