Package com.eviware.soapui.impl.wsdl

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


      }
    }

    if( container.getWsrmConfig().isWsrmEnabled() )
    {
      WsdlInterface iface = request.getOperation().getInterface();
      WsrmUtils utils = new WsrmUtils( iface.getSoapVersion() );
      utils.closeSequence( request.getEndpoint(), iface.getSoapVersion(), request.getWsrmConfig()
          .getVersionNameSpace(), request.getWsrmConfig().getUuid(), request.getWsrmConfig()
          .getSequenceIdentifier(), 1l, request.getOperation() );
    }
  }
View Full Code Here


  public boolean beforeSubmit( Submit submit, SubmitContext context )
  {
    WsrmContainer container = ( WsrmContainer )submit.getRequest();
    if( container.getWsrmConfig().isWsrmEnabled() )
    {
      WsdlInterface iface = request.getOperation().getInterface();
      WsrmUtils utils = new WsrmUtils( iface.getSoapVersion() );

      WsrmSequence sequence = utils.createSequence( request.getEndpoint(), iface.getSoapVersion(), request
          .getWsrmConfig().getVersionNameSpace(), request.getWsrmConfig().getAckTo(), 0l, request.getOperation(),
          ( ( WsdlRequest )submit.getRequest() ).getWsaConfig().getTo() );

      request.getWsrmConfig().setSequenceIdentifier( sequence.getIdentifier() );
      request.getWsrmConfig().setUuid( sequence.getUuid() );

      if( !request.getWsrmConfig().getVersion().equals( WsrmVersionTypeConfig.X_1_0.toString() ) )
      {
        WsmcInjection receiveInjection = new WsmcInjection( request.getEndpoint(), request.getOperation(),
            iface.getSoapVersion(), request.getWsrmConfig().getUuid() );
        request.setAfterRequestInjection( receiveInjection );
      }

    }
    return true;
View Full Code Here

    }
  }

  public SchemaTypeSystem getTypeSystem()
  {
    WsdlInterface iface = ( WsdlInterface )request.getOperation().getInterface();
    WsdlContext wsdlContext = iface.getWsdlContext();
    try
    {
      return wsdlContext.getSchemaTypeSystem();
    }
    catch( Exception e1 )
View Full Code Here

  private void testLoader( String wsdlUrl ) throws XmlException, IOException, Exception
  {
    WsdlProject project = new WsdlProject();
    project.getSettings().setBoolean( WsdlSettings.CACHE_WSDLS, true );
    WsdlInterface wsdlInterface = WsdlImporter.importWsdl( project, wsdlUrl )[0];

    assertTrue( wsdlInterface.isCached() );

    WsdlDefinitionExporter exporter = new WsdlDefinitionExporter( wsdlInterface );

    String root = exporter.export( "test" + File.separatorChar + "output" );

    WsdlProject project2 = new WsdlProject();
    WsdlInterface wsdl2 = WsdlImporter.importWsdl( project2, new File( root ).toURI().toURL().toString() )[0];

    assertEquals( wsdlInterface.getBindingName(), wsdl2.getBindingName() );
    assertEquals( wsdlInterface.getOperationCount(), wsdl2.getOperationCount() );
    assertEquals( wsdlInterface.getWsdlContext().getInterfaceDefinition().getDefinedNamespaces(), wsdl2
        .getWsdlContext().getInterfaceDefinition().getDefinedNamespaces() );
  }
View Full Code Here

    }
  }

  public SchemaTypeSystem getTypeSystem()
  {
    WsdlInterface iface = ( WsdlInterface )request.getOperation().getInterface();
    WsdlContext wsdlContext = iface.getWsdlContext();
    try
    {
      return wsdlContext.getSchemaTypeSystem();
    }
    catch( Exception e1 )
View Full Code Here

  public final static String WSDL_TYPE = "wsdl";
  private final static Logger log = Logger.getLogger( WsdlInterfaceFactory.class );

  public WsdlInterface build( WsdlProject project, InterfaceConfig config )
  {
    return new WsdlInterface( project, ( WsdlInterfaceConfig )config.changeType( WsdlInterfaceConfig.type ) );
  }
View Full Code Here

    return new WsdlInterface( project, ( WsdlInterfaceConfig )config.changeType( WsdlInterfaceConfig.type ) );
  }

  public WsdlInterface createNew( WsdlProject project, String name )
  {
    WsdlInterface iface = new WsdlInterface( project, ( WsdlInterfaceConfig )project.getConfig().addNewInterface()
        .changeType( WsdlInterfaceConfig.type ) );
    iface.setName( name );

    return iface;
  }
View Full Code Here

    WsdlProject project = new WsdlProject( "src" + File.separatorChar + "test-resources" + File.separatorChar
        + "sample-soapui-project.xml" );
    TestSuite testSuite = project.getTestSuiteByName( "Test Suite" );
    testCase = ( WsdlTestCase )testSuite.getTestCaseByName( "Test Conversions" );

    WsdlInterface iface = ( WsdlInterface )project.getInterfaceAt( 0 );

    mockService = ( WsdlMockService )project.addNewMockService( "MockService 1" );

    mockService.setPort( 9081 );
    mockService.setPath( "/testmock" );

    WsdlOperation operation = ( WsdlOperation )iface.getOperationAt( 0 );
    WsdlMockOperation mockOperation = ( WsdlMockOperation )mockService.addNewMockOperation( operation );
    WsdlMockResponse mockResponse = mockOperation.addNewMockResponse( "Test Response", true );
    mockResponse.setResponseContent( "Tjohoo!" );

    mockService.start();

    String endpoint = "http://" + mockService.getHost() + ":" + mockService.getPort() + mockService.getPath();
    iface.addEndpoint( endpoint );
    List<TestStep> testStepList = testCase.getTestStepList();
    for( TestStep testStep : testStepList )
    {
      if( testStep instanceof WsdlTestRequestStep )
      {
View Full Code Here

    WsdlProject project = new WsdlProject();
    WsdlInterface[] wsdls = WsdlImporter.importWsdl( project, "http://localhost:8082/testonewayop/TestService.wsdl" );

    assertEquals( 1, wsdls.length );

    WsdlInterface iface = wsdls[0];

    assertNotNull( iface );
    assertEquals( 2, iface.getOperationCount() );

    WsdlOperation operation = ( WsdlOperation )iface.getOperationAt( 0 );

    assertNotNull( operation );
    assertEquals( "GetDefaultPageData", operation.getName() );

    Definition definition = WsdlUtils.readDefinition( "http://localhost:8082/testonewayop/TestService.wsdl" );
View Full Code Here

  public void actionPerformed( ActionEvent e )
  {
    if( UISupport.confirm( "Overwrite existing request?", "Create Empty" ) )
    {
      WsdlInterface iface = ( WsdlInterface )request.getOperation().getInterface();
      request.setRequestContent( iface.getMessageBuilder().buildEmptyMessage() );
    }
  }
View Full Code Here

TOP

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

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.