public interface SOAPBody extends OMElement
B SOAPBody
object contains OMBodyBlock
objects, which have the content
for the SOAP body. B SOAPFault
object, which carries status and/or error
information, is an example of a OMBodyBlock
object.
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
Modifier and Type | Method and Description |
---|---|
SOAPFault |
addFault(Exception e)
Creates a new
SOAPFault object and adds it to this SOAPBody
object. |
void |
addFault(SOAPFault soapFault) |
SOAPFault |
getFault()
Returns the
SOAPFault object in this SOAPBody object. |
String |
getFirstElementLocalName()
Retrieves the local name of the first element in the body.
|
OMNamespace |
getFirstElementNS()
Retrieves the OMNamespace of the first element in the body.
|
boolean |
hasFault()
Indicates whether a
SOAPFault object exists in this SOAPBody
object. |
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
SOAPFault addFault(Exception e) throws OMException
SOAPFault
object and adds it to this SOAPBody
object.e
- SOAPFault
objectOMException
- if there is a SOAP errorOMException
boolean hasFault()
SOAPFault
object exists in this SOAPBody
object.true
if a SOAPFault
object exists in this
SOAPBody
object; false
otherwiseSOAPFault getFault()
SOAPFault
object in this SOAPBody
object.SOAPFault
object in this SOAPBody
objectvoid addFault(SOAPFault soapFault) throws OMException
soapFault
- OMException
OMNamespace getFirstElementNS()
null
if the element
has no namespace or the body is emptyString getFirstElementLocalName()
null
if the body is emptyCopyright © The Apache Software Foundation. All Rights Reserved.