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