Package org.apache.axis2.engine

Examples of org.apache.axis2.engine.AxisConfiguration.addService()


        as2.addOperation(operation3);
        as3.addOperation(operation4);

        ConfigurationContext cc = ConfigurationContextFactory.createEmptyConfigurationContext();
        AxisConfiguration ac = cc.getAxisConfiguration();
        ac.addService(as1);
        ac.addService(as2);
        ac.addService(as3);

        RequestURIBasedOperationDispatcher ruisd = new RequestURIBasedOperationDispatcher();
View Full Code Here


        as3.addOperation(operation4);

        ConfigurationContext cc = ConfigurationContextFactory.createEmptyConfigurationContext();
        AxisConfiguration ac = cc.getAxisConfiguration();
        ac.addService(as1);
        ac.addService(as2);
        ac.addService(as3);

        RequestURIBasedOperationDispatcher ruisd = new RequestURIBasedOperationDispatcher();

        /**
 
View Full Code Here

        ConfigurationContext cc = ConfigurationContextFactory.createEmptyConfigurationContext();
        AxisConfiguration ac = cc.getAxisConfiguration();
        ac.addService(as1);
        ac.addService(as2);
        ac.addService(as3);

        RequestURIBasedOperationDispatcher ruisd = new RequestURIBasedOperationDispatcher();

        /**
         * Tests for global services
View Full Code Here

        AxisService as2 = new AxisService("Service2");
        sg.addService(as2);
        ServiceContext sc2 = sgc.getServiceContext(as2);

        ac.addService(as1);
        ac.addService(as2);

        AxisOperation operation1 = new InOnlyAxisOperation(new QName("operation1"));
        AxisOperation operation2 = new InOnlyAxisOperation(new QName("operation2"));
        as1.addOperation(operation1);
View Full Code Here

        AxisService as2 = new AxisService("Service2");
        sg.addService(as2);
        ServiceContext sc2 = sgc.getServiceContext(as2);

        ac.addService(as1);
        ac.addService(as2);

        AxisOperation operation1 = new InOnlyAxisOperation(new QName("operation1"));
        AxisOperation operation2 = new InOnlyAxisOperation(new QName("operation2"));
        as1.addOperation(operation1);
        as2.addOperation(operation2);
View Full Code Here

    private MessageContext initMsgCtxFromMessage(String messageResource) throws Exception {
        MessageContext ctx = new MessageContext();

        AxisConfiguration axisConfiguration = new AxisConfiguration();
        AxisService axisService = new AxisService("TestService");
        axisConfiguration.addService(axisService);
        AxisServiceGroup axisServiceGroup = new AxisServiceGroup();
        axisConfiguration.addServiceGroup(axisServiceGroup);
        ctx.setConfigurationContext(new ConfigurationContext(axisConfiguration));
        axisServiceGroup.addService(axisService);
        ServiceGroupContext gCtx = ctx.getConfigurationContext().createServiceGroupContext(axisServiceGroup);
View Full Code Here

        service.setFileName(new URL("file",contextPath, srvName));
      } catch (MalformedURLException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      axisConfig.addService(service);
    } catch (AxisFault se){
      se.printStackTrace();
    } catch(Throwable t){
      t.printStackTrace();
    }
View Full Code Here

        service.addSchema(schemas);

        AxisConfiguration axisConfiguration = new AxisConfiguration();
        service.setName("test_service");
        axisConfiguration.addChild(service);
        axisConfiguration.addService(service);
        configurationContext = new ConfigurationContext(axisConfiguration);
        configurationContext.setServicePath("test_service");
        configurationContext.setContextRoot("test/context");

        messageContext.setConfigurationContext(configurationContext);
View Full Code Here

        synapseService.addOperation(mediateOperation);
        List transports = new ArrayList();
        transports.add(Constants.TRANSPORT_HTTP);
        transports.add(Constants.TRANSPORT_HTTPS);
        synapseService.setExposedTransports(transports);
        axisCfg.addService(synapseService);
       
        // this server name is given by system property SynapseServerName
        // otherwise take host-name
        // if nothing found assume localhost
        String thisServerName = ServerManager.getInstance().getServerName();
View Full Code Here

        AxisOperation axisOp = new InOutAxisOperation(
                new QName("op"));
        msgCtx.setAxisOperation(axisOp);
        axisOp.setMessageReceiver(new SynapseMessageReceiver());
        service.addOperation(axisOp);
        axisConfiguration.addService(service);
        msgCtx.setTo(
                new EndpointReference("/axis2/services/" + "se" + "/" + "op"));
        msgCtx.setSoapAction("op");
        return msgCtx;
    }
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.