Examples of XMLFormat


Examples of com.salas.bb.utils.discovery.detector.XMLFormat

        {
            uis = new URLInputStream(source, System.getProperty("http.agent.discoverer"));
            uis.setRedirectionListener(listener);

            XMLFormatDetector detector = new XMLFormatDetector();
            XMLFormat fmt = detector.detect(uis);

            detected = fmt != null && fmt != XMLFormat.OPML;
        } catch (IOException e)
        {
            throw new UrlDiscovererException(e);
View Full Code Here

Examples of org.apache.cxf.tools.common.extensions.xmlformat.XMLFormat

    private boolean findXMLFormatRootNode(Iterator it, BindingOperation bo, String errorPath) {
        while (it.hasNext()) {
            Object ext = it.next();
            if (ext instanceof XMLFormat) {
                XMLFormat xmlFormat = (XMLFormat)ext;
                // String rootNodeValue = def.getPrefix(def.getTargetNamespace()) + ":" + bo.getName();
                QName rootNodeName = new QName(def.getTargetNamespace(), bo.getName());
                if (xmlFormat.getRootNode() != null) {
                    if (xmlFormat.getRootNode().equals(rootNodeName)) {
                        return true;
                    } else {
                        addErrorMessage(errorPath
                                        + ": wrong value of rootNode attribute, the value should be "
                                        + rootNodeName);
View Full Code Here

Examples of org.apache.cxf.tools.common.extensions.xmlformat.XMLFormat

    private XMLFormat getXMLBody(Class clz, String operationName) throws ToolException {
        if (extReg == null) {
            extReg = wsdlFactory.newPopulatedExtensionRegistry();
        }
        XMLFormat xmlFormat = null;
        try {
            xmlFormat = (XMLFormat)extReg.createExtension(clz, ToolConstants.XML_FORMAT);
        } catch (WSDLException wse) {
            Message msg = new Message("FAIL_TO_CREATE_XMLBINDING", LOG);
            throw new ToolException(msg);
        }
        xmlFormat.setRootNode(new QName(wsdlDefinition.getTargetNamespace(), operationName));
        return xmlFormat;
    }
View Full Code Here

Examples of org.objectweb.celtix.tools.extensions.xmlformat.XMLFormat

    private boolean findXMLFormatRootNode(Iterator it, BindingOperation bo, String errorPath) {
        while (it.hasNext()) {
            Object ext = it.next();
            if (ext instanceof XMLFormat) {
                XMLFormat xmlFormat = (XMLFormat)ext;
                // String rootNodeValue = def.getPrefix(def.getTargetNamespace()) + ":" + bo.getName();
                QName rootNodeName = new QName(def.getTargetNamespace(), bo.getName());
                if (xmlFormat.getRootNode() != null) {
                    if (xmlFormat.getRootNode().equals(rootNodeName)) {
                        return true;
                    } else {
                        addErrorMessage(errorPath
                                        + ": wrong value of rootNode attribute, the value should be "
                                        + rootNodeName);
View Full Code Here

Examples of org.objectweb.celtix.tools.extensions.xmlformat.XMLFormat

    private XMLFormat getXMLBody(Class clz, String operationName) throws ToolException {
        if (extReg == null) {
            extReg = wsdlFactory.newPopulatedExtensionRegistry();
        }
        XMLFormat xmlFormat = null;
        try {
            xmlFormat = (XMLFormat)extReg.createExtension(clz, ToolConstants.XML_FORMAT);
        } catch (WSDLException wse) {
            Message msg = new Message("FAIL_TO_CREATE_XMLBINDING", LOG);
            throw new ToolException(msg);
        }
        xmlFormat.setRootNode(new QName(wsdlDefinition.getTargetNamespace(), operationName));
        return xmlFormat;
    }
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.