Package org.apache.axis.soap
Class MessageFactoryImpl
java.lang.Object
javax.xml.soap.MessageFactory
org.apache.axis.soap.MessageFactoryImpl
Message Factory implementation
- Author:
- Davanum Srinivas (dims@yahoo.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newSOAPMessage
object with the defaultSOAPPart
,SOAPEnvelope
,SOAPBody
, andSOAPHeader
objects.createMessage
(MimeHeaders mimeheaders, InputStream inputstream) Internalizes the contents of the givenInputStream
object into a newSOAPMessage
object and returns theSOAPMessage
object.Methods inherited from class javax.xml.soap.MessageFactory
newInstance
-
Constructor Details
-
MessageFactoryImpl
public MessageFactoryImpl()
-
-
Method Details
-
createMessage
Creates a newSOAPMessage
object with the defaultSOAPPart
,SOAPEnvelope
,SOAPBody
, andSOAPHeader
objects. Profile-specific message factories can choose to prepopulate theSOAPMessage
object with profile-specific headers.Content can be added to this message's
SOAPPart
object, and the message can be sent "as is" when a message containing only a SOAP part is sufficient. Otherwise, theSOAPMessage
object needs to create one or moreAttachmentPart
objects and add them to itself. Any content that is not in XML format must be in anAttachmentPart
object.- Specified by:
createMessage
in classMessageFactory
- Returns:
- a new
SOAPMessage
object - Throws:
SOAPException
- if a SOAP error occurs
-
createMessage
public SOAPMessage createMessage(MimeHeaders mimeheaders, InputStream inputstream) throws IOException, SOAPException Internalizes the contents of the givenInputStream
object into a newSOAPMessage
object and returns theSOAPMessage
object.- Specified by:
createMessage
in classMessageFactory
- Parameters:
mimeheaders
- the transport-specific headers passed to the message in a transport-independent fashion for creation of the messageinputstream
- theInputStream
object that contains the data for a message- Returns:
- a new
SOAPMessage
object containing the data from the givenInputStream
object - Throws:
IOException
- if there is a problem in reading data from the input streamSOAPException
- if the message is invalid
-