Package com.eviware.soapui.impl.wsdl

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


        wsrmMap.put( endpoint, sequence );
      }

      WsrmSequence sequence = wsrmMap.get( endpoint );
      WsdlRequest wsdlRequest = ( WsdlRequest )requestStep.getHttpRequest();

      wsdlRequest.getWsrmConfig().setVersion( testCase.getWsrmVersion() );
      wsdlRequest.getWsrmConfig().setSequenceIdentifier( sequence.getIdentifier() );
      wsdlRequest.getWsrmConfig().setLastMessageId( sequence.incrementLastMsgNumber() );
      wsdlRequest.getWsrmConfig().setUuid( sequence.getUuid() );
      wsdlRequest.getWsrmConfig().setWsrmEnabled( true );

      if( !testCase.getWsrmVersion().equals( WsrmVersionTypeConfig.X_1_0.toString() ) )
      {
        WsmcInjection injection = new WsmcInjection( wsdlRequest.getEndpoint(), wsdlRequest.getOperation(),
            soapVersion, wsdlRequest.getWsrmConfig().getUuid() );
        wsdlRequest.setAfterRequestInjection( injection );
      }

    }

  }
View Full Code Here


          {
            withoutOperation++ ;
            continue;
          }

          WsdlRequest request = me.getOperation().addNewRequest( "Monitor Request " + ( row + 1 ) );

          request.setRequestContent( me.getRequestContent() );
          request.setEndpoint( me.getTargetUrl().toString() );

          Attachment[] requestAttachments = me.getRequestAttachments();
          if( requestAttachments != null )
          {
            for( Attachment attachment : requestAttachments )
            {
              request.importAttachment( attachment );
            }
          }
        }
        if( withoutOperation > 0 )
        {
View Full Code Here

        {
          if( !XmlUtils.prettyPrintXml( req ).equals( XmlUtils.prettyPrintXml( requestContent ) ) )
          {
            if( createBackups )
            {
              WsdlRequest backupRequest = operation.addNewRequest( "Backup of [" + request.getName() + "]" );
              ( ( WsdlRequest )request ).copyTo( backupRequest, false, false );
            }

            ( ( WsdlRequest )request ).setRequestContent( req );
            count++ ;
View Full Code Here

        for( WsdlInterface iface : result )
        {
          for( int c = 0; c < iface.getOperationCount(); c++ )
          {
            WsdlOperation operation = iface.getOperationAt( c );
            WsdlRequest request = operation.addNewRequest( "Request 1" );
            try
            {
              String requestContent = operation.createRequest( project.getSettings().getBoolean(
                  WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS ) );
              request.setRequestContent( requestContent );
            }
            catch( Exception e )
            {
              SoapUI.logError( e );
            }
View Full Code Here

    assertNotNull( bindingOperation );
    assertEquals( bindingOperation.getName(), operation.getBindingOperationName() );

    assertNull( operation.getOutputName() );

    WsdlRequest request = operation.addNewRequest( "TestRequest" );
    assertNotNull( request );

    String requestXml = operation.createRequest( true );
    assertNotNull( requestXml );

    request.setRequestContent( requestXml );

    Submit submit = request.submit( new WsdlSubmitContext( null ), false );

    assertTrue( submit.getResponse().getContentAsString().indexOf( "Error 404 NOT_FOUND" ) > 0 );
  }
View Full Code Here

    String name = UISupport
        .prompt( "Specify name of cloned request", "Clone Request", "Copy of " + request.getName() );
    if( name == null )
      return;

    WsdlRequest newRequest = ( ( WsdlOperation )request.getOperation() ).addNewRequest( name );
    request.copyTo( newRequest, true, true );

    UISupport.selectAndShow( newRequest );
  }
View Full Code Here

    String name = ( String )UISupport.prompt( "Select Request for Operation [" + operation.getName() + "] "
        + "to open or create", "Open Request", names );
    if( name != null )
    {
      WsdlRequest request = operation.getRequestByName( name );
      if( request == null )
      {
        name = UISupport.prompt( "Specify name of new request", "Open Request",
            "Request " + ( operation.getRequestCount() + 1 ) );
        if( name == null )
          return;

        boolean createOptional = operation.getSettings().getBoolean(
            WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS );
        if( !createOptional )
          createOptional = UISupport.confirm( "Create optional elements from schema?", "Create Request" );

        request = operation.addNewRequest( name );
        String requestContent = operation.createRequest( createOptional );
        if( requestContent != null )
        {
          request.setRequestContent( requestContent );
        }
      }

      request.setEndpoint( mockResponse.getMockOperation().getMockService().getLocalEndpoint() );
      UISupport.selectAndShow( request );
    }
  }
View Full Code Here

    boolean createOptional = operation.getSettings().getBoolean(
        WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS );
    if( !createOptional )
      createOptional = UISupport.confirm( "Create optional elements in schema?", "Create Request" );

    WsdlRequest newRequest = operation.addNewRequest( name );
    String requestContent = operation.createRequest( createOptional );
    if( requestContent != null )
    {
      newRequest.setRequestContent( requestContent );
    }

    UISupport.showDesktopPanel( newRequest );
  }
View Full Code Here

    String name = ( String )UISupport.prompt( "Select Request for Operation [" + operation.getName() + "] "
        + "to open or create", "Open Request", names );
    if( name != null )
    {
      WsdlRequest request = operation.getRequestByName( name );
      if( request == null )
      {
        name = UISupport.prompt( "Specify name of new request", "Open Request",
            "Request " + ( operation.getRequestCount() + 1 ) );
        if( name == null )
          return;

        boolean createOptional = operation.getSettings().getBoolean(
            WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS );
        if( !createOptional )
          createOptional = UISupport.confirm( "Create optional elements from schema?", "Create Request" );

        request = operation.addNewRequest( name );
        String requestContent = operation.createRequest( createOptional );
        if( requestContent != null )
        {
          request.setRequestContent( requestContent );
        }
      }

      request.setEndpoint( mockOperation.getMockService().getLocalEndpoint() );
      UISupport.selectAndShow( request );
    }
  }
View Full Code Here

    String name = UISupport.prompt( "Specify name of request", "Create Request", "Result from " + step.getName() );

    if( name != null )
    {
      WsdlOperation operation = ( WsdlOperation )step.getTestRequest().getOperation();
      WsdlRequest request = operation.addNewRequest( name );
      request.setRequestContent( result.getRequestContent() );
      request.setDomain( result.getDomain() );
      request.setEncoding( result.getEncoding() );
      request.setEndpoint( result.getEndpoint() );
      request.setPassword( result.getPassword() );
      request.setUsername( result.getUsername() );

      UISupport.showDesktopPanel( request );
    }
  }
View Full Code Here

TOP

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

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.