Package com.eviware.soapui.impl.wsdl

Examples of com.eviware.soapui.impl.wsdl.WsdlInterface


            config.setPath(dialog.getValue(CreateForm.PATH));
            config.addNewResponse();
            config.getResponse().addNewResponseContent();

            if (dialog.getBooleanValue(CreateForm.CREATE_RESPONSE)) {
                WsdlInterface iface = (WsdlInterface) project.getInterfaceByName(config.getInterface());
                String response = iface.getOperationByName(config.getOperation()).createResponse(
                        project.getSettings().getBoolean(WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS));

                CompressedStringSupport.setString(config.getResponse().getResponseContent(), response);
            }
View Full Code Here


        if (dialog.show()) {
            String ifaceName = dialog.getValue(Form.INTERFACE);
            String operationName = dialog.getValue(Form.OPERATION);

            WsdlInterface iface = (WsdlInterface) project.getInterfaceByName(ifaceName);
            WsdlOperation operation = iface.getOperationByName(operationName);
            target.setOperation(operation);

            String name = dialog.getValue(Form.NAME).trim();
            if (name.length() > 0 && !target.getName().equals(name)) {
                target.setName(name);
View Full Code Here

            mockResponseTestStep.setOperation(dialog.getValue(CreateForm.OPERATION));
        }
    }

    private void updateOperations(String interfaceName) {
        WsdlInterface iface = (WsdlInterface) project.getInterfaceByName(interfaceName);
        dialog.setOptions(CreateForm.OPERATION, new ModelItemNames<Operation>(iface.getOperationList()).getNames());
    }
View Full Code Here

                e.printStackTrace();
            }
        }

        if (container.getWsrmConfig().isWsrmEnabled()) {
            WsdlInterface iface = request.getOperation().getInterface();
            WsrmUtils utils = new WsrmUtils(iface.getSoapVersion());
            utils.closeSequence(request.getEndpoint(), iface.getSoapVersion(), request.getWsrmConfig()
                    .getVersionNameSpace(), request.getWsrmConfig().getUuid(), request.getWsrmConfig()
                    .getSequenceIdentifier(), 1l, request.getOperation());
        }
    }
View Full Code Here

    }

    public boolean beforeSubmit(Submit submit, SubmitContext context) {
        WsrmContainer container = (WsrmContainer) submit.getRequest();
        if (container.getWsrmConfig().isWsrmEnabled()) {
            WsdlInterface iface = request.getOperation().getInterface();
            WsrmUtils utils = new WsrmUtils(iface.getSoapVersion());

            WsrmSequence sequence = utils.createSequence(request.getEndpoint(), iface.getSoapVersion(), request
                    .getWsrmConfig().getVersionNameSpace(), request.getWsrmConfig().getAckTo(), 0l, request.getOperation(),
                    ((WsdlRequest) submit.getRequest()).getWsaConfig().getTo(), request.getWsrmConfig().getOfferEndpoint());

            request.getWsrmConfig().setSequenceIdentifier(sequence.getIdentifier());
            request.getWsrmConfig().setUuid(sequence.getUuid());

            if (!request.getWsrmConfig().getVersion().equals(WsrmVersionTypeConfig.X_1_0.toString())) {
                WsmcInjection receiveInjection = new WsmcInjection(request.getEndpoint(), request.getOperation(),
                        iface.getSoapVersion(), request.getWsrmConfig().getUuid());
                request.setAfterRequestInjection(receiveInjection);
            }

        }
        return true;
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.WsdlInterface

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.