|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
SOAPFault
Method Summary | |
SOAPBodyElement |
addBodyElement(Name name)
Creates a new SOAPBodyElement object with the
specified name and adds it to this SOAPBody object. |
SOAPFault |
addFault()
Creates a new SOAPFault object and adds it to
this SOAPBody object. |
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 javax.xml.soap.SOAPElement |
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, getAllAttributes, getAttributeValue, getChildElements, getChildElements, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, removeAttribute, removeNamespaceDeclaration, setEncodingStyle |
Methods inherited from interface javax.xml.soap.Node |
detachNode, getParentElement, getValue, recycleNode, setParentElement |
Method Detail |
public SOAPFault addFault() throws SOAPException
SOAPFault
object and adds it to
this SOAPBody
object.
SOAPFault
object
SOAPException
- if there is a SOAP errorpublic boolean hasFault()
SOAPFault
object exists in
this SOAPBody
object.
true
if a SOAPFault
object exists in
this SOAPBody
object; false
otherwisepublic SOAPFault getFault()
SOAPFault
object in this SOAPBody
object.
SOAPFault
object in this SOAPBody
objectpublic SOAPBodyElement addBodyElement(Name name) throws SOAPException
SOAPBodyElement
object with the
specified name and adds it to this SOAPBody
object.
name
- a Name
object with the name for the new
SOAPBodyElement
object
SOAPBodyElement
object
SOAPException
- if a SOAP error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |