Uses of Class javax.xml.soap.SOAPFactory (Java Platform SE 8 )
Date: 2026-08-19

## Uses of Class
javax.xml.soap.SOAPFactory

- Packages that use SOAPFactory
  Package | Description
  --- | ---
  javax.xml.soap | Provides the API for creating and building SOAP messages.
  javax.xml.ws.soap | This package defines APIs specific to the SOAP binding.

- - ### Uses of SOAPFactory in javax.xml.soap

    Methods in javax.xml.soap that return SOAPFactory
    Modifier and Type | Method and Description
    --- | ---
    `static SOAPFactory` | SOAPFactory.`newInstance()` Creates a new `SOAPFactory` object 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 SOAPFactory` | SOAPFactory.`newInstance(String protocol)` Creates a new `SOAPFactory` object that is an instance of the specified implementation, this method uses the SAAJMetaFactory to locate the implementation class and create the SOAPFactory instance.
    `protected abstract SOAPFactory` | SAAJMetaFactory.`newSOAPFactory(String protocol)` Creates a `SOAPFactory` object for the given `String` protocol.

  - ### Uses of SOAPFactory in javax.xml.ws.soap

    Methods in javax.xml.ws.soap that return SOAPFactory
    Modifier and Type | Method and Description
    --- | ---
    `SOAPFactory` | SOAPBinding.`getSOAPFactory()` Gets the SAAJ `SOAPFactory` instance used by this SOAP binding.

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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.