Package org.apache.axiom.soap.impl.llom.soap12

Examples of org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory


    private static SOAPFactory _getFactory(Protocol protocol) {
        SOAPFactory soapFactory;
        if (protocol == Protocol.soap11) {
            soapFactory = new SOAP11Factory();
        } else if (protocol == Protocol.soap12) {
            soapFactory = new SOAP12Factory();
        } else if (protocol == Protocol.rest) {
            // For REST, create a SOAP 1.1 Envelope to contain the message
            // This is consistent with Axis2.
            soapFactory = new SOAP11Factory();
        } else {
View Full Code Here


    String soapNamespaceURI = options.getSoapVersionURI();
    SOAPFactory factory = null;
    SOAPEnvelope dummyEnvelope = null;
    if (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(soapNamespaceURI)) {
      factory = new SOAP12Factory();
      dummyEnvelope = factory.getDefaultEnvelope();
    } else {
      factory = new SOAP11Factory();
      dummyEnvelope = factory.getDefaultEnvelope();
    }
View Full Code Here

    SOAPEnvelope dummyEnvelope = null;
    SOAPFactory factory = null;
    String soapNamespaceURI = options.getSoapVersionURI();
    if (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(soapNamespaceURI)) {
      factory = new SOAP12Factory();
      dummyEnvelope = factory.getDefaultEnvelope();
    } else {
      factory = new SOAP11Factory();
      dummyEnvelope = factory.getDefaultEnvelope();
    }
View Full Code Here

    options.setAction(SpecSpecificConstants.getTerminateSequenceAction(rmSpecVersion));
    SOAPEnvelope dummyEnvelope = null;
    SOAPFactory factory = null;
    String soapNamespaceURI = options.getSoapVersionURI();
    if (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(soapNamespaceURI)) {
      factory = new SOAP12Factory();
      dummyEnvelope = factory.getDefaultEnvelope();
    } else {
      factory = new SOAP11Factory();
      dummyEnvelope = factory.getDefaultEnvelope();
    }
View Full Code Here

        }
        assert(el3 != null);

        OMElement payload = createPayload();
       
        SOAPFactory factory = new SOAP12Factory();
        SOAPEnvelope env = factory.createSOAPEnvelope();
        SOAPBody body = factory.createSOAPBody(env);
       
        body.addChild(payload);
       
        return env;
    }
View Full Code Here

    private static SOAPFactory _getFactory(Protocol protocol) {
        SOAPFactory soapFactory;
        if (protocol == Protocol.soap11) {
            soapFactory = new SOAP11Factory();
        } else if (protocol == Protocol.soap12) {
            soapFactory = new SOAP12Factory();
        } else if (protocol == Protocol.rest) {
            // For REST, create a SOAP 1.1 Envelope to contain the message
            // This is consistent with Axis2.
            soapFactory = new SOAP11Factory();
        } else {
View Full Code Here

            throw AxisFault.makeFault(e);
        } catch (FactoryConfigurationError e) {
            throw AxisFault.makeFault(e);
        } finally {
            if ((msgContext.getEnvelope() == null) && soapVersion != VERSION_SOAP11) {
                msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope());
            }
        }
    }
View Full Code Here

            throw new AxisFault(e);
        } catch (FactoryConfigurationError e) {
            throw new AxisFault(e);
        } finally {
            if ((msgContext.getEnvelope() == null) && !soap11) {
                msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope());
            }
        }
    }
View Full Code Here

            throw new AxisFault(e);
        } catch (FactoryConfigurationError e) {
            throw new AxisFault(e);
        } finally {
            if ((msgContext.getEnvelope() == null) && !soap11) {
                msgContext.setEnvelope(new SOAP12Factory().createSOAPEnvelope());
            }
        }
    }
View Full Code Here

            throw new AxisFault(e);
        } catch (FactoryConfigurationError e) {
            throw new AxisFault(e);
        } finally {
            if ((msgContext.getEnvelope() == null) && !soap11) {
                msgContext.setEnvelope(new SOAP12Factory().createSOAPEnvelope());
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.