| Package | Description | 
|---|---|
| javax.xml.soap | Provides the API for creating and building SOAP messages. | 
| 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. | 
| SOAPBody | SOAPEnvelope. addBody()Creates a  SOAPBodyobject and sets it as theSOAPBodyobject for thisSOAPEnvelopeobject. | 
| SOAPBodyElement | SOAPBody. addBodyElement(Name name)Creates a new  SOAPBodyElementobject with the specified
 name and adds it to thisSOAPBodyobject. | 
| SOAPBodyElement | SOAPBody. addBodyElement(QName qname)Creates a new  SOAPBodyElementobject with the specified
 QName and adds it to thisSOAPBodyobject. | 
| 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. | 
| Detail | SOAPFault. addDetail()Creates an optional  Detailobject and sets it as theDetailobject for thisSOAPFaultobject. | 
| DetailEntry | Detail. addDetailEntry(Name name)Creates a new  DetailEntryobject with the given
 name and adds it to thisDetailobject. | 
| DetailEntry | Detail. addDetailEntry(QName qname)Creates a new  DetailEntryobject with the given
 QName and adds it to thisDetailobject. | 
| SOAPBodyElement | SOAPBody. addDocument(Document document)Adds the root node of the DOM  to thisSOAPBodyobject. | 
| SOAPFault | SOAPBody. addFault()Creates a new  SOAPFaultobject and adds it to
 thisSOAPBodyobject. | 
| SOAPFault | SOAPBody. addFault(Name faultCode,
        String faultString)Creates a new   SOAPFaultobject and adds it to thisSOAPBodyobject. | 
| SOAPFault | SOAPBody. addFault(Name faultCode,
        String faultString,
        Locale locale)Creates a new  SOAPFaultobject and adds it to
 thisSOAPBodyobject. | 
| SOAPFault | SOAPBody. addFault(QName faultCode,
        String faultString)Creates a new  SOAPFaultobject and adds it to thisSOAPBodyobject. | 
| SOAPFault | SOAPBody. addFault(QName faultCode,
        String faultString,
        Locale locale)Creates a new  SOAPFaultobject and adds it to thisSOAPBodyobject. | 
| void | SOAPFault. addFaultReasonText(String text,
                  Locale locale)Appends or replaces a Reason Text item containing the specified
 text message and an xml:lang derived from
  locale. | 
| SOAPHeader | SOAPEnvelope. addHeader()Creates a  SOAPHeaderobject and sets it as theSOAPHeaderobject for thisSOAPEnvelopeobject. | 
| SOAPHeaderElement | SOAPHeader. addHeaderElement(Name name)Creates a new  SOAPHeaderElementobject initialized with the
 specified name and adds it to thisSOAPHeaderobject. | 
| SOAPHeaderElement | SOAPHeader. addHeaderElement(QName qname)Creates a new  SOAPHeaderElementobject initialized with the
 specified qname and adds it to thisSOAPHeaderobject. | 
| SOAPElement | SOAPElement. addNamespaceDeclaration(String prefix,
                       String uri)Adds a namespace declaration with the specified prefix and URI to this
  SOAPElementobject. | 
| SOAPHeaderElement | SOAPHeader. addNotUnderstoodHeaderElement(QName name)Creates a new NotUnderstood  SOAPHeaderElementobject initialized
 with the specified name and adds it to thisSOAPHeaderobject. | 
| SOAPElement | SOAPElement. addTextNode(String text)Creates a new  Textobject initialized with the givenStringand adds it to thisSOAPElementobject. | 
| SOAPHeaderElement | SOAPHeader. addUpgradeHeaderElement(Iterator supportedSOAPURIs)Creates a new Upgrade  SOAPHeaderElementobject initialized
 with the specified List of supported SOAP URIs and adds it to thisSOAPHeaderobject. | 
| SOAPHeaderElement | SOAPHeader. addUpgradeHeaderElement(String supportedSoapUri)Creates a new Upgrade  SOAPHeaderElementobject initialized
 with the specified supported SOAP URI and adds it to thisSOAPHeaderobject. | 
| SOAPHeaderElement | SOAPHeader. addUpgradeHeaderElement(String[] supportedSoapUris)Creates a new Upgrade  SOAPHeaderElementobject initialized
 with the specified array of supported SOAP URIs and adds it to thisSOAPHeaderobject. | 
| void | SOAPFault. appendFaultSubcode(QName subcode)Adds a Subcode to the end of the sequence of Subcodes contained by this
  SOAPFault. | 
| abstract SOAPMessage | SOAPConnection. call(SOAPMessage request,
    Object to)Sends the given message to the specified endpoint and blocks until
 it has returned the response. | 
| abstract void | SOAPConnection. close()Closes this  SOAPConnectionobject. | 
| 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 | 
| abstract SOAPConnection | SOAPConnectionFactory. createConnection()Create a new  SOAPConnection. | 
| abstract Detail | SOAPFactory. createDetail()Creates a new  Detailobject which serves as a container
 forDetailEntryobjects. | 
| 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. | 
| abstract SOAPFault | SOAPFactory. createFault()Creates a new default  SOAPFaultobject | 
| abstract SOAPFault | SOAPFactory. createFault(String reasonText,
           QName faultCode)Creates a new  SOAPFaultobject initialized with the givenreasonTextandfaultCode | 
| abstract SOAPMessage | MessageFactory. createMessage()Creates a new  SOAPMessageobject with the defaultSOAPPart,SOAPEnvelope,SOAPBody,
 andSOAPHeaderobjects. | 
| abstract SOAPMessage | MessageFactory. createMessage(MimeHeaders headers,
             InputStream in)Internalizes the contents of the given  InputStreamobject into a
 newSOAPMessageobject and returns theSOAPMessageobject. | 
| abstract Name | SOAPFactory. createName(String localName)Creates a new  Nameobject initialized with the
 given local name. | 
| Name | SOAPEnvelope. createName(String localName)Creates a new  Nameobject initialized with the
 given local name. | 
| abstract Name | SOAPFactory. createName(String localName,
          String prefix,
          String uri)Creates a new  Nameobject initialized with the
 given local name, namespace prefix, and namespace URI. | 
| Name | SOAPEnvelope. createName(String localName,
          String prefix,
          String uri)Creates a new  Nameobject initialized with the
 given local name, namespace prefix, and namespace URI. | 
| QName | SOAPElement. createQName(String localName,
           String prefix)Creates a  QNamewhose namespace URI is the one associated
 with the parameter,prefix, in the context of thisSOAPElement. | 
| Document | SOAPBody. extractContentAsDocument()Creates a new DOM  and sets
 the first child of thisSOAPBodyas it's document
 element. | 
| SOAPMessage | SOAPConnection. get(Object to)Gets a message from a specific endpoint and blocks until it receives, | 
| abstract AttachmentPart | SOAPMessage. getAttachment(SOAPElement element)Returns an  AttachmentPartobject that is associated with an
 attachment that is referenced by thisSOAPElementornullif no such attachment exists. | 
| abstract InputStream | AttachmentPart. getBase64Content()Returns an  InputStreamwhich can be used to obtain the
 content ofAttachmentPartas Base64 encoded
 character data, this method would base64 encode the raw bytes
 of the attachment and return. | 
| SOAPBody | SOAPEnvelope. getBody()Returns the  SOAPBodyobject associated with thisSOAPEnvelopeobject. | 
| abstract Object | AttachmentPart. getContent()Gets the content of this  AttachmentPartobject as a Java
 object. | 
| abstract Source | SOAPPart. getContent()Returns the content of the SOAPEnvelope as a JAXP  Sourceobject. | 
| abstract DataHandler | AttachmentPart. getDataHandler()Gets the  DataHandlerobject for thisAttachmentPartobject. | 
| abstract SOAPEnvelope | SOAPPart. getEnvelope()Gets the  SOAPEnvelopeobject associated with thisSOAPPartobject. | 
| Iterator | SOAPFault. getFaultReasonLocales()Returns an  Iteratorover a distinct sequence ofLocales for which there are associated Reason Text items. | 
| String | SOAPFault. getFaultReasonText(Locale locale)Returns the Reason Text associated with the given  Locale. | 
| Iterator | SOAPFault. getFaultReasonTexts()Returns an  Iteratorover a sequence ofStringobjects containing all of the Reason Text items for
 thisSOAPFault. | 
| SOAPHeader | SOAPEnvelope. getHeader()Returns the  SOAPHeaderobject for
 thisSOAPEnvelopeobject. | 
| Object | SOAPMessage. getProperty(String property)Retrieves value of the specified property. | 
| abstract InputStream | AttachmentPart. getRawContent()Gets the content of this  AttachmentPartobject as an
 InputStream as if a call had been made togetContentand noDataContentHandlerhad been registered for thecontent-typeof thisAttachmentPart. | 
| abstract byte[] | AttachmentPart. getRawContentBytes()Gets the content of this  AttachmentPartobject as a
 byte[] array as if a call had been made togetContentand noDataContentHandlerhad been registered for thecontent-typeof thisAttachmentPart. | 
| abstract int | AttachmentPart. getSize()Returns the number of bytes in this  AttachmentPartobject. | 
| SOAPBody | SOAPMessage. getSOAPBody()Gets the SOAP Body contained in this  SOAPMessageobject. | 
| SOAPHeader | SOAPMessage. getSOAPHeader()Gets the SOAP Header contained in this  SOAPMessageobject. | 
| static SOAPFactory | SOAPFactory. newInstance()Creates a new  SOAPFactoryobject that is an instance of
 the default implementation (SOAP 1.1),
 This method uses the following ordered lookup procedure to determine the SOAPFactory implementation class to load:
 
   Use the javax.xml.soap.SOAPFactory system property. | 
| static SOAPConnectionFactory | SOAPConnectionFactory. newInstance()Creates an instance of the default
  SOAPConnectionFactoryobject. | 
| static MessageFactory | MessageFactory. newInstance()Creates a new  MessageFactoryobject that is an instance
 of the default implementation (SOAP 1.1),
 This method uses the following ordered lookup procedure to determine the MessageFactory implementation class to load:
 
   Use the javax.xml.soap.MessageFactory system property. | 
| static SOAPElementFactory | SOAPElementFactory. newInstance()Deprecated.  Creates a new instance of  SOAPElementFactory. | 
| static SOAPFactory | SOAPFactory. newInstance(String protocol)Creates a new  SOAPFactoryobject that is an instance of
 the specified implementation, this method uses the SAAJMetaFactory to
 locate the implementation class and create the SOAPFactory instance. | 
| static MessageFactory | MessageFactory. newInstance(String protocol)Creates a new  MessageFactoryobject that is an instance
 of the specified implementation. | 
| protected abstract MessageFactory | SAAJMetaFactory. newMessageFactory(String protocol)Creates a  MessageFactoryobject for
 the givenStringprotocol. | 
| protected abstract SOAPFactory | SAAJMetaFactory. newSOAPFactory(String protocol)Creates a  SOAPFactoryobject for
 the givenStringprotocol. | 
| abstract void | SOAPMessage. saveChanges()Updates this  SOAPMessageobject with all the changes that
 have been made to it. | 
| abstract void | AttachmentPart. setBase64Content(InputStream content,
                String contentType)Sets the content of this attachment part from the Base64 source
  InputStreamand sets the value of theContent-Typeheader to the value contained incontentType, This method would first decode the base64
 input and write the resulting raw bytes to the attachment. | 
| abstract void | SOAPPart. setContent(Source source)Sets the content of the  SOAPEnvelopeobject with the data
 from the givenSourceobject. | 
| SOAPElement | SOAPElement. setElementQName(QName newName)Changes the name of this  ElementtonewNameif
 possible. | 
| void | SOAPElement. setEncodingStyle(String encodingStyle)Sets the encoding style for this  SOAPElementobject
 to one specified. | 
| void | SOAPFault. setFaultActor(String faultActor)Sets this  SOAPFaultobject with the given fault actor. | 
| void | SOAPFault. setFaultCode(Name faultCodeQName)Sets this  SOAPFaultobject with the given fault code. | 
| void | SOAPFault. setFaultCode(QName faultCodeQName)Sets this  SOAPFaultobject with the given fault code. | 
| void | SOAPFault. setFaultCode(String faultCode)Sets this  SOAPFaultobject with the give fault code. | 
| void | SOAPFault. setFaultNode(String uri)Creates or replaces any existing Node element value for
 this  SOAPFaultobject. | 
| void | SOAPFault. setFaultRole(String uri)Creates or replaces any existing Role element value for
 this  SOAPFaultobject. | 
| void | SOAPFault. setFaultString(String faultString)Sets the fault string for this  SOAPFaultobject
 to the given string. | 
| void | SOAPFault. setFaultString(String faultString,
              Locale locale)Sets the fault string for this  SOAPFaultobject
 to the given string and localized to the given locale. | 
| void | Node. setParentElement(SOAPElement parent)Sets the parent of this  Nodeobject to the givenSOAPElementobject. | 
| void | SOAPMessage. setProperty(String property,
           Object value)Associates the specified value with the specified property. | 
| abstract void | AttachmentPart. setRawContent(InputStream content,
             String contentType)Sets the content of this attachment part to that contained by the
  InputStreamcontentand sets the value of theContent-Typeheader to the value contained incontentType. | 
| abstract void | AttachmentPart. setRawContentBytes(byte[] content,
                  int offset,
                  int len,
                  String contentType)Sets the content of this attachment part to that contained by the
  byte[]arraycontentand sets the value of theContent-Typeheader to the value contained incontentType. | 
| void | SOAPHeaderElement. setRelay(boolean relay)Sets the relay attribute for this  SOAPHeaderElementto be
 either true or false. | 
| void | SOAPHeaderElement. setRole(String uri)Sets the  Roleassociated with thisSOAPHeaderElementobject to the specifiedRole. | 
| abstract void | SOAPMessage. writeTo(OutputStream out)Writes this  SOAPMessageobject to the given output
 stream. | 
| Constructor and Description | 
|---|
| SAAJResult()Creates a  SAAJResultthat will present results in the form
 of a SAAJ tree that supports the default (SOAP 1.1) protocol. | 
| SAAJResult(String protocol)Creates a  SAAJResultthat will present results in the form
 of a SAAJ tree that supports the specified protocol. | 
 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, 2013, Oracle and/or its affiliates.  All rights reserved.