Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisServiceGroup.removeService()


            URL fn = axisService.getFileName();
            if (fn != null) {
                fileName = fn.getPath();
            }
            // removing the service from axis configuration
            axisConfig.removeService(axisService.getName());
        }
        // remove the service group from axis config and config context
        AxisServiceGroup serviceGroup = axisConfig.removeServiceGroup(asGroup.getServiceGroupName());
        if (serviceGroup != null) {
            getConfigContext().removeServiceGroupContext(serviceGroup);
View Full Code Here


                log.warn("No event source exists by the name : " + eventsource.getName());
                return;
            }

            AxisConfiguration axisCfg = getSynapseConfiguration().getAxisConfiguration();
            axisCfg.removeService(eventsource.getName());
            SynapseEventSource synapseEventSource = buildEventSource(eventsource);
            synapseEventSource.buildService(axisCfg);
            synapseEventSource.setFileName(oldEventSrc.getFileName());
            synapseConfiguration.removeEventSource(eventsource.getName());
            synapseConfiguration.addEventSource(eventsource.getName(), synapseEventSource);
View Full Code Here

    public void processdeleteService(HttpServletRequest req, HttpServletResponse res)
            throws IOException, ServletException {
        String serviceName = req.getParameter("serviceName");
        AxisConfiguration axisConfiguration = configContext.getAxisConfiguration();
        if (axisConfiguration.getService(serviceName) != null) {
            axisConfiguration.removeService(serviceName);
            req.getSession().setAttribute("status", "Service '" + serviceName + "' has been successfully removed.");
        } else {
            req.getSession().setAttribute("status", "Failed to delete service '" + serviceName + "'. Service doesn't exist.");
        }
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.