Package com.eviware.soapui.impl.wsdl

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


                        {
                            final QName bindingName = port.getBinding().getQName() ;
                            if (first)
                            {
                                first = false ;
                                final WsdlInterface bindingWsdlInterface = bindingsToInterface.get(bindingName) ;
                                endpoint = bindingWsdlInterface.getEndpoints()[0] ;
                                contentType = bindingWsdlInterface.getSoapVersion().getContentType() ;
                            }
                           
                            final Map<String, WsdlOperationInfo> bindingOperationInfoMap = bindingToOperationInfo.get(bindingName) ;
                            for(Map.Entry<String, WsdlOperationInfo> entry: bindingOperationInfoMap.entrySet())
                            {
View Full Code Here


  private final class OperationComboListener implements ItemListener
  {
    public void itemStateChanged( ItemEvent e )
    {
      WsdlInterface iface = ( WsdlInterface )getModelItem().getMockService().getProject()
          .getInterfaceByName( interfaceCombo.getSelectedItem().toString() );
      WsdlOperation operation = iface.getOperationByName( operationCombo.getSelectedItem().toString() );
      getModelItem().setOperation( operation );
    }
View Full Code Here

{
  public void filterWsdlRequest( SubmitContext context, WsdlRequest wsdlRequest )
  {
    HttpMethod postMethod = ( HttpMethod )context.getProperty( BaseHttpRequestTransport.HTTP_METHOD );

    WsdlInterface wsdlInterface = ( WsdlInterface )wsdlRequest.getOperation().getInterface();

    // init content-type and encoding
    String encoding = System.getProperty( "soapui.request.encoding", wsdlRequest.getEncoding() );

    SoapVersion soapVersion = wsdlInterface.getSoapVersion();
    String soapAction = wsdlRequest.isSkipSoapAction() ? null : wsdlRequest.getAction();

    postMethod.setRequestHeader( "Content-Type", soapVersion.getContentTypeHttpHeader( encoding, soapAction ) );

    if( !wsdlRequest.isSkipSoapAction() )
View Full Code Here

    interfaceNameSet.clear();
    for( Interface ic : getModelItem().getInterfaceList() )
    {
      if( ic instanceof WsdlInterface )
      {
        WsdlInterface iface = ( WsdlInterface )ic;
        section.addMetric( iface.getIcon(), iface.getName(), MetricType.URL ).set( iface.getDefinition() );
      }
      else if( ic instanceof RestService )
      {
        RestService iface = ( RestService )ic;
        section.addMetric( iface.getIcon(), iface.getName(), MetricType.URL ).set( iface.getWadlUrl() );
      }

      interfaceNameSet.add( ic.getName() );
    }
View Full Code Here

          operationFilterModel.addElement( ALL_FILTER_OPTION );
          interfaceFilter.setPattern( ".*", 0 );
        }
        else if( getProject().getInterfaceByName( item ) != null )
        {
          WsdlInterface iface = ( WsdlInterface )getProject().getInterfaceByName( item );
          String[] operationNames = ModelSupport.getNames( new String[] { ALL_FILTER_OPTION },
              iface.getOperationList() );
          for( String s : operationNames )
            operationFilterModel.addElement( s );

          interfaceFilter.setPattern( iface.getName(), 0 );
        }
      }
    } );

    toolbar.addFixed( new JLabel( "Operation" ) );
View Full Code Here

    try
    {
      WsdlOperation operation = mockResponse.getMockOperation().getOperation();
      if( operation != null )
      {
        WsdlInterface iface = operation.getInterface();
        WsdlContext wsdlContext = iface.getWsdlContext();
        return wsdlContext.getSchemaTypeSystem();
      }
    }
    catch( Exception e1 )
    {
View Full Code Here

    try
    {
      WsdlOperation operation = mockResponse.getMockOperation().getOperation();
      if( operation != null )
      {
        WsdlInterface iface = operation.getInterface();
        WsdlContext wsdlContext = iface.getWsdlContext();
        return wsdlContext.getSchemaTypeSystem();
      }
    }
    catch( Exception e1 )
    {
View Full Code Here

  public WsdlInterface importBinding( WsdlProject project, WsdlContext wsdlContext, Binding binding ) throws Exception
  {
    String name = project.getSettings().getBoolean( WsdlSettings.NAME_WITH_BINDING ) ? binding.getQName()
        .getLocalPart() : binding.getPortType().getQName().getLocalPart();

    WsdlInterface iface = ( WsdlInterface )project.addNewInterface( name, WsdlInterfaceFactory.WSDL_TYPE );
    iface.setBindingName( binding.getQName() );
    iface.setSoapVersion( SoapVersion.Soap11 );

    String[] endpoints = WsdlUtils.getEndpointsForBinding( wsdlContext.getDefinition(), binding );
    for( int i = 0; i < endpoints.length; i++ )
    {
      log.info( "importing endpoint " + endpoints[i] );
      iface.addEndpoint( endpoints[i] );
    }

    List<BindingOperation> list = binding.getBindingOperations();
    Collections.sort( list, new BindingOperationComparator() );

    for( Iterator<BindingOperation> iter = list.iterator(); iter.hasNext(); )
    {
      BindingOperation operation = iter.next();

      // sanity check
      if( operation.getOperation() == null || operation.getOperation().isUndefined() )
      {
        log.error( "BindingOperation [" + operation.getName() + "] is missing or referring to an invalid operation" );
      }
      else
      {
        log.info( "importing operation " + operation.getName() );
        iface.addNewOperation( operation );
      }
    }
    // PolicyUtils.getPolicies(wsdlContext);
    initWsAddressing( binding, iface, wsdlContext.getDefinition() );
View Full Code Here

      if( targetProject == null )
        return;
    }

    WsdlInterface targetIface = ( WsdlInterface )targetProject.getInterfaceByTechnicalId( iface.getTechnicalId() );
    if( targetIface != null )
    {
      UISupport.showErrorMessage( "Target Project already contains Interface for binding" );
    }
    else
View Full Code Here

  protected String getDefinition( T modelItem )
  {
    if( modelItem == null )
      return "";
    WsdlInterface iface = ( WsdlInterface )modelItem;
    String definition = PathUtils.expandPath( iface.getDefinition(), iface );
    if( definition.startsWith( "file:" ) )
      definition = definition.substring( 5 );

    return definition;
  }
View Full Code Here

TOP

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

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.