Package org.springframework.ws.soap
Interface SoapMessageFactory
- All Superinterfaces:
WebServiceMessageFactory
- All Known Implementing Classes:
SaajSoapMessageFactory
Sub-interface of
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
.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new, emptySoapMessage
.createWebServiceMessage
(InputStream inputStream) Reads aSoapMessage
from the given input stream.void
setSoapVersion
(SoapVersion version) Sets the SOAP Version used by this factory.
-
Method Details
-
setSoapVersion
Sets the SOAP Version used by this factory.- Parameters:
version
- the version constant- See Also:
-
createWebServiceMessage
SoapMessage createWebServiceMessage()Creates a new, emptySoapMessage
.- Specified by:
createWebServiceMessage
in interfaceWebServiceMessageFactory
- Returns:
- the empty message
-
createWebServiceMessage
Reads aSoapMessage
from the given input stream.If the given stream is an instance of
TransportInputStream
, the headers will be read from the request.- Specified by:
createWebServiceMessage
in interfaceWebServiceMessageFactory
- Parameters:
inputStream
- the input stream to read the message from- Returns:
- the created message
- Throws:
IOException
- if an I/O exception occurs
-