/** * Print the WSDL2.0 with a default URL. This will be called only during * codegen time. * * @param out The output stream for the data to be written for. NOTE: the stream is not closed after the operation, * it is the responsibility of the caller to close the stream after usage. * @throws AxisFault */ public void printWSDL2(OutputStream out) throws AxisFault { printWSDL2(out, null); }
/** * Print the WSDL2.0 with a default URL. This will be called only during * codegen time. * * @param out The output stream for the data to be written for. NOTE: the stream is not closed after the operation, * it is the responsibility of the caller to close the stream after usage. * @throws AxisFault */ public void printWSDL2(OutputStream out) throws AxisFault { printWSDL2(out, null); }
public void writeWSDL(AxisService axisService) { try { if (axisService != null) { //create a output file File outputFile = FileWriter.createClassFile(baseFolder, null, axisService.getName(), ".wsdl"); FileOutputStream fos = new FileOutputStream(outputFile); axisService.printWSDL2(fos); fos.flush(); fos.close(); } } catch (Exception e) { throw new RuntimeException("WSDL writing failed!", e); } }
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); } }
printWSDL2(out, requestIP);
printWSDL2(out, requestIP);
service.printWSDL2(baos, getIpAddress()); response.addHeader(CONTENT_TYPE, TEXT_XML); serverHandler.commitResponseHideExceptions(conn, response);
service.printWSDL2(output, getIpAddress()); response.addHeader(CONTENT_TYPE, TEXT_XML); sendResponseAndFinish(response, output.toByteArray(), conn, os, msgContext);
response.setStatus(HttpStatus.SC_OK); response.setContentType("text/xml"); service.printWSDL2(response.getOutputStream(), getHost(request)); } else { response.setStatus(HttpStatus.SC_FORBIDDEN);
response.setStatus(HttpStatus.SC_OK); response.setContentType("text/xml"); service.printWSDL2(response.getOutputStream(), getHost(request)); } else { response.setStatus(HttpStatus.SC_FORBIDDEN);