Package org.apache.ws.commons.soap.impl.llom.soap12

Examples of org.apache.ws.commons.soap.impl.llom.soap12.SOAP12Factory


                        responseMsgCtx.setOperationContext(outMsgCtx.getOperationContext());
                        responseMsgCtx.setConfigurationContext(outMsgCtx.getConfigurationContext());
                        responseMsgCtx.setTo(null);

                        if (!outMsgCtx.isDoingREST() && !outMsgCtx.isSOAP11()) {
                            responseMsgCtx.setEnvelope(new SOAP12Factory().getDefaultEnvelope());
                        } else {
                            responseMsgCtx.setEnvelope(new SOAP11Factory().getDefaultEnvelope());
                        }
                        responseMsgCtx.setProperty(AddressingConstants.
                                DISABLE_ADDRESSING_FOR_OUT_MESSAGES, Boolean.TRUE);
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 new AxisFault(e);
        } catch (FactoryConfigurationError e) {
            throw new AxisFault(e);
        } finally {
            if ((msgContext.getEnvelope() == null) && soapVersion != VERSION_SOAP11) {
                msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope());
            }
        }
    }
View Full Code Here

    public static SOAPFactory getSOAP11Factory() {
        return new SOAP11Factory();
    }

    public static SOAPFactory getSOAP12Factory() {
        return new SOAP12Factory();
    }
View Full Code Here

  public static SOAPFactory getSOAP11Factory() {
    return new SOAP11Factory();
  }

  public static SOAPFactory getSOAP12Factory() {
    return new SOAP12Factory();
  }
View Full Code Here

            throw new AxisFault(e);
        } catch (UnsupportedEncodingException 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 (UnsupportedEncodingException e) {
            throw new AxisFault(e);
        } finally {
            if ((msgContext.getEnvelope() == null) && !soap11) {
                msgContext.setEnvelope(new SOAP12Factory().createSOAPEnvelope());
            }
        }
    }
View Full Code Here

        } catch (UnsupportedEncodingException e) {
          throw new AxisFault(e);
        } finally {
            if (msgContext.getEnvelope() == null && !soap11) {
                msgContext.setEnvelope(
                    new SOAP12Factory().createSOAPEnvelope());
            }

        }
    }
View Full Code Here

        } catch (UnsupportedEncodingException e) {
          throw new AxisFault(e);
        } finally {
            if (msgContext.getEnvelope() == null && !soap11) {
                msgContext.setEnvelope(
                    new SOAP12Factory().createSOAPEnvelope());
            }

        }
    }
View Full Code Here

        } catch (UnsupportedEncodingException 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.ws.commons.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.