Examples of XMLBindingMessageFormat


Examples of org.apache.cxf.bindings.xformat.XMLBindingMessageFormat

        }
        return null;
    }

    private boolean hasRootNode(BindingMessageInfo bmi, QName elName) {
        XMLBindingMessageFormat xmf = bmi.getExtensor(XMLBindingMessageFormat.class);
        return bmi.getMessageParts().size() != 1 && xmf != null && xmf.getRootNode().equals(elName);
    }
View Full Code Here

Examples of org.apache.cxf.bindings.xformat.XMLBindingMessageFormat

            bmi = boi.getInput();
        } else {
            mi = boi.getOperationInfo().getOutput();
            bmi = boi.getOutput();
        }
        XMLBindingMessageFormat xmf = bmi.getExtensor(XMLBindingMessageFormat.class);
        QName rootInModel = null;
        if (xmf != null) {
            rootInModel = xmf.getRootNode();
        }
        if (boi.isUnwrapped()
            || mi.getMessageParts().size() == 1) {
            // wrapper out interceptor created the wrapper
            // or if bare-one-param
View Full Code Here

Examples of org.apache.cxf.bindings.xformat.XMLBindingMessageFormat

    private boolean findXMLFormatRootNode(Iterator it, BindingOperationInfo bo, String errorPath) {
        while (it != null && it.hasNext()) {
            Object ext = it.next();
            if (ext instanceof XMLBindingMessageFormat) {
                XMLBindingMessageFormat xmlFormat = (XMLBindingMessageFormat)ext;
                if (xmlFormat.getRootNode() == null) {
                    QName rootNodeName = bo.getName();
                    addErrorMessage(errorPath
                                    + ": empty value of rootNode attribute, the value should be "
                                    + rootNodeName);
                    return false;                   
View Full Code Here

Examples of org.apache.cxf.bindings.xformat.XMLBindingMessageFormat

                                          BindingOperationInfo bo,
                                          String errorPath) {
        while (it != null && it.hasNext()) {
            ExtensibilityElement ext = it.next();
            if (ext instanceof XMLBindingMessageFormat) {
                XMLBindingMessageFormat xmlFormat = (XMLBindingMessageFormat)ext;
                if (xmlFormat.getRootNode() == null) {
                    QName rootNodeName = bo.getName();
                    addErrorMessage(errorPath
                                    + ": empty value of rootNode attribute, the value should be "
                                    + rootNodeName);
                    return false;                   
View Full Code Here

Examples of org.apache.cxf.bindings.xformat.XMLBindingMessageFormat

import org.apache.cxf.wsdl.AbstractWSDLPlugin;

public final class XmlIoPlugin extends AbstractWSDLPlugin {

    public ExtensibilityElement createExtension(final Map<String, Object> args) throws WSDLException {
        XMLBindingMessageFormat xmlFormat = null;

        Class<?> clz = getOption(args, Class.class);
        QName qname = getOption(args, QName.class);

        xmlFormat = (XMLBindingMessageFormat)registry.createExtension(clz, ToolConstants.XML_FORMAT);
        xmlFormat.setRootNode(qname);
        return xmlFormat;
    }
View Full Code Here

Examples of org.apache.cxf.bindings.xformat.XMLBindingMessageFormat

            bmi = boi.getInput();
        } else {
            mi = boi.getOperationInfo().getOutput();
            bmi = boi.getOutput();
        }
        XMLBindingMessageFormat xmf = bmi.getExtensor(XMLBindingMessageFormat.class);
        QName rootInModel = null;
        if (xmf != null) {
            rootInModel = xmf.getRootNode();
        }
        if (mi.getMessageParts().size() == 1) {
            // bare-one-param & wrap
            new BareOutInterceptor().handleMessage(message);
        } else {
View Full Code Here

Examples of org.apache.cxf.bindings.xformat.XMLBindingMessageFormat

    private boolean findXMLFormatRootNode(Iterator it, BindingOperationInfo bo, String errorPath) {
        while (it != null && it.hasNext()) {
            Object ext = it.next();
            if (ext instanceof XMLBindingMessageFormat) {
                XMLBindingMessageFormat xmlFormat = (XMLBindingMessageFormat)ext;
                QName rootNodeName = 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.bindings.xformat.XMLBindingMessageFormat

import org.apache.cxf.wsdl.AbstractWSDLPlugin;

public final class XmlIoPlugin extends AbstractWSDLPlugin {

    public ExtensibilityElement createExtension(final Map<String, Object> args) throws WSDLException {
        XMLBindingMessageFormat xmlFormat = null;

        Class clz = getOption(args, Class.class);
        QName qname = getOption(args, QName.class);

        xmlFormat = (XMLBindingMessageFormat)registry.createExtension(clz, ToolConstants.XML_FORMAT);
        xmlFormat.setRootNode(qname);
        return xmlFormat;
    }
View Full Code Here

Examples of org.apache.cxf.bindings.xformat.XMLBindingMessageFormat

        }
        return null;
    }

    private boolean hasRootNode(BindingMessageInfo bmi, QName elName) {
        XMLBindingMessageFormat xmf = bmi.getExtensor(XMLBindingMessageFormat.class);
        return bmi.getMessageParts().size() != 1 && xmf != null && xmf.getRootNode().equals(elName);
    }
View Full Code Here

Examples of org.apache.cxf.bindings.xformat.XMLBindingMessageFormat

        }
        return match;
    }

    private boolean hasRootNode(BindingMessageInfo bmi, QName elName) {
        XMLBindingMessageFormat xmf = bmi.getExtensor(XMLBindingMessageFormat.class);
        return xmf != null && xmf.getRootNode().equals(elName);
    }
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.