Examples of printSchema()


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

                AxisService service = cfgCtx.getAxisConfiguration()
                    .getServices().get(serviceName);
                if (service != null) {
                    try {
                        ByteArrayOutputStream baos = new ByteArrayOutputStream();
                        service.printSchema(baos);
                        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.printSchema()

                return;
              }
            }
            if (uri.getQuery().startsWith("xsd=")) {
                if (service != null) {
                    service.printSchema(response.getOutputStream());
                    return;
                }
            }
            //cater for named xsds - check for the xsd name
            if (uri.getQuery().startsWith("xsd")) {
View Full Code Here

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

                if (parameters.get("xsd") == null || "".equals(parameters.get("xsd"))) {
                    AxisService service = (AxisService) configurationContext.getAxisConfiguration()
                        .getServices().get(serviceName);
                    if (service != null) {
                        try {
                            service.printSchema(response.getOutputStream());
                            response.setHeader(CONTENT_TYPE, TEXT_HTML);
                            response.setStatus(ResponseStatus.OK);

                        } catch (AxisFault axisFault) {
                            handleException("Error writing ?xsd output to client", axisFault, response);
View Full Code Here

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

                    .getServices().get(serviceName);
                if (service != null) {
                    try {
                        response.addHeader(CONTENT_TYPE, TEXT_XML);
                        serverHandler.commitResponse(conn, response);
                        service.printSchema(os);

                    } catch (AxisFault axisFault) {
                        handleException("Error writing ?xsd output to client", axisFault);
                        return;
                    }
View Full Code Here

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

            AxisService service = cfgCtx.getAxisConfiguration()
                    .getServices().get(serviceName);
            if (service != null) {
                try {
                    ByteArrayOutputStream baos = new ByteArrayOutputStream();
                    service.printSchema(baos);
                    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.printSchema()

            AxisService service = cfgCtx.getAxisConfiguration()
                    .getServices().get(serviceName);
            if (service != null) {
                try {
                    ByteArrayOutputStream baos = new ByteArrayOutputStream();
                    service.printSchema(baos);
                    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.printSchema()

                    .getServices().get(serviceName);
                if (service != null) {
                    try {
                        response.addHeader(CONTENT_TYPE, TEXT_XML);
                        serverHandler.commitResponse(conn, response);
                        service.printSchema(os);

                    } catch (AxisFault axisFault) {
                        handleException("Error writing ?xsd output to client", axisFault);
                        return;
                    }
View Full Code Here

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

                HashMap services = configurationContext.getAxisConfiguration().getServices();
                AxisService service = (AxisService) services.get(serviceName);
                if (service != null) {
                    response.setStatus(HttpStatus.SC_OK);
                    response.setContentType("text/xml");
                    service.printSchema(response.getOutputStream());
                    return;
                }
            }
            //cater for named xsds - check for the xsd name
            if (uri.indexOf("?xsd=") > 0) {
View Full Code Here

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

                if (service != null) {
                    boolean canExposeServiceMetadata = canExposeServiceMetadata(service);
                    if (canExposeServiceMetadata) {
                        response.setStatus(HttpStatus.SC_OK);
                        response.setContentType("text/xml");
                        service.printSchema(response.getOutputStream());
                    } else {
                        response.setStatus(HttpStatus.SC_FORBIDDEN);
                    }
                    return;
                }
View Full Code Here

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

                    .getServices().get(serviceName);
                if (service != null) {
                    try {
                        response.addHeader(CONTENT_TYPE, TEXT_XML);
                        serverHandler.commitResponse(conn, response);
                        service.printSchema(os);

                    } catch (AxisFault axisFault) {
                        handleException("Error writing ?xsd output to client", axisFault);
                        return;
                    } catch (IOException e) {
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.