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, writeTextTobuildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBeforeaddChild, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDescendants, getFirstChildWithName, getFirstOMChild, getSAXResult, getSAXSource, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeChildrenbuild, close, isComplete, serialize, serialize, serializeAndConsumeclone, getOMFactorygetLocalName, getNamespace, getNamespaceURI, getPrefix, getQName, hasName, setLocalName, setNamespaceSOAPFault addFault(Exception e) throws OMException
SOAPFault object and adds it to this SOAPBody
object.e - SOAPFault objectOMException - if there is a SOAP errorOMExceptionboolean 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 - OMExceptionOMNamespace 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.