public abstract class AbstractSoapMessage extends AbstractMimeMessage implements SoapMessage
SoapMessage
interface. Contains convenient default implementations.Constructor and Description |
---|
AbstractSoapMessage() |
Modifier and Type | Method and Description |
---|---|
QName |
getFaultCode()
Returns
getSoapBody().getFault().getFaultCode() . |
String |
getFaultReason()
Returns
getSoapBody().getFault().getFaultStringOrReason() . |
Result |
getPayloadResult()
Returns
getSoapBody().getPayloadResult() . |
Source |
getPayloadSource()
Returns
getSoapBody().getPayloadSource() . |
SoapBody |
getSoapBody()
Returns
getEnvelope().getBody() . |
SoapHeader |
getSoapHeader()
Returns
getEnvelope().getHeader() . |
SoapVersion |
getVersion()
Returns the SOAP version of this message.
|
boolean |
hasFault()
Returns
getSoapBody().hasFault() . |
addAttachment, addAttachment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocument, getEnvelope, getSoapAction, setDocument, setSoapAction
addAttachment, addAttachment, addAttachment, convertToXopPackage, getAttachment, getAttachments, isXopPackage
writeTo
public final SoapBody getSoapBody()
getEnvelope().getBody()
.getSoapBody
in interface SoapMessage
SoapEnvelope.getBody()
public final SoapHeader getSoapHeader()
getEnvelope().getHeader()
.getSoapHeader
in interface SoapMessage
SoapEnvelope.getHeader()
public final Source getPayloadSource()
getSoapBody().getPayloadSource()
.getPayloadSource
in interface WebServiceMessage
public final Result getPayloadResult()
getSoapBody().getPayloadResult()
.getPayloadResult
in interface WebServiceMessage
public final boolean hasFault()
getSoapBody().hasFault()
.hasFault
in interface FaultAwareWebServiceMessage
true
if the message has a fault.FaultAwareWebServiceMessage.getFaultReason()
public final QName getFaultCode()
getSoapBody().getFault().getFaultCode()
.getFaultCode
in interface FaultAwareWebServiceMessage
public final String getFaultReason()
getSoapBody().getFault().getFaultStringOrReason()
.getFaultReason
in interface FaultAwareWebServiceMessage
null
when no fault is present.FaultAwareWebServiceMessage.hasFault()
public SoapVersion getVersion()
SoapMessage
getVersion
in interface SoapMessage
SoapVersion.SOAP_11
,
SoapVersion.SOAP_12
Copyright © 2020 Pivotal Software. All rights reserved.