| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| MessageFactory | SOAPBinding. getMessageFactory()Gets the SAAJ  MessageFactoryinstance 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, 2015, Oracle and/or its affiliates.  All rights reserved.