Package org.springframework.ws
Interface WebServiceMessageFactory
- All Known Subinterfaces:
SoapMessageFactory
- All Known Implementing Classes:
DomPoxMessageFactory
,SaajSoapMessageFactory
public interface WebServiceMessageFactory
The
WebServiceMessageFactory
serves as a factory for WebServiceMessages
.
Allows the creation of empty messages, or messages based on InputStream
s.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new, emptyWebServiceMessage
.createWebServiceMessage
(InputStream inputStream) Reads aWebServiceMessage
from the given input stream.
-
Method Details
-
createWebServiceMessage
WebServiceMessage createWebServiceMessage()Creates a new, emptyWebServiceMessage
.- Returns:
- the empty message
-
createWebServiceMessage
WebServiceMessage createWebServiceMessage(InputStream inputStream) throws InvalidXmlException, IOException Reads aWebServiceMessage
from the given input stream.If the given stream is an instance of
TransportInputStream
, the headers will be read from the request.- Parameters:
inputStream
- the input stream to read the message from- Returns:
- the created message
- Throws:
InvalidXmlException
- if the XML read from the input stream is invalidIOException
- if an I/O exception occurs
-