public interface SOAPEnvelope extends OMElement
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
Modifier and Type | Method and Description |
---|---|
SOAPBody |
getBody()
Returns the
SOAPBody object associated with this SOAPEnvelope
object. |
SOAPHeader |
getHeader()
Returns the
SOAPHeader object for this envelope. |
SOAPHeader |
getOrCreateHeader()
Returns the existing
SOAPHeader object for this envelope or creates a new one if
there is none. |
String |
getSOAPBodyFirstElementLocalName()
Retrieves the local name of the first element in the body.
|
OMNamespace |
getSOAPBodyFirstElementNS()
Retrieves the OMNamespace of the first element in the body.
|
SOAPVersion |
getVersion() |
boolean |
hasFault()
Returns true if there is a SOAPFault in the body.
|
addAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getNamespaceContext, getNamespacesInScope, getText, getTextAsQName, getTextAsStream, removeAttribute, resolveQName, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setLineNumber, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsume, undeclarePrefix, writeTextTo
buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore
addChild, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDescendants, getFirstChildWithName, getFirstOMChild, getSAXResult, getSAXSource, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeChildren
build, close, isComplete, serialize, serialize, serializeAndConsume
clone, getOMFactory
getLocalName, getNamespace, getNamespaceURI, getPrefix, getQName, hasName, setLocalName, setNamespace
SOAPHeader getHeader()
SOAPHeader
object for this envelope. This method takes advantage of the
fact that the SOAPHeader
must be the first child element (if it exists) to avoid
building the SOAPBody
if it is still incomplete.SOAPHeader
object or null
if there is noneSOAPHeader getOrCreateHeader()
SOAPHeader
object for this envelope or creates a new one if
there is none. Similarly to getHeader()
, this method avoids building the
SOAPBody
.SOAPHeader
object for this envelopeSOAPBody getBody() throws OMException
SOAPBody
object associated with this SOAPEnvelope
object. This SOAPBody will just be a container for all the BodyElements in the
OMMessage
SOAPBody
object for this SOAPEnvelope
object or
null
if there is noneOMException
- if there is a problem obtaining the SOAPBody
objectSOAPVersion getVersion()
boolean hasFault()
OMNamespace getSOAPBodyFirstElementNS()
null
if the element
has no namespace or the body is emptyString getSOAPBodyFirstElementLocalName()
Copyright © The Apache Software Foundation. All Rights Reserved.