Examples of WsdlRequestConfig


Examples of com.eviware.soapui.config.WsdlRequestConfig

    RequestStepConfig requestStepConfig = RequestStepConfig.Factory.newInstance();

    requestStepConfig.setInterface( request.getOperation().getInterface().getName() );
    requestStepConfig.setOperation( request.getOperation().getName() );

    WsdlRequestConfig testRequestConfig = requestStepConfig.addNewRequest();

    testRequestConfig.setName( stepName );
    testRequestConfig.setEncoding( request.getEncoding() );
    testRequestConfig.setEndpoint( request.getEndpoint() );
    testRequestConfig.addNewRequest().setStringValue( request.getRequestContent() );
    testRequestConfig.setOutgoingWss( request.getOutgoingWss() );
    testRequestConfig.setIncomingWss( request.getIncomingWss() );
    testRequestConfig.setTimeout( request.getTimeout() );
    testRequestConfig.setSslKeystore( request.getSslKeystore() );

    testRequestConfig.setUseWsAddressing( request.isWsaEnabled() );
    testRequestConfig.setUseWsReliableMessaging( request.isWsrmEnabled() );

    if( request.getConfig().isSetWsaConfig() )
      testRequestConfig.setWsaConfig( ( WsaConfigConfig )request.getConfig().getWsaConfig().copy() );

    if( request.getConfig().isSetWsrmConfig() )
      testRequestConfig.setWsrmConfig( ( WsrmConfigConfig )request.getConfig().getWsrmConfig().copy() );

    if( ( CredentialsConfig )request.getConfig().getCredentials() != null )
    {
      testRequestConfig.setCredentials( ( CredentialsConfig )request.getConfig().getCredentials().copy() );
    }

    testRequestConfig.setWssPasswordType( request.getConfig().getWssPasswordType() );

    TestStepConfig testStep = TestStepConfig.Factory.newInstance();
    testStep.setType( REQUEST_TYPE );
    testStep.setConfig( requestStepConfig );
View Full Code Here

Examples of com.eviware.soapui.config.WsdlRequestConfig

    RequestStepConfig requestStepConfig = RequestStepConfig.Factory.newInstance();

    requestStepConfig.setInterface( operation.getInterface().getName() );
    requestStepConfig.setOperation( operation.getName() );

    WsdlRequestConfig testRequestConfig = requestStepConfig.addNewRequest();
    testRequestConfig.addNewWsaConfig();

    testRequestConfig.setName( stepName );
    testRequestConfig.setEncoding( "UTF-8" );
    String[] endpoints = operation.getInterface().getEndpoints();
    if( endpoints.length > 0 )
      testRequestConfig.setEndpoint( endpoints[0] );

    String requestContent = operation.createRequest( SoapUI.getSettings().getBoolean(
        WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS ) );
    testRequestConfig.addNewRequest().setStringValue( requestContent );

    // add ws-a action
    String defaultAction = WsdlUtils.getDefaultWsaAction( operation, false );
    if( StringUtils.hasContent( defaultAction ) )
      testRequestConfig.getWsaConfig().setAction( defaultAction );

    TestStepConfig testStep = TestStepConfig.Factory.newInstance();
    testStep.setType( REQUEST_TYPE );
    testStep.setConfig( requestStepConfig );
View Full Code Here

Examples of com.eviware.soapui.config.WsdlRequestConfig

    RequestStepConfig requestStepConfig = RequestStepConfig.Factory.newInstance();

    requestStepConfig.setInterface( operation.getInterface().getName() );
    requestStepConfig.setOperation( operation.getName() );

    WsdlRequestConfig testRequestConfig = requestStepConfig.addNewRequest();

    testRequestConfig.setName( name );
    testRequestConfig.setEncoding( "UTF-8" );
    String[] endpoints = operation.getInterface().getEndpoints();
    if( endpoints.length > 0 )
      testRequestConfig.setEndpoint( endpoints[0] );
    testRequestConfig.addNewRequest().setStringValue( requestContent );

    if( values.getBoolean( ADD_SOAP_RESPONSE_ASSERTION ) )
    {
      TestAssertionConfig assertionConfig = testRequestConfig.addNewAssertion();
      assertionConfig.setType( SoapResponseAssertion.ID );
    }

    if( values.getBoolean( ADD_SCHEMA_ASSERTION ) )
    {
      TestAssertionConfig assertionConfig = testRequestConfig.addNewAssertion();
      assertionConfig.setType( SchemaComplianceAssertion.ID );
    }

    if( values.getBoolean( ADD_SOAP_FAULT_ASSERTION ) )
    {
      TestAssertionConfig assertionConfig = testRequestConfig.addNewAssertion();
      assertionConfig.setType( NotSoapFaultAssertion.ID );
    }

    TestStepConfig testStep = TestStepConfig.Factory.newInstance();
    testStep.setType( REQUEST_TYPE );
View Full Code Here

Examples of com.eviware.soapui.config.WsdlRequestConfig

        RequestStepConfig requestStepConfig = RequestStepConfig.Factory.newInstance();

        requestStepConfig.setInterface(request.getOperation().getInterface().getName());
        requestStepConfig.setOperation(request.getOperation().getName());

        WsdlRequestConfig testRequestConfig = requestStepConfig.addNewRequest();

        testRequestConfig.setName(stepName);
        testRequestConfig.setEncoding(request.getEncoding());
        testRequestConfig.setEndpoint(request.getEndpoint());
        testRequestConfig.addNewRequest().setStringValue(request.getRequestContent());
        testRequestConfig.setOutgoingWss(request.getOutgoingWss());
        testRequestConfig.setIncomingWss(request.getIncomingWss());
        testRequestConfig.setTimeout(request.getTimeout());
        testRequestConfig.setSslKeystore(request.getSslKeystore());

        testRequestConfig.setUseWsAddressing(request.isWsaEnabled());
        testRequestConfig.setUseWsReliableMessaging(request.isWsrmEnabled());

        if (request.getConfig().isSetWsaConfig()) {
            testRequestConfig.setWsaConfig((WsaConfigConfig) request.getConfig().getWsaConfig().copy());
        }

        if (request.getConfig().isSetWsrmConfig()) {
            testRequestConfig.setWsrmConfig((WsrmConfigConfig) request.getConfig().getWsrmConfig().copy());
        }

        if ((CredentialsConfig) request.getConfig().getCredentials() != null) {
            testRequestConfig.setCredentials((CredentialsConfig) request.getConfig().getCredentials().copy());
        }

        testRequestConfig.setWssPasswordType(request.getConfig().getWssPasswordType());

        TestStepConfig testStep = TestStepConfig.Factory.newInstance();
        testStep.setType(REQUEST_TYPE);
        testStep.setConfig(requestStepConfig);
View Full Code Here

Examples of com.eviware.soapui.config.WsdlRequestConfig

        RequestStepConfig requestStepConfig = RequestStepConfig.Factory.newInstance();

        requestStepConfig.setInterface(operation.getInterface().getName());
        requestStepConfig.setOperation(operation.getName());

        WsdlRequestConfig testRequestConfig = requestStepConfig.addNewRequest();
        testRequestConfig.addNewWsaConfig();

        testRequestConfig.setName(stepName);
        testRequestConfig.setEncoding("UTF-8");
        String[] endpoints = operation.getInterface().getEndpoints();
        if (endpoints.length > 0) {
            testRequestConfig.setEndpoint(endpoints[0]);
        }

        String requestContent = operation.createRequest(SoapUI.getSettings().getBoolean(
                WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS));
        testRequestConfig.addNewRequest().setStringValue(requestContent);

        // add ws-a action
        String defaultAction = WsdlUtils.getDefaultWsaAction(operation, false);
        if (StringUtils.hasContent(defaultAction)) {
            testRequestConfig.getWsaConfig().setAction(defaultAction);
        }

        TestStepConfig testStep = TestStepConfig.Factory.newInstance();
        testStep.setType(REQUEST_TYPE);
        testStep.setConfig(requestStepConfig);
View Full Code Here

Examples of com.eviware.soapui.config.WsdlRequestConfig

        RequestStepConfig requestStepConfig = RequestStepConfig.Factory.newInstance();

        requestStepConfig.setInterface(operation.getInterface().getName());
        requestStepConfig.setOperation(operation.getName());

        WsdlRequestConfig testRequestConfig = requestStepConfig.addNewRequest();

        testRequestConfig.setName(name);
        testRequestConfig.setEncoding("UTF-8");
        String[] endpoints = operation.getInterface().getEndpoints();
        if (endpoints.length > 0) {
            testRequestConfig.setEndpoint(endpoints[0]);
        }
        testRequestConfig.addNewRequest().setStringValue(requestContent);

        if (values.getBoolean(ADD_SOAP_RESPONSE_ASSERTION)) {
            TestAssertionConfig assertionConfig = testRequestConfig.addNewAssertion();
            assertionConfig.setType(SoapResponseAssertion.ID);
        }

        if (values.getBoolean(ADD_SCHEMA_ASSERTION)) {
            TestAssertionConfig assertionConfig = testRequestConfig.addNewAssertion();
            assertionConfig.setType(SchemaComplianceAssertion.ID);
        }

        if (values.getBoolean(ADD_SOAP_FAULT_ASSERTION)) {
            TestAssertionConfig assertionConfig = testRequestConfig.addNewAssertion();
            assertionConfig.setType(NotSoapFaultAssertion.ID);
        }

        TestStepConfig testStep = TestStepConfig.Factory.newInstance();
        testStep.setType(REQUEST_TYPE);
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.