Class SoapMessage
-
- All Implemented Interfaces:
public class SoapMessageModelling 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.
-
-
Method Summary
Modifier and Type Method Description WsAddressingHeadergetWsAddressingHeader()WsDiscoveryHeadergetWsDiscoveryHeader()EnvelopegetOriginalEnvelope()Gets the original envelope. EnvelopegetEnvelopeWithMappedHeaders()Gets the envelope that includes mapped headers. booleanisFault()Checks if a SOAP message is a fault or not. StringtoString()-
-
Method Detail
-
getWsAddressingHeader
WsAddressingHeader getWsAddressingHeader()
-
getWsDiscoveryHeader
WsDiscoveryHeader getWsDiscoveryHeader()
-
getOriginalEnvelope
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
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
boolean isFault()
Checks if a SOAP message is a fault or not.
- Returns:
true if it is a fault, false otherwise.
-
-
-
-