Search in sources :

Example 11 with Soap12

use of org.apache.cxf.binding.soap.Soap12 in project cxf by apache.

the class SAAJFactoryResolver method createSOAPFactory.

public static SOAPFactory createSOAPFactory(SoapVersion version) throws SOAPException {
    SOAPFactory soapFactory;
    String soapFactoryClassName = SystemPropertyAction.getPropertyOrNull(SOAP_FACTORY_KEY);
    if (soapFactoryClassName != null) {
        soapFactory = newInstanceCxfSAAJFactory(soapFactoryClassName, SOAPFactory.class);
    } else if (version instanceof Soap11) {
        try {
            soapFactory = SOAPFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
        } catch (Throwable t) {
            soapFactory = SOAPFactory.newInstance();
        }
    } else if (version instanceof Soap12) {
        try {
            soapFactory = SOAPFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
        } catch (Throwable t) {
            soapFactory = SOAPFactory.newInstance();
        }
    } else {
        soapFactory = SOAPFactory.newInstance();
    }
    return soapFactory;
}
Also used : Soap12(org.apache.cxf.binding.soap.Soap12) Soap11(org.apache.cxf.binding.soap.Soap11) SOAPFactory(javax.xml.soap.SOAPFactory)

Aggregations

Soap12 (org.apache.cxf.binding.soap.Soap12)11 BindingConfiguration (org.apache.cxf.binding.BindingConfiguration)5 Soap11 (org.apache.cxf.binding.soap.Soap11)5 SoapBindingConfiguration (org.apache.cxf.binding.soap.SoapBindingConfiguration)5 Test (org.junit.Test)5 ClassPathXmlApplicationContext (org.springframework.context.support.ClassPathXmlApplicationContext)5 List (java.util.List)3 TreeMap (java.util.TreeMap)2 SoapMessage (org.apache.cxf.binding.soap.SoapMessage)2 SAAJInInterceptor (org.apache.cxf.binding.soap.saaj.SAAJInInterceptor)2 SAAJOutInterceptor (org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor)2 SourceDataBinding (org.apache.cxf.databinding.source.SourceDataBinding)2 Client (org.apache.cxf.endpoint.Client)2 NullConduitSelector (org.apache.cxf.endpoint.NullConduitSelector)2 LoggingInInterceptor (org.apache.cxf.ext.logging.LoggingInInterceptor)2 LoggingOutInterceptor (org.apache.cxf.ext.logging.LoggingOutInterceptor)2 Interceptor (org.apache.cxf.interceptor.Interceptor)2 Message (org.apache.cxf.message.Message)2 Map (java.util.Map)1 QName (javax.xml.namespace.QName)1