Package org.jboss.jbosswsTools

Examples of org.jboss.jbosswsTools.ConfigurationDocument


    ActionList actions = buildDefaultActions( HelpUrls.WSTOOLS_HELP_URL, modelItem );
    actions.addAction( new ShowConfigFileAction( "JBossWS Wsdl2Java", "Contents of generated wsconfig.xml file" )
    {
      protected String getConfigFile()
      {
        ConfigurationDocument configDocument = createConfigFile( getDialog().getValues() );
        return configDocument.toString();
      }
    } );

    return builder.buildDialog( actions, "Specify arguments for JBossWS wstools java2wsdl functionality",
        UISupport.TOOL_ICON );
View Full Code Here


  private String buildConfigFile( StringToStringMap values ) throws IOException
  {
    File file = File.createTempFile( "wstools-config", ".xml",
        new File( SoapUI.getSettings().getString( ToolsSettings.JBOSSWS_WSTOOLS_LOCATION, null ) ) );
    ConfigurationDocument configDocument = createConfigFile( values );
    configDocument.save( file );
    return file.getName();
  }
View Full Code Here

    return file.getName();
  }

  private ConfigurationDocument createConfigFile( StringToStringMap values )
  {
    ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
    ConfigurationType config = configDocument.addNewConfiguration();

    JavaToWsdlType java2Wsdl = config.addNewJavaWsdl();
    ServiceType service = java2Wsdl.addNewService();
    service.setEndpoint( values.get( ENDPOINT ) );
    service.setStyle( Style.Enum.forString( values.get( STYLE ) ) );
View Full Code Here

  }

  private String buildConfigFile( StringToStringMap values, Interface modelItem ) throws IOException
  {
    File file = File.createTempFile( "wstools-config", ".xml" );
    ConfigurationDocument configDocument = createConfigFile( values, modelItem );

    configDocument.save( file );

    return file.getAbsolutePath();
  }
View Full Code Here

    return file.getAbsolutePath();
  }

  private ConfigurationDocument createConfigFile( StringToStringMap values, Interface modelItem )
  {
    ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
    ConfigurationType config = configDocument.addNewConfiguration();

    try
    {
      StringToStringMap nsMappings = StringToStringMap.fromXml( values.get( NAMESPACE_MAPPING ) );
      if( !nsMappings.isEmpty() )
View Full Code Here

      this.modelItem = modelItem;
    }

    protected String getConfigFile()
    {
      ConfigurationDocument configDocument = createConfigFile( getDialog().getValues(), modelItem );
      return configDocument.toString();
    }
View Full Code Here

    ActionList actions = buildDefaultActions( HelpUrls.WSTOOLS_HELP_URL, project );
    actions.addAction( new ShowConfigFileAction( "JBossWS Java2Wsdl", "Contents of generated wsconfig.xml file" )
    {
      protected String getConfigFile()
      {
        ConfigurationDocument configDocument = createConfigFile( getDialog().getValues() );
        return configDocument.toString();
      }
    } );

    return builder.buildDialog( actions, "Specify arguments for JBossWS wstools java2wsdl functionality",
        UISupport.TOOL_ICON );
View Full Code Here

  }

  private String buildConfigFile( StringToStringMap values ) throws IOException
  {
    File file = File.createTempFile( "wstools-config", ".xml" );
    ConfigurationDocument configDocument = createConfigFile( values );

    configDocument.save( file );

    return file.getAbsolutePath();
  }
View Full Code Here

    return file.getAbsolutePath();
  }

  private ConfigurationDocument createConfigFile( StringToStringMap values )
  {
    ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
    ConfigurationType config = configDocument.addNewConfiguration();

    JavaToWsdlType java2Wsdl = config.addNewJavaWsdl();
    ServiceType service = java2Wsdl.addNewService();
    service.setEndpoint( values.get( ENDPOINT ) );
    service.setStyle( Style.Enum.forString( values.get( STYLE ) ) );
View Full Code Here

            super(title, description);
            this.modelItem = modelItem;
        }

        protected String getConfigFile() {
            ConfigurationDocument configDocument = createConfigFile(getDialog().getValues(), modelItem);
            return configDocument.toString();
        }
View Full Code Here

TOP

Related Classes of org.jboss.jbosswsTools.ConfigurationDocument

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.