org.apache.axis2.soap
Interface SOAPBody
- All Superinterfaces:
- OMContainer, OMElement, OMNode
- All Known Implementing Classes:
- SOAPBodyImpl
- public interface SOAPBody
- extends OMElement
An object that represents the contents of the SOAP body
element in a SOAP message. B SOAP body element consists of XML data
that affects the way the application-specific content is processed.
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.
Method Summary |
SOAPFault |
addFault(java.lang.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. |
boolean |
hasFault()
Indicates whether a SOAPFault object exists in
this SOAPBody object. |
Methods inherited from interface org.apache.axis2.om.OMElement |
addAttribute, addAttribute, addChild, declareNamespace, declareNamespace, findNamespace, getAllDeclaredNamespaces, getAttribute, getAttributes, getBuilder, getChildElements, getChildren, getChildrenWithName, getFirstAttribute, getFirstChild, getFirstChildWithName, getFirstElement, getLocalName, getNamespace, getQName, getText, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeAttribute, setBuilder, setFirstChild, setLocalName, setNamespace, setText |
Methods inherited from interface org.apache.axis2.om.OMNode |
build, detach, discard, getNextSibling, getParent, getPreviousSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serializeWithCache |
addFault
public SOAPFault addFault(java.lang.Exception e)
throws OMException
- Creates a new
SOAPFault
object and adds it to
this SOAPBody
object.
- Parameters:
e
-
- Returns:
- the new
SOAPFault
object
- Throws:
OMException
- if there is a SOAP error
OMException
hasFault
public boolean hasFault()
- Indicates whether a
SOAPFault
object exists in
this SOAPBody
object.
- Returns:
true
if a SOAPFault
object exists in
this SOAPBody
object; false
otherwise
getFault
public SOAPFault getFault()
- Returns the
SOAPFault
object in this SOAPBody
object.
- Returns:
- the
SOAPFault
object in this SOAPBody
object
addFault
public void addFault(SOAPFault soapFault)
throws OMException
- Parameters:
soapFault
-
- Throws:
OMException