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 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 inputstream to read the message from
Returns:
the created message
Throws:
IOException - if an I/O exception occurs

Spring Web Services Framework

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