Interface WebServiceMessageFactory
- All Known Subinterfaces:
SoapMessageFactory
- All Known Implementing Classes:
AxiomSoapMessageFactory, DomPoxMessageFactory, SaajSoapMessageFactory
public interface WebServiceMessageFactory
The
WebServiceMessageFactory serves as a factory for
WebServiceMessages.
Allows the creation of empty messages, or messages based on InputStreams.
- Since:
- 1.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.springframework.util.unit.DataSizeDefault maximum message size: 10MB. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new, emptyWebServiceMessage.createWebServiceMessage(InputStream inputStream) Reads aWebServiceMessagefrom the given input stream.
-
Field Details
-
DEFAULT_MAX_MESSAGE_SIZE
static final org.springframework.util.unit.DataSize DEFAULT_MAX_MESSAGE_SIZEDefault maximum message size: 10MB.- Since:
- 3.1.10
-
-
Method Details
-
createWebServiceMessage
WebServiceMessage createWebServiceMessage()Creates a new, emptyWebServiceMessage.- Returns:
- the empty message
-
createWebServiceMessage
WebServiceMessage createWebServiceMessage(InputStream inputStream) throws InvalidXmlException, IOException Reads aWebServiceMessagefrom the given input stream. Implementation should limit the size consumed by theInputStream, usingDEFAULT_MAX_MESSAGE_SIZEby default.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- See Also:
-