MessageFactory
Creates a Message object. The common patterns are: - Create an empty message for a specific
protocol - Create a message with the xml sourced from OM (XMLStreamReader) - Create a message
(xml + attachments) from a SOAPMessage
The FactoryRegistry should be used to get access to the Factory
See Also:org.apache.axis2.jaxws.registry.FactoryRegistry
create Message with the xml from the XMLStreamReader
Parameters: reader - XMLStreamReader Parameters: protocol - (if null, the soap protocol is inferred from the namespace) throws: XMLStreamException -
create Message with the xml from the OMElement
Parameters: omElement - OMElement Parameters: protocol - (if null, the soap protocol is inferred from the namespace) throws: XMLStreamException -
create Message from a Block
Parameters: block - Parameters: context - Associated Context or null Parameters: protocol - (if null, the soap protocol is inferred from the namespace) throws: XMLStreamException -
create Message from SOAPMessage The xml and attachments from the SOAPMessage are used to
populate the new Message The protocol is inferred from the SOAPMessage
Parameters: SOAPMessage - throws: XMLStreamException - , WebServiceException