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

- Packages that use MessageFactory
  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 MessageFactory in javax.xml.soap

    Methods in javax.xml.soap that return MessageFactory
    Modifier and Type | Method | Description
    --- | --- | ---
    `static MessageFactory` | MessageFactory.`newInstance​()` | Creates a new `MessageFactory` object that is an instance of the default implementation (SOAP 1.1).
    `static MessageFactory` | MessageFactory.`newInstance​(String protocol)` | Creates a new `MessageFactory` object that is an instance of the specified implementation.
    `protected abstract MessageFactory` | SAAJMetaFactory.`newMessageFactory​(String protocol)` | Creates a `MessageFactory` object for the given `String` protocol.

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

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