Package com.eviware.soapui.impl.rest.support

Examples of com.eviware.soapui.impl.rest.support.XmlBeansRestParamsTestPropertyHolder


        return result;
    }

    public static RestParamsPropertyHolder getSoapRequestParams(AbstractHttpRequest<?> request) {
        XmlBeansRestParamsTestPropertyHolder holder = new XmlBeansRestParamsTestPropertyHolder(request,
                RestParametersConfig.Factory.newInstance());
        try {
            // XmlObject requestXml = XmlObject.Factory.parse(
            // request.getRequestContent(), new XmlOptions()
            // .setLoadStripWhitespace().setLoadStripComments() );
            XmlObject requestXml = XmlUtils.createXmlObject(request.getRequestContent(), new XmlOptions()
                    .setLoadStripWhitespace().setLoadStripComments());
            Node[] nodes = XmlUtils.selectDomNodes(requestXml, "//text()");

            for (Node node : nodes) {
                String xpath = XmlUtils.createXPath(node.getParentNode());
                RestParamProperty property = holder.addProperty(node.getParentNode().getNodeName());
                property.setValue(node.getNodeValue());
                property.setPath(xpath);
            }
        } catch (XmlException e) {
            SoapUI.logError(e);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.rest.support.XmlBeansRestParamsTestPropertyHolder

Copyright © 2018 www.massapicom. 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.