private void handleXSDRequest(HttpServletRequest req, HttpServletResponse res, AxisService axisService) throws IOException { if (!canExposeServiceMetadata(axisService)){ res.sendError(HttpServletResponse.SC_FORBIDDEN); return; } res.setContentType("text/xml"); int ret = axisService.printXSD(res.getOutputStream(), getParamtereIgnoreCase(req ,"xsd")); if (ret == 0) { //multiple schemas are present and the user specified //no name - in this case we cannot possibly pump a schema //so redirect to the service root res.sendRedirect(""); } else if (ret == -1) { res.sendError(HttpServletResponse.SC_NOT_FOUND); } }
private void handleXSDRequest(HttpServletRequest req, HttpServletResponse res, AxisService axisService) throws IOException { if (!canExposeServiceMetadata(axisService)){ res.sendError(HttpServletResponse.SC_FORBIDDEN); return; } res.setContentType("text/xml"); int ret = axisService.printXSD(res.getOutputStream(), getParamtereIgnoreCase(req ,"xsd")); if (ret == 0) { //multiple schemas are present and the user specified //no name - in this case we cannot possibly pump a schema //so redirect to the service root res.sendRedirect(""); } else if (ret == -1) { res.sendError(HttpServletResponse.SC_NOT_FOUND); } }
private void handleWSDL2Request(HttpServletRequest req, HttpServletResponse res, String url, AxisService axisService) throws IOException { if (!canExposeServiceMetadata(axisService)){ res.sendError(HttpServletResponse.SC_FORBIDDEN); return; } res.setContentType("text/xml"); String ip = extractHost(url); String wsdlName = getParamtereIgnoreCase(req , "wsdl2"); int ret = axisService.printWSDL2(res.getOutputStream(), ip, wsdlName); if (ret == 0) { res.sendRedirect(""); } else if (ret == -1) { res.sendError(HttpServletResponse.SC_NOT_FOUND); } }
private void handleWSDL2Request(HttpServletRequest req, HttpServletResponse res, String url, AxisService axisService) throws IOException { if (!canExposeServiceMetadata(axisService)){ res.sendError(HttpServletResponse.SC_FORBIDDEN); return; } res.setContentType("text/xml"); String ip = extractHost(url); String wsdlName = getParamtereIgnoreCase(req , "wsdl2"); int ret = axisService.printWSDL2(res.getOutputStream(), ip, wsdlName); if (ret == 0) { res.sendRedirect(""); } else if (ret == -1) { res.sendError(HttpServletResponse.SC_NOT_FOUND); } }
private void handleWSDLRequest(HttpServletRequest req, HttpServletResponse res, String url, AxisService axisService) throws IOException { if (!canExposeServiceMetadata(axisService)){ res.sendError(HttpServletResponse.SC_FORBIDDEN); return; } OutputStream out = res.getOutputStream(); res.setContentType("text/xml"); String ip = extractHost(url); String wsdlName = getParamtereIgnoreCase(req , "wsdl"); if (wsdlName != null && wsdlName.length()>0) { axisService.printUserWSDL(out, wsdlName, ip); } else { axisService.printWSDL(out, ip); } }
private void handleWSDLRequest(HttpServletRequest req, HttpServletResponse res, String url, AxisService axisService) throws IOException { if (!canExposeServiceMetadata(axisService)){ res.sendError(HttpServletResponse.SC_FORBIDDEN); return; } OutputStream out = res.getOutputStream(); res.setContentType("text/xml"); String ip = extractHost(url); String wsdlName = getParamtereIgnoreCase(req , "wsdl"); if (wsdlName != null && wsdlName.length()>0) { axisService.printUserWSDL(out, wsdlName, ip); } else { axisService.printWSDL(out, ip); } }