Examples of printWSDL()


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

        AxisConfiguration axisCfg = new AxisConfiguration();
        ProxyService proxyService = new ProxyService("Test");
        AxisService axisService = proxyService.buildAxisService(synCfg, axisCfg);
        // Serialize the WSDL
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        axisService.printWSDL(baos);
        // Check that the produced WSDL can be read by WSDL4J
        WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
        wsdlReader.readWSDL(null, new InputSource(new ByteArrayInputStream(baos.toByteArray())));
    }
   
View Full Code Here

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

        resourceMap.addResource("imported.xsd", "imported_xsd");
        proxyService.setResourceMap(resourceMap);
        AxisService axisService = proxyService.buildAxisService(synCfg, axisCfg);
        // Serialize the WSDL. Note that we can't parse the WSDL because it will have imports
        // referring to locations such as "my-matches?xsd=xsd0.xsd".
        axisService.printWSDL(new ByteArrayOutputStream());
    }
   
    /**
     * Test a proxy service with recursive imports and without a {@link ResourceMap}.
     * Regression test for SYNAPSE-442.
View Full Code Here

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

            if (service != null) {
                try {
                    ByteArrayOutputStream baos = new ByteArrayOutputStream();
                    String parameterValue = parameters.get("wsdl");
                    if (parameterValue == null) {
                        service.printWSDL(baos, getIpAddress());
                    } else {
                        // here the parameter value should be the wsdl file name
                        service.printUserWSDL(baos, parameterValue);
                    }
                    response.addHeader(CONTENT_TYPE, TEXT_XML);
View Full Code Here

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

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

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

            } else if (parameters.containsKey("wsdl")) {
                AxisService service = (AxisService) configurationContext.getAxisConfiguration().
                    getServices().get(serviceName);
                if (service != null) {
                    try {
                        service.printWSDL(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.printWSDL()

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

                } catch (AxisFault e) {
                    handleException("Axis2 fault writing ?wsdl output", e);
                    return;
                } catch (SocketException e) {
View Full Code Here

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

        if (service != null) {
            try {
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                String parameterValue = parameters.get("wsdl");
                if (parameterValue == null) {
                    service.printWSDL(baos, getIpAddress());
                } else {
                    // here the parameter value should be the wsdl file name
                    service.printUserWSDL(baos, parameterValue);
                }
                response.addHeader(CONTENT_TYPE, TEXT_XML);
View Full Code Here

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

                    String wsdlName = req.getParameter("wsdl");

                    if (wsdlName != null && wsdlName.length()>0) {
                        axisService.printUserWSDL(out, wsdlName, ip);
                    } else {
                        axisService.printWSDL(out, ip);
                    }
                    return;
                } else if (xsd >= 0) {
                    res.setContentType("text/xml");
                    int ret = axisService.printXSD(res.getOutputStream(), req.getParameter("xsd"));
View Full Code Here

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

                if (seperatorIndex > 0) {
                    ip = ip.substring(0, seperatorIndex);
                }
            }

            axisService.printWSDL(out, ip);

            try {
                XMLStreamReader xmlReader = XMLInputFactory.newInstance().createXMLStreamReader(
                        new ByteArrayInputStream(out.toByteArray()));
View Full Code Here

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

                // If an RpcMessageReceiver is used, it does not make sense to store the WSDL in the AAR
                if (!isRpcMessageReceiver) {
                    File wsdlF = new File(f.getAbsolutePath() + File.separator + "META-INF",
                                          formatServiceName(axisService.getName()) + ".wsdl");
                    OutputStream wbOut = new FileOutputStream(wsdlF);
                    axisService.printWSDL(wbOut, NetworkUtils.getLocalHostname());
                }
            }
            File fout = new File(workdir + File.separator + "dump_aar_output" + File.separator
                                 + uuid);
            if(!fout.exists() && !fout.mkdirs()){
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.