Class SOAPMessageFormatter

    • Constructor Detail

      • SOAPMessageFormatter

        public SOAPMessageFormatter()
    • Method Detail

      • writeTo

        public void writeTo​(MessageContext msgCtxt,
                            org.apache.axiom.om.OMOutputFormat format,
                            OutputStream out,
                            boolean preserve)
                     throws AxisFault
        Description copied from interface: MessageFormatter
        To support deffered writing transports as in http chunking.. Axis2 was doing this for some time..

        Preserve flag can be used to preserve the envelope for later use. This is usefull when implementing authentication machnisms like NTLM.

        Specified by:
        writeTo in interface MessageFormatter
        preserve - : do not consume the OM when this is set..
        Throws:
        AxisFault
      • getContentType

        public String getContentType​(MessageContext msgCtxt,
                                     org.apache.axiom.om.OMOutputFormat format,
                                     String soapActionString)
        Description copied from interface: MessageFormatter
        Different message formats can set their own content types Eg: JSONFormatter can set the content type as application/json
        Specified by:
        getContentType in interface MessageFormatter