org.apache.axiom.soap
Interface SOAPBody
- All Superinterfaces:
- OMContainer, OMElement, OMInformationItem, OMNamedInformationItem, OMNode, OMSerializable
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.
| 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, getNamespaceContext, getNamespacesInScope, getText, getTextAsQName, getTextAsStream, removeAttribute, resolveQName, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setBuilder, setLineNumber, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsume, undeclarePrefix, writeTextTo |
| Methods inherited from interface org.apache.axiom.om.OMContainer |
addChild, buildNext, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDescendants, getFirstChildWithName, getFirstOMChild, getSAXSource, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching |
addFault
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
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
SOAPFault getFault()
- Returns the
SOAPFault object in this SOAPBody object.
- Returns:
- the
SOAPFault object in this SOAPBody object
addFault
void addFault(SOAPFault soapFault)
throws OMException
- Parameters:
soapFault -
- Throws:
OMException
getFirstElementNS
OMNamespace getFirstElementNS()
- 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
getFirstElementLocalName
java.lang.String getFirstElementLocalName()
- 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
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.