Package com.eviware.soapui.model.iface

Examples of com.eviware.soapui.model.iface.Response


    ExtendedHttpMethod httpMethod = ( ExtendedHttpMethod )context.getProperty( BaseHttpRequestTransport.HTTP_METHOD );
    String requestContent = ( String )context.getProperty( BaseHttpRequestTransport.REQUEST_CONTENT );

    // check content-type for multiplart
    Header responseContentTypeHeader = httpMethod.getResponseHeader( "Content-Type" );
    Response response = null;
    if( request instanceof WsdlRequest )
      response = wsdlRequest( context, ( WsdlRequest )request, httpMethod, responseContentTypeHeader, requestContent );
    else if( request instanceof HttpRequestInterface<?> )
      response = httpRequest( context, ( HttpRequestInterface<?> )request, httpMethod, responseContentTypeHeader,
          requestContent );
View Full Code Here


      // startSequenceRequest.getWsaConfig().setWsaEnabled(false);
      while( wsdlSubmit.getStatus() != Status.FINISHED )
      {
        wsdlSubmit.waitUntilFinished();
      }
      Response response = wsdlSubmit.getResponse();
      String responseContent = response.getContentAsString();
      // XmlObject xml = XmlObject.Factory.parse( responseContent );
      XmlObject xml = XmlUtils.createXmlObject( responseContent );
      XmlCursor cursor = xml.newCursor();
      cursor.toFirstContentToken();
      cursor.toFirstChild();
View Full Code Here

      // startSequenceRequest.getWsaConfig().setWsaEnabled(false);
      while( wsdlSubmit.getStatus() != Status.FINISHED )
      {
        wsdlSubmit.waitUntilFinished();
      }
      Response response = wsdlSubmit.getResponse();
      String responseContent = response.getContentAsString();
      // XmlObject xml = XmlObject.Factory.parse( responseContent );
      XmlObject xml = XmlUtils.createXmlObject( responseContent );
      XmlCursor cursor = xml.newCursor();
      cursor.toFirstContentToken();
      cursor.toFirstChild();
View Full Code Here

        WsdlSubmit wsdlSubmit = closeSequenceRequest.submit( new WsdlSubmitContext( null ), true );
        while( wsdlSubmit.getStatus() != Status.FINISHED )
        {
          wsdlSubmit.waitUntilFinished();
        }
        Response response = wsdlSubmit.getResponse();
        String responseContent = response.getContentAsString();
        // XmlObject xml = XmlObject.Factory.parse( responseContent );
        XmlObject xml = XmlUtils.createXmlObject( responseContent );

        XmlOptions options = new XmlOptions();
View Full Code Here

      while( wsdlSubmit.getStatus() != Status.FINISHED )
      {
        wsdlSubmit.waitUntilFinished();
      }
      Response response = wsdlSubmit.getResponse();
      String responseContent = response.getContentAsString();
      // XmlObject xml = XmlObject.Factory.parse( responseContent );
      XmlObject xml = XmlUtils.createXmlObject( responseContent );
      XmlObject result = xml.selectPath( "Envelope/Header/SequenceAcknowledgment" )[0];

      if( result != null )
View Full Code Here

        SamplerTestStep previousStep = ( SamplerTestStep )gotoStep.getTestCase().findPreviousStepOfType( gotoStep,
            SamplerTestStep.class );

        if( previousStep != null )
        {
          Response response = previousStep.getTestRequest().getResponse();
          String xml = response == null ? null : response.getContentAsString();
          if( XmlUtils.seemsToBeXml( xml ) )
          {
            expressionArea.setText( XmlUtils.declareXPathNamespaces( xml ) + expressionArea.getText() );
          }
          else
View Full Code Here

  }

  public void afterRequest( SubmitContext context, Request request )
  {
    // do this for backwards compatibility
    Response response = ( Response )context.getProperty( BaseHttpRequestTransport.RESPONSE );
    if( response != null )
      afterRequest( context, response );

    if( request instanceof AbstractHttpRequestInterface<?> )
      afterAbstractHttpResponse( context, ( AbstractHttpRequestInterface<?> )request );
View Full Code Here

    else
      requestMessage.setReceiverHostAndPort( endpoint.getHost() );

    requestMessage.setType( TcpMessageType.REQUEST );

    Response response = modelItem.getResponse();
    HttpMessageEntry responseMessage = HttpMessageEntry.Factory.newInstance();
    responseMessage.addNewMessageContent().setStringValue( response.getContentAsString() );
    responseMessage.setConversationID( "1" );
    responseMessage.setType( TcpMessageType.RESPONSE );
    responseMessage.setTimestamp( Calendar.getInstance() );
    responseMessage.setID( "2" );
    responseMessage.setSenderHostAndPort( requestMessage.getReceiverHostAndPort() );
    responseMessage.setReceiverHostAndPort( requestMessage.getSenderHostAndPort() );

    String requestHeaders = buildHttpHeadersString( response.getRequestHeaders() );
    requestMessage.setHttpHeaders( "POST " + endpoint.getPath() + " HTTP/1.1\r\n" + requestHeaders );

    responseMessage.setHttpHeaders( buildHttpHeadersString( response.getResponseHeaders() ) );

    log.setMessageEntryArray( new MessageEntry[] { requestMessage, responseMessage } );
  }
View Full Code Here

    // submit the request
    WsdlSubmit submit = ( WsdlSubmit )request.submit( new WsdlSubmitContext( request ), false );

    // wait for the response
    Response response = submit.getResponse();

    // print the response
    // String content = response.getContentAsString();
    // System.out.println( content );
    // assertNotNull( content );
View Full Code Here

    request.addPropertyChangeListener( this );
  }

  public String getXml()
  {
    Response response = request.getResponse();
    return response == null ? null : response.getContentAsString();
  }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.iface.Response

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.