Package org.apache.axis2.jaxws.utility
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 Summary
Fields Modifier and Type Field Description static StringDYNAMIC_PROTOCOLstatic StringSOAP_1_1_PROTOCOLstatic StringSOAP_1_2_PROTOCOL
-
Constructor Summary
Constructors Constructor Description SAAJFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageFactorycreateMessageFactory(String namespace)Create MessageFactory using information from the envelope namespacestatic SOAPFactorycreateSOAPFactory(String namespace)Create SOAPFactory using information from the envelope namespace
-
-
-
Field Detail
-
SOAP_1_1_PROTOCOL
public static final String SOAP_1_1_PROTOCOL
- See Also:
- Constant Field Values
-
SOAP_1_2_PROTOCOL
public static final String SOAP_1_2_PROTOCOL
- See Also:
- Constant Field Values
-
DYNAMIC_PROTOCOL
public static final String DYNAMIC_PROTOCOL
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSOAPFactory
public static SOAPFactory createSOAPFactory(String namespace) throws WebServiceException, SOAPException
Create SOAPFactory using information from the envelope namespace- Parameters:
namespace-- Returns:
- Throws:
WebServiceExceptionSOAPException
-
createMessageFactory
public static MessageFactory createMessageFactory(String namespace) throws WebServiceException, SOAPException
Create MessageFactory using information from the envelope namespace- Parameters:
namespace-- Returns:
- Throws:
WebServiceExceptionSOAPException
-
-