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

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


            } else {
                if (reason.getFirstSOAPText() != null) {
                    reason.getFirstSOAPText().getFirstOMChild().detach();
                    reason.getFirstSOAPText().setText(faultString);
                } else {
                    SOAPFaultText text = new SOAP12FaultTextImpl(reason,
                                                                 (SOAPFactory)this.element
                                                                         .getOMFactory());
                    text.setText(faultString);
                    reason.addSOAPText(text);
                }
            }
        } else {
            org.apache.axiom.soap.SOAPFactory soapFactory =
View Full Code Here


                        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

      soapNamespaceURI = getSOAPNamespaceURI(storageManager, internalSequenceID);
   
    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

    String soapNamespaceURI = options.getSoapVersionURI();
    if (soapNamespaceURI == null)
      soapNamespaceURI = getSOAPNamespaceURI(storageManager, internalSequenceID);

    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

    SOAPFactory factory = null;
    String soapNamespaceURI = options.getSoapVersionURI();
    if (soapNamespaceURI == null)
      soapNamespaceURI = getSOAPNamespaceURI(storageManager, internalSequenceID);
    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

        factory.createSOAPBody(env);       
        checkAddChild(env, false);
    }
   
    public void testAppendSOAP12() throws Exception {
        SOAP12Factory factory;
        SOAPEnvelope env;
       
        // SOAP 1.2 only allows SOAPHeader and SOAPBody elements
       
        // All these addChild() should fail
        factory = new SOAP12Factory()
        env = factory.createSOAPEnvelope();
        checkAddChild(env, true);
       
        factory = new SOAP12Factory()
        env = factory.createSOAPEnvelope();
        factory.createSOAPHeader(env);
        checkAddChild(env, true);
       
        factory = new SOAP12Factory()
        env = factory.createSOAPEnvelope();
        factory.createSOAPBody(env);       
        checkAddChild(env, true);
       
        factory = new SOAP12Factory()
        env = factory.createSOAPEnvelope();
        factory.createSOAPHeader(env);
        factory.createSOAPBody(env);
        checkAddChild(env, true);       
    }
View Full Code Here

                    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);
                    responseMsgCtx.setProperty(NhttpConstants.SC_ACCEPTED, Boolean.TRUE);
View Full Code Here

      soapNamespaceURI = getSOAPNamespaceURI(storageManager, internalSequenceID);
   
    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

    String soapNamespaceURI = options.getSoapVersionURI();
    if (soapNamespaceURI == null)
      soapNamespaceURI = getSOAPNamespaceURI(storageManager, internalSequenceID);

    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

    SOAPFactory factory = null;
    String soapNamespaceURI = options.getSoapVersionURI();
    if (soapNamespaceURI == null)
      soapNamespaceURI = getSOAPNamespaceURI(storageManager, internalSequenceID);
    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

TOP

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

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.