public interface SoapMessageFactory extends WebServiceMessageFactory
WebServiceMessageFactory which contains SOAP-specific properties and methods.
The soapVersion property can be used to indicate the SOAP version of the factory. By default, the
version is SoapVersion.SOAP_11.
| Modifier and Type | Method and Description |
|---|---|
SoapMessage |
createWebServiceMessage()
Creates a new, empty
SoapMessage. |
SoapMessage |
createWebServiceMessage(InputStream inputStream)
Reads a
SoapMessage from the given input stream. |
void |
setSoapVersion(SoapVersion version)
Sets the SOAP Version used by this factory.
|
void setSoapVersion(SoapVersion version)
version - the version constantSoapVersion.SOAP_11,
SoapVersion.SOAP_12SoapMessage createWebServiceMessage()
SoapMessage.createWebServiceMessage in interface WebServiceMessageFactorySoapMessage createWebServiceMessage(InputStream inputStream) throws IOException
SoapMessage from the given input stream.
If the given stream is an instance of TransportInputStream, the headers will be read from the request.
createWebServiceMessage in interface WebServiceMessageFactoryinputStream - the input stream to read the message fromIOException - if an I/O exception occurs