Class SAAJFactory

java.lang.Object
org.apache.axis2.jaxws.utility.SAAJFactory

public class SAAJFactory extends Object
Provides convenience methods to construct a SOAP 1.1 or SOAP 1.2 SAAJ MessageFactory or SOAPFactory. The code uses reflection; thus, when Axis2 upgrades to SAAJ 1.3, no changes will be neded to this class.
  • Field Details

  • Constructor Details

    • SAAJFactory

      public SAAJFactory()
  • Method Details

    • createSOAPFactory

      public static jakarta.xml.soap.SOAPFactory createSOAPFactory(String namespace) throws jakarta.xml.ws.WebServiceException, jakarta.xml.soap.SOAPException
      Create SOAPFactory using information from the envelope namespace
      Parameters:
      namespace -
      Returns:
      Throws:
      jakarta.xml.ws.WebServiceException
      jakarta.xml.soap.SOAPException
    • createMessageFactory

      public static jakarta.xml.soap.MessageFactory createMessageFactory(String namespace) throws jakarta.xml.ws.WebServiceException, jakarta.xml.soap.SOAPException
      Create MessageFactory using information from the envelope namespace
      Parameters:
      namespace -
      Returns:
      Throws:
      jakarta.xml.ws.WebServiceException
      jakarta.xml.soap.SOAPException