Package com.eviware.soapui.impl.wsdl

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


       
        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 ;
        if (responseTemplate != null)
        {
            final XMLEventReader responseReader = XMLHelper.getXMLEventReader(new StringReader(responseTemplate)) ;
            responseEvents = ESBStaxXMLEvent.cloneStream(responseReader) ;
View Full Code Here


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

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

      create = UISupport.confirm( "Request is missing response, create default mock response instead?", title );
    }

    if( create )
    {
      String response = operation.createResponse( operation.getSettings().getBoolean(
          WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS ) );
      CompressedStringSupport.setString( responseContent, response );
    }
    else if( request.getResponse() != null )
    {
View Full Code Here

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

    String req = operation.createResponse( createOptional );
    if( req == null )
    {
      UISupport.showErrorMessage( "Response creation failed" );
      return;
    }
View Full Code Here

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

            if (dialog.getBooleanValue(Form.RECREATE_REQUEST)) {
                String req = operation.createResponse(dialog.getBooleanValue(Form.CREATE_OPTIONAL));
                if (req == null) {
                    UISupport.showErrorMessage("Response creation failed");
                } else {
                    for (int c = 0; c < target.getMockResponseCount(); c++) {
                        String msg = req;
View Full Code Here

        if (request.getResponse() == null && !request.getOperation().isOneWay()) {
            create = UISupport.confirm("Request is missing response, create default mock response instead?", title);
        }

        if (create) {
            String response = operation.createResponse(operation.getSettings().getBoolean(
                    WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS));
            CompressedStringSupport.setString(responseContent, response);
        } else if (request.getResponse() != null) {
            String response = request.getResponse().getContentAsString();
            CompressedStringSupport.setString(responseContent, response);
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.