Examples of printWSDL2()


Examples of org.apache.axis2.description.AxisService.printWSDL2()

                            ". A WSDL cannot be generated.", null);
                    return;
                }
                try {
                    ByteArrayOutputStream baos = new ByteArrayOutputStream();
                    service.printWSDL2(baos, getIpAddress());
                    response.addHeader(CONTENT_TYPE, TEXT_XML);
                    serverHandler.commitResponseHideExceptions(conn, response);
                    os.write(baos.toByteArray());

                } catch (Exception e) {
View Full Code Here

Examples of org.apache.axis2.description.AxisService.printWSDL2()

                }
            }
           
            if (uri.getQuery().startsWith("wsdl2")) {
                if (service != null) {
                    service.printWSDL2(response.getOutputStream(), uri.getHost(), servicePath);
                    return;
                }
            }
            if (uri.getQuery().startsWith("wsdl")) {
              if(service != null){
View Full Code Here

Examples of org.apache.axis2.description.AxisService.printWSDL2()

            } else if (parameters.containsKey("wsdl2")) {
                AxisService service = (AxisService) configurationContext.getAxisConfiguration().
                    getServices().get(serviceName);
                if (service != null) {
                    try {
                        service.printWSDL2(response.getOutputStream(),
                            getIpAddress(), servicePath);
                        response.setHeader(CONTENT_TYPE, TEXT_HTML);
                        response.setStatus(ResponseStatus.OK);

                    } catch (AxisFault e) {
View Full Code Here

Examples of org.apache.axis2.description.AxisService.printWSDL2()

                getServices().get(serviceName);
            if (service != null) {
                try {
                    response.addHeader(CONTENT_TYPE, TEXT_XML);
                    serverHandler.commitResponse(conn, response);
                    service.printWSDL2(os, getIpAddress());
                } catch (AxisFault e) {
                    handleException("Axis2 fault writing ?wsdl2 output", e);
                    return;
                } catch (SocketException e) {
                    handleException("Error getting ip address for ?wsdl2 output", e);
View Full Code Here

Examples of org.apache.axis2.description.AxisService.printWSDL2()

                        "No WSDL was provided for the Service " + serviceName +
                                ". A WSDL cannot be generated.", null);
            }
            try {
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                service.printWSDL2(baos, getIpAddress());
                response.addHeader(CONTENT_TYPE, TEXT_XML);
                serverHandler.commitResponseHideExceptions(conn, response);
                os.write(baos.toByteArray());
                closeOutputStream(os);
View Full Code Here

Examples of org.apache.axis2.description.AxisService.printWSDL2()

                if (wsdl2 >= 0) {
                    res.setContentType("text/xml");
                    String ip = extractHost(url);
                    String wsdlName = req.getParameter("wsdl2");
                   
                    int ret = axisService.printWSDL2(res.getOutputStream(), ip, wsdlName);
                    if (ret == 0) {
                        res.sendRedirect("");
                    } else if (ret == -1) {
                        res.sendError(HttpServletResponse.SC_NOT_FOUND);
                    }
View Full Code Here

Examples of org.apache.axis2.description.AxisService.printWSDL2()

                        "No WSDL was provided for the Service " + serviceName +
                                ". A WSDL cannot be generated.", null);
            }
            try {
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                service.printWSDL2(baos, getIpAddress());
                response.addHeader(CONTENT_TYPE, TEXT_XML);
                serverHandler.commitResponseHideExceptions(conn, response);
                os.write(baos.toByteArray());

            } catch (Exception e) {
View Full Code Here

Examples of org.apache.axis2.description.AxisService.printWSDL2()

                    MessageContext messageContext = MessageContext.getCurrentMessageContext();
                    AxisServiceGroup axisServiceGroup = new AxisServiceGroup();
                    axisServiceGroup.setParent(
                            messageContext.getConfigurationContext().getAxisConfiguration());
                    service.setParent(axisServiceGroup);
                    service.printWSDL2(outStream);
                } else if (WSDL2Constants.WSDL_NAMESPACE
                        .equals(documentElementNS.getNamespaceURI())) {
                    documentElement.serialize(outStream);
                } else {
                    throw new CarbonException("Invalid WSDL");
View Full Code Here

Examples of org.apache.axis2.description.AxisService.printWSDL2()

                getServices().get(serviceName);
            if (service != null) {
                try {
                    response.addHeader(CONTENT_TYPE, TEXT_XML);
                    serverHandler.commitResponse(conn, response);
                    service.printWSDL2(os, getIpAddress());
                } catch (AxisFault e) {
                    handleException("Axis2 fault writing ?wsdl2 output", e);
                    return;
                } catch (SocketException e) {
                    handleException("Axis2 fault writing ?wsdl2 output", e);
View Full Code Here

Examples of org.apache.axis2.description.AxisService.printWSDL2()

                HashMap services = configurationContext.getAxisConfiguration().getServices();
                AxisService service = (AxisService) services.get(serviceName);
                if (service != null) {
                    response.setStatus(HttpStatus.SC_OK);
                    response.setContentType("text/xml");
                    service.printWSDL2(response.getOutputStream(), getHost(request));
                    return;
                }
            }
            if (uri.endsWith("?wsdl")) {
                String serviceName = uri.substring(uri.lastIndexOf("/") + 1, uri.length() - 5);
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.