/** * Objective of this method is to capture the SOAPEnvelope creation logic * and make it a common for all the transports and to in/out flows. * * @param msgContext message context * @param inStream input stream * @param contentType content type of the message * @return the SOAPEnvelope * @throws AxisFault if an error occurs * @throws OMException if the xml is invalid * @throws XMLStreamException if the stream is invalid * @throws FactoryConfigurationError */ public static SOAPEnvelope createSOAPMessage(MessageContext msgContext, InputStream inStream, String contentType) throws AxisFault, OMException, XMLStreamException, FactoryConfigurationError { OMElement documentElement = createDocumentElement(contentType, msgContext, inStream); return createSOAPEnvelope(documentElement); }
/** * Objective of this method is to capture the SOAPEnvelope creation logic * and make it a common for all the transports and to in/out flows. * * @param msgContext message context * @param inStream input stream * @param contentType content type of the message * @return the SOAPEnvelope * @throws AxisFault if an error occurs * @throws OMException if the xml is invalid * @throws XMLStreamException if the stream is invalid * @throws FactoryConfigurationError */ public static SOAPEnvelope createSOAPMessage(MessageContext msgContext, InputStream inStream, String contentType) throws AxisFault, OMException, XMLStreamException, FactoryConfigurationError { OMElement documentElement = createDocumentElement(contentType, msgContext, inStream); return createSOAPEnvelope(documentElement); }
/** * Objective of this method is to capture the SOAPEnvelope creation logic * and make it a common for all the transports and to in/out flows. * * @param msgContext message context * @param inStream input stream * @param contentType content type of the message * @param builder the builder to be used * @return the SOAPEnvelope * @throws AxisFault if an error occurs * @throws OMException if the xml is invalid * @throws XMLStreamException if the stream is invalid * @throws FactoryConfigurationError */ public static SOAPEnvelope createSOAPMessage(MessageContext msgContext, InputStream inStream, String contentType, Builder builder) throws AxisFault, OMException, XMLStreamException, FactoryConfigurationError { OMElement documentElement = createDocumentElement(contentType, builder, msgContext, inStream); return createSOAPEnvelope(documentElement); }
/** * Objective of this method is to capture the SOAPEnvelope creation logic * and make it a common for all the transports and to in/out flows. * * @param msgContext message context * @param inStream input stream * @param contentType content type of the message * @param builder the builder to be used * @return the SOAPEnvelope * @throws AxisFault if an error occurs * @throws OMException if the xml is invalid * @throws XMLStreamException if the stream is invalid * @throws FactoryConfigurationError */ public static SOAPEnvelope createSOAPMessage(MessageContext msgContext, InputStream inStream, String contentType, Builder builder) throws AxisFault, OMException, XMLStreamException, FactoryConfigurationError { OMElement documentElement = createDocumentElement(contentType, builder, msgContext, inStream); return createSOAPEnvelope(documentElement); }