Examples of AxisConfiguration


Examples of org.apache.axis2.engine.AxisConfiguration

     */
    public MessageContext build() throws Exception {
        SynapseConfiguration testConfig = new SynapseConfiguration();
        // TODO: check whether we need a SynapseEnvironment in all cases
        SynapseEnvironment synEnv
            = new Axis2SynapseEnvironment(new ConfigurationContext(new AxisConfiguration()),
                                          testConfig);
        MessageContext synCtx;
        if (requireAxis2MessageContext) {
            synCtx = new Axis2MessageContext(new org.apache.axis2.context.MessageContext(),
                                             testConfig, synEnv);
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration

        loadbalanceEndpoint.setChildren(endpoints);
        loadbalanceEndpoint.setAlgorithm(algorithm);

        SynapseEnvironment env = new Axis2SynapseEnvironment(
                new ConfigurationContext(new AxisConfiguration()), new SynapseConfiguration());
        loadbalanceEndpoint.init(env);
        return loadbalanceEndpoint;
    }
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration

                            Boolean.parseBoolean(preserveAddressingProperty)));
        }


        ConfigurationContext axisCfgCtx = axisOutMsgCtx.getConfigurationContext();
        AxisConfiguration axisCfg       = axisCfgCtx.getAxisConfiguration();

        AxisService anoymousService =
            AnonymousServiceFactory.getAnonymousService(synapseOutMessageContext.getConfiguration(),
            axisCfg, wsAddressingEnabled, wsRMEnabled, wsSecurityEnabled);
        // mark the anon services created to be used in the client side of synapse as hidden
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration

        HandlerDescription hd = new HandlerDescription(qn.getLocalPart());
        super.init(hd);
    }

    public AxisService findService(MessageContext mc) throws AxisFault {
        AxisConfiguration ac = mc.getConfigurationContext().getAxisConfiguration();
        return ac.getService(SynapseConstants.SYNAPSE_SERVICE_NAME);
    }
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration

        MessageContextCreatorForAxis2.synEnv = synEnv;
    }

    private static SynapseConfiguration getSynapseConfiguration(
            org.apache.axis2.context.MessageContext axisMsgCtx) {
        AxisConfiguration axisCfg = axisMsgCtx.getConfigurationContext().getAxisConfiguration();
        Parameter param = axisCfg.getParameter(SynapseConstants.SYNAPSE_CONFIG);
        if (param != null) {
            return (SynapseConfiguration) param.getValue();
        }
        return null;
    }
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration

        return null;
    }

    private static SynapseEnvironment getSynapseEnvironment(
            org.apache.axis2.context.MessageContext axisMsgCtx) {
        AxisConfiguration axisCfg = axisMsgCtx.getConfigurationContext().getAxisConfiguration();
        Parameter param = axisCfg.getParameter(SynapseConstants.SYNAPSE_ENV);
        if (param != null) {
            return (SynapseEnvironment) param.getValue();
        }
        return null;
    }
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration

     * This is a regression test for SYNAPSE-366.
     */
    public void testWSDLWithoutPublishWSDL() throws Exception {
        // Build the proxy service
        SynapseConfiguration synCfg = new SynapseConfiguration();
        AxisConfiguration axisCfg = new AxisConfiguration();
        ProxyService proxyService = new ProxyService("Test");
        AxisService axisService = proxyService.buildAxisService(synCfg, axisCfg);
        // Serialize the WSDL
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        axisService.printWSDL(baos);
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration

     * This is a test for the feature introduced by SYNAPSE-200 and a regression test
     * for SYNAPSE-362.
     */
    public void testWSDLWithPublishWSDLAndRecursiveImports() throws Exception {
        SynapseConfiguration synCfg = new SynapseConfiguration();
        AxisConfiguration axisCfg = new AxisConfiguration();
        // Add local entries
        Entry entry = new Entry();
        entry.setType(Entry.URL_SRC);
        entry.setSrc(getClass().getResource("root.wsdl"));
        synCfg.addEntry("root_wsdl", entry);
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration

     * Regression test for SYNAPSE-442.
     */
    public void testRecursiveImports2() throws Exception {
        ProxyService testService = new ProxyService("mytest");
        SynapseConfiguration synCfg = new SynapseConfiguration();
        AxisConfiguration axisCfg = new AxisConfiguration();
        testService.setWsdlURI(getClass().getResource("SimpleStockService.wsdl").toURI());
        testService.buildAxisService(synCfg, axisCfg);
    }
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration

    }

    private MessageContext createMessageContext(String payload, String action) {
        try {
            SynapseConfiguration synapseConfig = new SynapseConfiguration();
            AxisConfiguration axisConfig = new AxisConfiguration();
            synapseConfig.setAxisConfiguration(axisConfig);
            ConfigurationContext cfgCtx = new ConfigurationContext(axisConfig);
            SynapseEnvironment env = new Axis2SynapseEnvironment(cfgCtx, synapseConfig);
            axisConfig.addParameter(SynapseConstants.SYNAPSE_CONFIG, synapseConfig);
            axisConfig.addParameter(SynapseConstants.SYNAPSE_ENV, env);

            MessageContext msgCtx = TestUtils.getAxis2MessageContext(payload, null).
                    getAxis2MessageContext();
            msgCtx.setConfigurationContext(cfgCtx);
            msgCtx.setTo(new EndpointReference(SUB_MAN_URL));
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.