Methods Summary |
---|
public javax.xml.soap.SOAPBodyElement | addBodyElement(javax.xml.soap.Name name)Creates a new SOAPBodyElement object with the specified
name and adds it to this SOAPBody object.
|
public javax.xml.soap.SOAPBodyElement | addBodyElement(javax.xml.namespace.QName qname)Creates a new SOAPBodyElement object with the specified
QName and adds it to this SOAPBody object.
|
public javax.xml.soap.SOAPBodyElement | addDocument(org.w3c.dom.Document document)Adds the root node of the DOM {@link org.w3c.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.
|
public javax.xml.soap.SOAPFault | addFault()Creates a new SOAPFault object and adds it to
this SOAPBody object. The new SOAPFault will
have default values set for the mandatory child elements. The type of
the SOAPFault will be a SOAP 1.1 or a SOAP 1.2 SOAPFault
depending on the protocol specified while creating the
MessageFactory instance.
A SOAPBody may contain at most one SOAPFault
child element.
|
public javax.xml.soap.SOAPFault | addFault(javax.xml.soap.Name faultCode, java.lang.String faultString, java.util.Locale locale)Creates a new SOAPFault object and adds it to
this SOAPBody object. The type of the
SOAPFault will be a SOAP 1.1 or a SOAP 1.2
SOAPFault depending on the protocol
specified while creating the MessageFactory instance.
For SOAP 1.2 the faultCode parameter is the value of the
Fault/Code/Value element and the faultString parameter
is the value of the Fault/Reason/Text element. For SOAP 1.1
the faultCode parameter is the value of the faultcode
element and the faultString parameter is the value of the faultstring
element.
A SOAPBody may contain at most one SOAPFault
child element.
|
public javax.xml.soap.SOAPFault | addFault(javax.xml.namespace.QName faultCode, java.lang.String faultString, java.util.Locale locale)Creates a new SOAPFault object and adds it to this
SOAPBody object. The type of the SOAPFault
will be a SOAP 1.1 or a SOAP 1.2 SOAPFault depending on
the protocol specified while creating the MessageFactory
instance.
For SOAP 1.2 the faultCode parameter is the value of the
Fault/Code/Value element and the faultString parameter
is the value of the Fault/Reason/Text element. For SOAP 1.1
the faultCode parameter is the value of the faultcode
element and the faultString parameter is the value of the faultstring
element.
A SOAPBody may contain at most one SOAPFault
child element.
|
public javax.xml.soap.SOAPFault | addFault(javax.xml.soap.Name faultCode, java.lang.String faultString)Creates a new SOAPFault object and adds it to this
SOAPBody object. The type of the SOAPFault
will be a SOAP 1.1 or a SOAP 1.2 SOAPFault depending on
the protocol specified while creating the MessageFactory
instance.
For SOAP 1.2 the faultCode parameter is the value of the
Fault/Code/Value element and the faultString parameter
is the value of the Fault/Reason/Text element. For SOAP 1.1
the faultCode parameter is the value of the faultcode
element and the faultString parameter is the value of the faultstring
element.
In case of a SOAP 1.2 fault, the default value for the mandatory xml:lang
attribute on the Fault/Reason/Text element will be set to
java.util.Locale.getDefault()
A SOAPBody may contain at most one SOAPFault
child element.
|
public javax.xml.soap.SOAPFault | addFault(javax.xml.namespace.QName faultCode, java.lang.String faultString)Creates a new SOAPFault object and adds it to this SOAPBody
object. The type of the SOAPFault
will be a SOAP 1.1 or a SOAP 1.2 SOAPFault depending on
the protocol specified while creating the MessageFactory
instance.
For SOAP 1.2 the faultCode parameter is the value of the
Fault/Code/Value element and the faultString parameter
is the value of the Fault/Reason/Text element. For SOAP 1.1
the faultCode parameter is the value of the faultcode
element and the faultString parameter is the value of the faultstring
element.
In case of a SOAP 1.2 fault, the default value for the mandatory xml:lang
attribute on the Fault/Reason/Text element will be set to
java.util.Locale.getDefault()
A SOAPBody may contain at most one SOAPFault
child element
|
public org.w3c.dom.Document | extractContentAsDocument()Creates a new DOM {@link org.w3c.dom.Document} and sets
the first child of this SOAPBody as it's document
element. The child SOAPElement is removed as part of the
process.
|
public javax.xml.soap.SOAPFault | getFault()Returns the SOAPFault object in this SOAPBody
object.
|
public boolean | hasFault()Indicates whether a SOAPFault object exists in this
SOAPBody object.
|