Spring Web Services Framework

org.springframework.ws
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
Author:
Arjen Poutsma
See Also:
WebServiceMessage

Method Summary
 WebServiceMessage createWebServiceMessage()
          Creates a new, empty WebServiceMessage.
 WebServiceMessage createWebServiceMessage(InputStream inputStream)
          Reads a WebServiceMessage from the given input stream.
 

Method Detail

createWebServiceMessage

WebServiceMessage createWebServiceMessage()
Creates a new, empty WebServiceMessage.

Returns:
the empty message

createWebServiceMessage

WebServiceMessage createWebServiceMessage(InputStream inputStream)
                                          throws InvalidXmlException,
                                                 IOException
Reads a WebServiceMessage 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 invalid
IOException - if an I/O exception occurs

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.