/** * Override the AxisServlet doGet to use the TuscanyListingAgent for ?wsdl */ @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { initContextRoot(request); String query = request.getQueryString(); if ((query != null) && (query.indexOf("wsdl2") >= 0 || query.indexOf("wsdl") >= 0 || query.indexOf("xsd") >= 0 || query.indexOf("policy") >= 0)) { agent.processListService(request, response); } else { super.doGet(request, response); } }
public void start() { try { createAxisService(deployedURI, wsdlPort); // Apply the configuration from any other policies for (PolicyProvider pp : endpoint.getPolicyProviders()) { pp.configureBinding(this); } if (deployedURI.startsWith("http://") || deployedURI.startsWith("https://") || deployedURI.startsWith("/")) { Axis2ServiceServlet servlet = new Axis2ServiceServlet(); servlet.init(configContext); if (httpSecurityContext.isSSLEnabled()){ deployedURI = servletHost.addServletMapping(endpointURI, servlet, httpSecurityContext); } else { deployedURI = servletHost.addServletMapping(endpointURI, servlet); } } endpoint.setDeployedURI(deployedURI); } catch (AxisFault e) { throw new RuntimeException(e); } }