|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.6.0
javax.xml.soap
|
|||||||||||||||||||||||
| Field Summary |
|---|
| Method Summary | |
|---|---|
SOAPBody |
addBody()
Creates a SOAPBody object and sets it as the
SOAPBody object for this SOAPEnvelope
object. |
SOAPHeader |
addHeader()
Creates a SOAPHeader object and sets it as the
SOAPHeader object for this SOAPEnvelope
object. |
Name |
createName(String localName)
Creates a new Name object initialized with the
given local name. |
Name |
createName(String localName,
String prefix,
String uri)
Creates a new Name object initialized with the
given local name, namespace prefix, and namespace URI. |
SOAPBody |
getBody()
Returns the SOAPBody object associated with this
SOAPEnvelope object. |
SOAPHeader |
getHeader()
Returns the SOAPHeader object for
this SOAPEnvelope object. |
| Methods inherited from interface javax.xml.soap.Node |
|---|
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue |
| Methods inherited from interface org.w3c.dom.Element |
|---|
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Method Detail |
|---|
Name createName(String localName, String prefix, String uri) throws SOAPException
Name object initialized with the
given local name, namespace prefix, and namespace URI.
This factory method creates Name objects for use in
the SOAP/XML document.
localName - a String giving the local nameprefix - a String giving the prefix of the namespaceuri - a String giving the URI of the namespace
Name object initialized with the given
local name, namespace prefix, and namespace URI
SOAPException - if there is a SOAP errorName createName(String localName) throws SOAPException
Name object initialized with the
given local name.
This factory method creates Name objects for use in
the SOAP/XML document.
localName - a String giving the local name
Name object initialized with the given
local name
SOAPException - if there is a SOAP errorSOAPHeader getHeader() throws SOAPException
SOAPHeader object for
this SOAPEnvelope object.
A new SOAPMessage object is by default created with a
SOAPEnvelope object that contains an empty
SOAPHeader object. As a result, the method
getHeader will always return a SOAPHeader
object unless the header has been removed and a new one has not
been added.
SOAPHeader object or null if
there is none
SOAPException - if there is a problem obtaining the
SOAPHeader objectSOAPBody getBody() throws SOAPException
SOAPBody object associated with this
SOAPEnvelope object.
A new SOAPMessage object is by default created with a
SOAPEnvelope object that contains an empty
SOAPBody object. As a result, the method
getBody will always return a SOAPBody
object unless the body has been removed and a new one has not
been added.
SOAPBody object for this
SOAPEnvelope object or null
if there is none
SOAPException - if there is a problem obtaining the
SOAPBody objectSOAPHeader addHeader() throws SOAPException
SOAPHeader object and sets it as the
SOAPHeader object for this SOAPEnvelope
object.
It is illegal to add a header when the envelope already contains a header. Therefore, this method should be called only after the existing header has been removed.
SOAPHeader object
SOAPException - if this
SOAPEnvelope object already contains a
valid SOAPHeader objectSOAPBody addBody() throws SOAPException
SOAPBody object and sets it as the
SOAPBody object for this SOAPEnvelope
object.
It is illegal to add a body when the envelope already contains a body. Therefore, this method should be called only after the existing body has been removed.
SOAPBody object
SOAPException - if this
SOAPEnvelope object already contains a
valid SOAPBody object