Package org.apache.axiom.soap
Interface SOAPEnvelope
-
- All Superinterfaces:
OMContainer,OMElement,OMNode,OMSerializable
public interface SOAPEnvelope extends OMElement
Interface SOAPEnvelope
-
-
Field Summary
-
Fields inherited from interface org.apache.axiom.om.OMNode
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SOAPBodygetBody()Returns theSOAPBodyobject associated with thisSOAPEnvelopeobject.SOAPHeadergetHeader()Returns theSOAPHeaderobject for thisSOAPEnvelopeobject.StringgetSOAPBodyFirstElementLocalName()Retrieves the local name of the first element in the body.OMNamespacegetSOAPBodyFirstElementNS()Retrieves the OMNamespace of the first element in the body.SOAPVersiongetVersion()booleanhasFault()Returns true if there is a SOAPFault in the body.-
Methods inherited from interface org.apache.axiom.om.OMContainer
addChild, buildNext, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching
-
Methods inherited from interface org.apache.axiom.om.OMElement
addAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getLocalName, getNamespace, getQName, getText, getTextAsQName, getXMLStreamReader, removeAttribute, resolveQName, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setBuilder, setFirstChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsume
-
Methods inherited from interface org.apache.axiom.om.OMNode
buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore
-
Methods inherited from interface org.apache.axiom.om.OMSerializable
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume
-
-
-
-
Method Detail
-
getHeader
SOAPHeader getHeader() throws OMException
Returns theSOAPHeaderobject for thisSOAPEnvelopeobject.This SOAPHeader will just be a container for all the headers in the
OMMessage- Returns:
- the
SOAPHeaderobject ornullif there is none - Throws:
OMException- if there is a problem obtaining theSOAPHeaderobject
-
getBody
SOAPBody getBody() throws OMException
Returns theSOAPBodyobject associated with thisSOAPEnvelopeobject.This SOAPBody will just be a container for all the BodyElements in the
OMMessage- Returns:
- the
SOAPBodyobject for thisSOAPEnvelopeobject ornullif there is none - Throws:
OMException- if there is a problem obtaining theSOAPBodyobject
-
getVersion
SOAPVersion getVersion()
-
hasFault
boolean hasFault()
Returns true if there is a SOAPFault in the body. The implementation may choose to get this information by building the OM tree or use parser provided information.- Returns:
- true if SOAPFault in the body
-
getSOAPBodyFirstElementNS
OMNamespace getSOAPBodyFirstElementNS()
Retrieves the OMNamespace of the first element in the body. The implementation might build the OMElement or it may obtain this information from the builder/parser without building the OMElement. Use this method in the situations where you need to know the OMNamespace, but don't necessarily need the OMElement.- Returns:
- OMNamespace of first element in the body or null
-
getSOAPBodyFirstElementLocalName
String getSOAPBodyFirstElementLocalName()
Retrieves the local name of the first element in the body. The implementation might build the OMElement or it may obtain this information from the builder/parser without building the OMElement. Use this method in the situations where you need to know the name, but don't necessarily need the OMElement.- Returns:
- local name of first element in the body or null
-
-