Package com.eviware.soapui.model.propertyexpansion

Examples of com.eviware.soapui.model.propertyexpansion.DefaultPropertyExpansionContext


        String req = mockResponse.getResponseContent();

        try {
            UISupport.setHourglassCursor();
            Document dom = XmlUtils.parseXml(req);
            outgoing.processOutgoing(dom, new DefaultPropertyExpansionContext(mockResponse));
            StringWriter writer = new StringWriter();
            XmlUtils.serialize(dom, writer);
            mockResponse.setResponseContent(writer.toString());
        } catch (Exception e1) {
            UISupport.showErrorMessage(e1);
View Full Code Here


    public void actionPerformed(ActionEvent e) {
        try {
            SoapVersion soapVersion = mockResponse.getOperation().getInterface().getSoapVersion();
            String content = mockResponse.getResponseContent();
            WsaUtils wsaUtils = new WsaUtils(content, soapVersion, mockResponse.getOperation(),
                    new DefaultPropertyExpansionContext(mockResponse));
            content = wsaUtils.removeWSAddressing(mockResponse);
            mockResponse.setResponseContent(content);
        } catch (Exception e1) {
            UISupport.showErrorMessage(e1);
        } finally {
View Full Code Here

        String req = request.getRequestContent();

        try {
            UISupport.setHourglassCursor();
            Document dom = XmlUtils.parseXml(req);
            outgoing.processOutgoing(dom, new DefaultPropertyExpansionContext(request));
            StringWriter writer = new StringWriter();
            XmlUtils.serialize(dom, writer);
            request.setRequestContent(writer.toString());
        } catch (Exception e1) {
            UISupport.showErrorMessage(e1);
View Full Code Here

    public void actionPerformed(ActionEvent e) {
        try {
            SoapVersion soapVersion = request.getOperation().getInterface().getSoapVersion();
            String content = request.getRequestContent();
            WsaUtils wsaUtils = new WsaUtils(content, soapVersion, request.getOperation(),
                    new DefaultPropertyExpansionContext(request));
            content = wsaUtils.addWSAddressingRequest(request);
            request.setRequestContent(content);
        } catch (Exception e1) {
            SoapUI.logError(e1);
        }
View Full Code Here

        try {
            if (UISupport.confirm("Remove WS-A headers", "Remove WS-A headers")) {
                SoapVersion soapVersion = request.getOperation().getInterface().getSoapVersion();
                String content = request.getRequestContent();
                WsaUtils wsaUtils = new WsaUtils(content, soapVersion, request.getOperation(),
                        new DefaultPropertyExpansionContext(request));
                content = wsaUtils.removeWSAddressing(request);
                request.setRequestContent(content);
            }
        } catch (Exception e1) {
            SoapUI.logError(e1);
View Full Code Here

import com.eviware.soapui.model.propertyexpansion.DefaultPropertyExpansionContext;

public class PropertySupport {
    public static void applySystemProperties(Object target, String scope, ModelItem modelItem) {
        PropertyDescriptor[] descriptors = PropertyUtils.getPropertyDescriptors(target);
        DefaultPropertyExpansionContext context = new DefaultPropertyExpansionContext(modelItem);
        Properties properties = System.getProperties();

        for (PropertyDescriptor descriptor : descriptors) {
            String name = descriptor.getName();
            String key = scope + "." + name;
            if (PropertyUtils.isWriteable(target, name) && properties.containsKey(key)) {
                try {
                    String value = context.expand(String.valueOf(properties.get(key)));
                    BeanUtils.setProperty(target, name, value);
                    SoapUI.log.info("Set property [" + name + "] to [" + value + "] in scope [" + scope + "]");
                } catch (Throwable e) {
                    SoapUI.logError(e);
                }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.propertyexpansion.DefaultPropertyExpansionContext

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.