Home » axiom-1.2.8-src » org.apache.axiom.soap » [javadoc | source]
org.apache.axiom.soap
public interface: SOAPBody [javadoc | source]

All Implemented Interfaces:
    OMElement

All Known Implementing Classes:
    SOAPBodyImpl, SOAP12BodyImpl, SOAP11BodyImpl, SOAP11BodyImpl, SOAP12BodyImpl, SOAPBodyImpl

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 from org.apache.axiom.soap.SOAPBody Summary:
addFault,   addFault,   getFault,   getFirstElementLocalName,   getFirstElementNS,   hasFault
Method from org.apache.axiom.soap.SOAPBody Detail:
 public SOAPFault addFault(Exception e) throws OMException
    Creates a new SOAPFault object and adds it to this SOAPBody object.
 public  void addFault(SOAPFault soapFault) throws OMException
 public SOAPFault getFault()
    Returns the SOAPFault object in this SOAPBody object.
 public 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.
 public 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.
 public boolean hasFault()
    Indicates whether a SOAPFault object exists in this SOAPBody object.