Package org.apache.axis2.engine

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


                log.debug("After adding to allEndpoints map, size is "
                        + allEndpoints.size());
            }
        }
       
        serviceGroup.addService(axisService);

        if (!axisService.isClientSide()) {
            notifyObservers(new AxisEvent(AxisEvent.SERVICE_DEPLOY, axisService), axisService);
        }
    }
View Full Code Here


    public void testNewServiceGroupAddition() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("test");
        AxisService asv = new AxisService("testService");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        Resource re = pf.getServiceGroupPM().getServiceGroup("test");
        assertNotNull(re);
    }
View Full Code Here

    public void testSetServiceGroupProperty() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testGP");
        AxisService asv = new AxisService("testServiceGP");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);

        pf.getServiceGroupPM().setServiceGroupProperty(asvGroup, "name", "test");
        Resource re = pf.getServiceGroupPM().getServiceGroup("testGP");
        String value = re.getProperty("name");
View Full Code Here

    public void testNewServiceAddition() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testServiceGroup");
        AxisService asv = new AxisService("testServiceAdd");
        asvGroup.addService(asv);
        String policyXML = "<wsp:Policy\n" +
                "   xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\"\n" +
                "   xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2004/09/policy\"\n" +
                "   xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\"\n" +
                "   wsu:Id=\"SecureMessagePolicy\" >\n" +
View Full Code Here

    public void testServiceProperty() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testP");
        AxisService asv = new AxisService("testServiceP");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        pf.getServicePM().handleNewServiceAddition(asv);

        pf.getServicePM().setServiceProperty(asv, "key", "value");
        Resource re = pf.getServicePM().getService(asv);
View Full Code Here

    public void testUpdateServiceGroupParameter() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testGUp");
        AxisService asv = new AxisService("testServiceGUp");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);

        Resource reOld = pf.getServiceGroupPM().getServiceGroup("testGUp");

        Parameter para = new Parameter();
View Full Code Here

    public void testUpdateServiceParameter() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testUp");
        AxisService asv = new AxisService("testServiceUp");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        pf.getServicePM().handleNewServiceAddition(asv);

        Parameter parm = new Parameter();
        parm.setName("testParam");
View Full Code Here

    public void testDeleteService() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("ExistingSvGroup1");
        AxisService asv = new AxisService("ExistingSv1");
        asvGroup.addService(asv);

        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        pf.getServicePM().handleNewServiceAddition(asv);

        pf.getServicePM().deleteService(asv);
View Full Code Here

    public void testRemoveServiceParam() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testGD");
        AxisService asv = new AxisService("testServiceD");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        pf.getServicePM().handleNewServiceAddition(asv);

        Parameter parm = new Parameter();
        parm.setName("testParam1");
View Full Code Here

    public void testDeleteServiceGroup() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testSVG");
        AxisService asv = new AxisService("testSvgService");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);

        pf.getServiceGroupPM().deleteServiceGroup(asvGroup);
        String sgName = asvGroup.getServiceGroupName();
        String sgResourcePath = RegistryResources.SERVICE_GROUPS + sgName;
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.