| Package | Description | 
|---|---|
| javax.xml.soap | Provides the API for creating and building SOAP messages. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | DetailA container for  DetailEntryobjects. | 
| interface  | DetailEntryThe content for a  Detailobject, giving details for
 aSOAPFaultobject. | 
| interface  | SOAPBodyAn object that represents the contents of the SOAP body
 element in a SOAP message. | 
| interface  | SOAPBodyElementA  SOAPBodyElementobject represents the contents in
 aSOAPBodyobject. | 
| interface  | SOAPEnvelopeThe container for the SOAPHeader and SOAPBody portions of a
  SOAPPartobject. | 
| interface  | SOAPFaultAn element in the  SOAPBodyobject that contains
 error and/or status information. | 
| interface  | SOAPFaultElementA representation of the contents in
 a  SOAPFaultobject. | 
| interface  | SOAPHeaderA representation of the SOAP header
 element. | 
| interface  | SOAPHeaderElementAn object representing the contents in the SOAP header part of the
 SOAP envelope. | 
| Modifier and Type | Method and Description | 
|---|---|
| SOAPElement | SOAPElement. addAttribute(Name name,
            String value)Adds an attribute with the specified name and value to this
  SOAPElementobject. | 
| SOAPElement | SOAPElement. addAttribute(QName qname,
            String value)Adds an attribute with the specified name and value to this
  SOAPElementobject. | 
| SOAPElement | SOAPElement. addChildElement(Name name)Creates a new  SOAPElementobject initialized with the
 givenNameobject and adds the new element to thisSOAPElementobject. | 
| SOAPElement | SOAPElement. addChildElement(QName qname)Creates a new  SOAPElementobject initialized with the givenQNameobject and adds the new element to thisSOAPElementobject. | 
| SOAPElement | SOAPElement. addChildElement(SOAPElement element)Add a  SOAPElementas a child of thisSOAPElementinstance. | 
| SOAPElement | SOAPElement. addChildElement(String localName)Creates a new  SOAPElementobject initialized with the
 specified local name and adds the new element to thisSOAPElementobject. | 
| SOAPElement | SOAPElement. addChildElement(String localName,
               String prefix)Creates a new  SOAPElementobject initialized with the
 specified local name and prefix and adds the new element to thisSOAPElementobject. | 
| SOAPElement | SOAPElement. addChildElement(String localName,
               String prefix,
               String uri)Creates a new  SOAPElementobject initialized with the
 specified local name, prefix, and URI and adds the new element to thisSOAPElementobject. | 
| SOAPElement | SOAPElement. addNamespaceDeclaration(String prefix,
                       String uri)Adds a namespace declaration with the specified prefix and URI to this
  SOAPElementobject. | 
| SOAPElement | SOAPElement. addTextNode(String text)Creates a new  Textobject initialized with the givenStringand adds it to thisSOAPElementobject. | 
| SOAPElement | SOAPElementFactory. create(Name name)Deprecated. 
 Use
 javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name)
 instead | 
| SOAPElement | SOAPElementFactory. create(String localName)Deprecated. 
 Use
 javax.xml.soap.SOAPFactory.createElement(String localName) instead | 
| SOAPElement | SOAPElementFactory. create(String localName,
      String prefix,
      String uri)Deprecated. 
 Use
 javax.xml.soap.SOAPFactory.createElement(String localName,
                      String prefix,
                      String uri)
 instead | 
| SOAPElement | SOAPFactory. createElement(Element domElement)Creates a  SOAPElementobject from an existing DOMElement. | 
| abstract SOAPElement | SOAPFactory. createElement(Name name)Creates a  SOAPElementobject initialized with the
 givenNameobject. | 
| SOAPElement | SOAPFactory. createElement(QName qname)Creates a  SOAPElementobject initialized with the
 givenQNameobject. | 
| abstract SOAPElement | SOAPFactory. createElement(String localName)Creates a  SOAPElementobject initialized with the
 given local name. | 
| abstract SOAPElement | SOAPFactory. createElement(String localName,
             String prefix,
             String uri)Creates a new  SOAPElementobject with the given
 local name, prefix and uri. | 
| SOAPElement | Node. getParentElement()Returns the parent element of this  Nodeobject. | 
| SOAPElement | SOAPElement. setElementQName(QName newName)Changes the name of this  ElementtonewNameif
 possible. | 
| Modifier and Type | Method and Description | 
|---|---|
| SOAPElement | SOAPElement. addChildElement(SOAPElement element)Add a  SOAPElementas a child of thisSOAPElementinstance. | 
| abstract AttachmentPart | SOAPMessage. getAttachment(SOAPElement element)Returns an  AttachmentPartobject that is associated with an
 attachment that is referenced by thisSOAPElementornullif no such attachment exists. | 
| void | Node. setParentElement(SOAPElement parent)Sets the parent of this  Nodeobject to the givenSOAPElementobject. | 
| Constructor and Description | 
|---|
| SAAJResult(SOAPElement rootNode)Creates a  SAAJResultthat will write the results as a
 child node of theSOAPElementspecified. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.