Save This Page
Home » xmlbeans-2.4.0-src » org.apache.xmlbeans.impl.soap » [javadoc | source]
org.apache.xmlbeans.impl.soap
public interface: SOAPBody [javadoc | source]

All Implemented Interfaces:
    SOAPElement

All Known Implementing Classes:
    SoapBodyXobj

An object that represents the contents of the SOAP body element in a SOAP message. A SOAP body element consists of XML data that affects the way the application-specific content is processed.

A SOAPBody object contains SOAPBodyElement objects, which have the content for the SOAP body. A SOAPFault object, which carries status and/or error information, is an example of a SOAPBodyElement object.

Method from org.apache.xmlbeans.impl.soap.SOAPBody Summary:
addBodyElement,   addDocument,   addFault,   addFault,   addFault,   getFault,   hasFault
Method from org.apache.xmlbeans.impl.soap.SOAPBody Detail:
 abstract public SOAPBodyElement addBodyElement(Name name) throws SOAPException
    Creates a new SOAPBodyElement object with the specified name and adds it to this SOAPBody object.
 abstract public SOAPBodyElement addDocument(Document document) throws SOAPException
    Adds the root node of the DOM Document to this SOAPBody object.

    Calling this method invalidates the document parameter. The client application should discard all references to this Document and its contents upon calling addDocument. The behavior of an application that continues to use such references is undefined.

 abstract public SOAPFault addFault() throws SOAPException
    Creates a new SOAPFault object and adds it to this SOAPBody object.
 abstract public SOAPFault addFault(Name faultCode,
    String faultString) throws SOAPException
    Creates a new SOAPFault object and adds it to this SOAPBody object. The new SOAPFault will have a faultcode element that is set to the faultCode parameter and a faultstring set to faultstring.
 abstract public SOAPFault addFault(Name faultCode,
    String faultString,
    Locale locale) throws SOAPException
    Creates a new SOAPFault object and adds it to this SOAPBody object. The new SOAPFault will have a faultcode element that is set to the faultCode parameter and a faultstring set to faultstring and localized to locale.
 abstract public SOAPFault getFault()
    Returns the SOAPFault object in this SOAPBody object.
 abstract public boolean hasFault()
    Indicates whether a SOAPFault object exists in this SOAPBody object.