Package org.apache.axis2.soap

Examples of org.apache.axis2.soap.SOAPHeader.build()


            xmlr = XMLInputFactory.newInstance().createXMLStreamReader(inputFile);
            OMXMLParserWrapper builder =
                    OMXMLBuilderFactory.createStAXOMBuilder(OMAbstractFactory.getOMFactory(), xmlr);
            OMElement doc = builder.getDocumentElement();
            doc.build();
            return doc;
        }catch(Exception e)  {
            return null;
        }
View Full Code Here


                throw new SynapseException(
                        "Trouble parsing Synapse Configuration ", e1);

            }
            OMElement config = builder.getDocumentElement();
            config.build();
            Axis2SynapseEnvironment se = new Axis2SynapseEnvironment(config, mc
                    .getAxisService().getClassLoader());

            synapseEnvParam = new ParameterImpl(SYNAPSE_ENVIRONMENT, null);
            synapseEnvParam.setValue(se);
View Full Code Here

                // send the request and wait for reponse
                MessageContext response = send(msgctx);

                // call the callback
                SOAPEnvelope resenvelope = response.getEnvelope();
                resenvelope.build();
                SOAPBody body = resenvelope.getBody();

                if (body.hasFault()) {
                    Exception ex = body.getFault().getException();
View Full Code Here

                soapFactory = getCorrectSOAPFactory(msgCtx);
                header = soapFactory.createSOAPHeader(msgCtx.getEnvelope());
            }

            if (!header.isComplete()) {
                header.build();
            }

            for (int i = 0; i < soapHeaderList.size(); i++) {
                OMElement headerBlock = (OMElement) soapHeaderList.get(i);
View Full Code Here

            if (header == null) {
                soapFactory = getCorrectSOAPFactory(msgCtx);
                header = soapFactory.createSOAPHeader(msgCtx.getEnvelope());
            }
            if (!header.isComplete()) {
                header.build();
            }

            for (int i = 0; i < soapHeaderList.size(); i++) {
                OMElement headerBlock = (OMElement) soapHeaderList.get(i);
                header.addChild(headerBlock);
View Full Code Here

       
        builder.addByteArrayRequestResponseTestClient(new VFSRequestResponseClient());
       
        builder.addEchoEndpoint(new AxisEchoEndpoint(), cfgtr);
       
        builder.build();
       
//        suite.addTest(new MinConcurrencyTest(server, new AsyncChannel[] { new VFSFileChannel("req/in1"), new VFSFileChannel("req/in2") }, 1, true, env, tdf));
        return suite;
    }
}
View Full Code Here

        builder.addByteArrayRequestResponseTestClient(new MailRequestResponseClient(new FlatLayout()));
        builder.addByteArrayRequestResponseTestClient(new MailRequestResponseClient(new MultipartLayout()));
       
        builder.addEchoEndpoint(new AxisEchoEndpoint());
       
        builder.build();
       
        suite.addTest(new MinConcurrencyTest(new MailChannel[] { new MailChannel(), new MailChannel() }, 2, true, new GreenMailTestEnvironment("pop3")));
        return suite;
    }
}
View Full Code Here

                    new JMSAsyncChannel("endpoint2", JMSConstants.DESTINATION_TYPE_QUEUE, ContentTypeMode.TRANSPORT) },
                    2, false, env, new JMSTransportDescriptionFactory(false, false, 2)));
        }
       
       
        builder.build();
       
        return suite;
    }
}
View Full Code Here

        builder.addEnvironment(new SimpleTransportDescriptionFactory("udp", UDPListener.class, UDPSender.class));
        builder.addAxisAsyncTestClient(new AxisAsyncTestClient());
        builder.addAxisAsyncEndpoint(new AxisAsyncEndpoint());
        builder.addAxisRequestResponseTestClient(new AxisRequestResponseTestClient());
        builder.addEchoEndpoint(new AxisEchoEndpoint());
        builder.build();
       
        return suite;
    }
}
View Full Code Here

        builder.addByteArrayRequestResponseTestClient(new MailRequestResponseClient(new FlatLayout()));
        builder.addByteArrayRequestResponseTestClient(new MailRequestResponseClient(new MultipartLayout()));
       
        builder.addEchoEndpoint(new AxisEchoEndpoint());
       
        builder.build();
       
        suite.addTest(new MinConcurrencyTest(new MailChannel[] { new MailChannel(), new MailChannel() }, 2, true, new GreenMailTestEnvironment("pop3")));
        return suite;
    }
}
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.