Examples of createSOAPHeader()


Examples of org.apache.axiom.soap.SOAPFactory.createSOAPHeader()

                                if (soapNamespace.equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI)) {
                                    soapFactory = OMAbstractFactory.getSOAP12Factory();
                                } else {
                                    soapFactory = OMAbstractFactory.getSOAP11Factory();
                                }
                                soapFactory.createSOAPHeader(soapEnvelope);
                            }
                            sourceNodeList.add(soapEnvelope);
                        } else {
                            OMElement ele = (OMElement) node;
                            sourceNodeList.add(ele);
View Full Code Here

Examples of org.apache.axiom.soap.SOAPFactory.createSOAPHeader()

    public void addHeader(boolean mustUnderstand, Object content) throws ScriptException {
        SOAPEnvelope envelope = mc.getEnvelope();
        SOAPFactory factory = (SOAPFactory)envelope.getOMFactory();
        SOAPHeader header = envelope.getHeader();
        if (header == null) {
            header = factory.createSOAPHeader(envelope);
        }
        OMElement element = xmlHelper.toOMElement(content);
        // We can't add the element directly to the SOAPHeader. Instead, we need to copy the
        // information over to a SOAPHeaderBlock.
        SOAPHeaderBlock headerBlock = header.addHeaderBlock(element.getLocalName(),
View Full Code Here

Examples of org.apache.axiom.soap.impl.dom.soap11.SOAP11Factory.createSOAPHeader()

        env = factory.createSOAPEnvelope();
        checkAddChild(env, false);
       
        factory = new SOAP11Factory();
        env = factory.createSOAPEnvelope();
        factory.createSOAPHeader(env);
        checkAddChild(env, false);
       
        // these addChild() should work since appending after SOAPBody  
        factory = new SOAP11Factory();
        env = factory.createSOAPEnvelope();
View Full Code Here

Examples of org.apache.axiom.soap.impl.dom.soap12.SOAP12Factory.createSOAPHeader()

        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);       
View Full Code Here

Examples of org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory.createSOAPHeader()

        env = factory.createSOAPEnvelope();
        checkAddChild(env, false);
       
        factory = new SOAP11Factory();
        env = factory.createSOAPEnvelope();
        factory.createSOAPHeader(env);
        checkAddChild(env, false);
       
        // these addChild() should work since appending after SOAPBody  
        factory = new SOAP11Factory();
        env = factory.createSOAPEnvelope();
View Full Code Here

Examples of org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory.createSOAPHeader()

        factory.createSOAPBody(env)
        checkAddChild(env, false);
       
        factory = new SOAP11Factory();
        env = factory.createSOAPEnvelope();
        factory.createSOAPHeader(env);
        factory.createSOAPBody(env);       
        checkAddChild(env, false);
    }
   
    public void testAppendSOAP12() throws Exception {
View Full Code Here

Examples of org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory.createSOAPHeader()

        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);       
View Full Code Here

Examples of org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory.createSOAPHeader()

        factory.createSOAPBody(env);       
        checkAddChild(env, true);
       
        factory = new SOAP12Factory()
        env = factory.createSOAPEnvelope();
        factory.createSOAPHeader(env);
        factory.createSOAPBody(env);
        checkAddChild(env, true);       
    }

    private void checkAddChild(SOAPEnvelope env, boolean fail) {
View Full Code Here

Examples of org.apache.axis2.soap.SOAPFactory.createSOAPHeader()

        reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC"); //xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
        reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
        reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
        reqEnv.declareNamespace("http://soapinterop.org/", "m");

        SOAPHeader header = omfactory.createSOAPHeader(reqEnv);
        OMNamespace hns = reqEnv.declareNamespace("http://soapinterop.org/echoheader/", "hns"); //xmlns:m0="http://soapinterop.org/echoheader/
        SOAPHeaderBlock block1 = header.addHeaderBlock("echoMeStringRequest", hns);
        block1.addAttribute("xsi:type", "xsd:string", null);
        block1.addChild(omfactory.createText("string"));
        // header.addChild(headerChild);
View Full Code Here

Examples of org.apache.axis2.soap.SOAPFactory.createSOAPHeader()

        reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC"); //xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
        reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi");
        reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
        reqEnv.declareNamespace("http://soapinterop.org/", "m");

        SOAPHeader header = omfactory.createSOAPHeader(reqEnv);
        OMNamespace hns = reqEnv.declareNamespace("http://soapinterop.org/echoheader/", "hns"); //xmlns:m0="http://soapinterop.org/echoheader/
        SOAPHeaderBlock block1 = header.addHeaderBlock("echoMeStringRequest", hns);
        block1.addAttribute("xsi:type", "xsd:string", null);
        block1.addChild(omfactory.createText("string"));
        // header.addChild(headerChild);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.