Package com.eviware.soapui.impl.wsdl

Examples of com.eviware.soapui.impl.wsdl.WsdlOperation.createRequest()


    private static WsdlOperationInfo getWsdlOperationInfo(final Operation operation)
        throws XMLStreamException
    {
        final WsdlOperation wsdlOperation = (WsdlOperation)operation ;
       
        final String requestTemplate = wsdlOperation.createRequest(true);
        final XMLEventReader requestReader = XMLHelper.getXMLEventReader(new StringReader(requestTemplate)) ;
        final List<XMLEvent> requestEvents = ESBStaxXMLEvent.cloneStream(requestReader) ;
       
        final String responseTemplate = wsdlOperation.createResponse(true);
        final List<XMLEvent> responseEvents ;
View Full Code Here


    // first check operations
    for( int c = 0; c < iface.getOperationCount(); c++ )
    {
      WsdlOperation operation = iface.getOperationAt( c );
      String newRequest = operation.createRequest( buildOptional );
      List<Request> requests = operation.getRequestList();

      for( Request request : requests )
      {
        String requestContent = request.getRequestContent();
View Full Code Here

          {
            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 )
            {
View Full Code Here

    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 );
View Full Code Here

            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 );
        }
      }
View Full Code Here

            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 );
        }
      }
View Full Code Here

      if( name.length() > 0 && !target.getName().equals( name ) )
        target.setName( name );

      if( dialog.getBooleanValue( Form.RECREATE_REQUEST ) )
      {
        String req = operation.createRequest( dialog.getBooleanValue( Form.CREATE_OPTIONAL ) );
        if( req == null )
        {
          UISupport.showErrorMessage( "Request creation failed" );
          return;
        }
View Full Code Here

      createOptional = create.booleanValue();
    }

    WsdlOperation wsdlOperation = ( WsdlOperation )request.getOperation();
    String req = wsdlOperation.createRequest( createOptional );
    if( req == null )
    {
      UISupport.showErrorMessage( "Request creation failed" );
      return;
    }
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

                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);
                }
            }
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.