Package org.xmlsoap.schemas.ws.x2002.x07.utility

Examples of org.xmlsoap.schemas.ws.x2002.x07.utility.TContextFault$Factory


  private ArgumentBuilder buildArgs( File wsiToolDir, File reportFile, Interface modelItem ) throws IOException
  {
    Settings settings = modelItem.getSettings();

    ConfigurationDocument configDoc = createConfigFile( reportFile, settings, ( WsdlInterface )modelItem );
    configFile = configDoc.toString();

    File file = File.createTempFile( "wsi-analyzer-config", ".xml" );

    configDoc.save( file );

    ArgumentBuilder builder = new ArgumentBuilder( new StringToStringMap() );
    builder.startScript( wsiToolDir.getAbsolutePath() + File.separator + "Analyzer", ".bat", ".sh" );

    builder.addArgs( "-config", file.getAbsolutePath() );
View Full Code Here


    return builder;
  }

  private ConfigurationDocument createConfigFile( File reportFile, Settings settings, WsdlInterface iface )
  {
    ConfigurationDocument configDoc = ConfigurationDocument.Factory.newInstance();
    Configuration config = configDoc.addNewConfiguration();

    config.setVerbose( settings.getBoolean( WSISettings.VERBOSE ) );
    AssertionResults results = config.addNewAssertionResults();
    results.setType( AssertionResults.Type.Enum.forString( settings.getString( WSISettings.RESULTS_TYPE,
        AssertionResults.Type.ONLY_FAILED.toString() ) ) );
View Full Code Here

  private File buildConfig( File reportFile, File logFile, WsdlRequest modelItem ) throws IOException
  {
    Settings settings = modelItem.getSettings();

    ConfigurationDocument configDoc = ConfigurationDocument.Factory.newInstance();
    Configuration config = configDoc.addNewConfiguration();

    config.setVerbose( settings.getBoolean( WSISettings.VERBOSE ) );
    AssertionResults results = config.addNewAssertionResults();
    results.setType( AssertionResults.Type.Enum.forString( settings.getString( WSISettings.RESULTS_TYPE,
        AssertionResults.Type.ONLY_FAILED.toString() ) ) );

    results.setMessageEntry( settings.getBoolean( WSISettings.MESSAGE_ENTRY ) );
    results.setFailureMessage( settings.getBoolean( WSISettings.FAILURE_MESSAGE ) );
    results.setAssertionDescription( settings.getBoolean( WSISettings.ASSERTION_DESCRIPTION ) );

    ReportFile report = config.addNewReportFile();
    report.setLocation( reportFile.getAbsolutePath() );
    report.setReplace( true );

    AddStyleSheet stylesheet = report.addNewAddStyleSheet();
    stylesheet.setHref( ".\\..\\common\\Profiles\\SSBP10_BP11_TAD.xml" );
    stylesheet.setType( "text/xsl" );
    stylesheet.setAlternate( false );

    config.setTestAssertionsFile( "../../common/profiles/SSBP10_BP11_TAD.xml" );

    LogFile logFileConfig = config.addNewLogFile();
    logFileConfig.setStringValue( logFile.getAbsolutePath() );
    logFileConfig.setCorrelationType( CorrelationType.ENDPOINT );

    /*
     * WsdlInterface iface = (WsdlInterface)
     * modelItem.getOperation().getInterface();
     *
     * WsdlReferenceConfig wsdlRef = config.addNewWsdlReference();
     * wsdlRef.setWsdlURI( iface.getWsdlDefinition() );
     * WsdlElementReferenceConfig wsdlElement = wsdlRef.addNewWsdlElement();
     * wsdlElement.setType( WsdlElementTypeConfig.BINDING );
     * wsdlElement.setStringValue( iface.getBindingName().getLocalPart() );
     * wsdlElement.setNamespace( iface.getBindingName().getNamespaceURI() );
     * wsdlRef.setServiceLocation( modelItem.getEndpoint() );
     */

    configFile = configDoc.toString();

    File file = File.createTempFile( "wsi-analyzer-config", ".xml" );

    configDoc.save( file );
    return file;
  }
View Full Code Here

  private File buildConfig( File reportFile, File logFile, WsdlMockResponse modelItem ) throws IOException
  {
    Settings settings = modelItem.getSettings();

    ConfigurationDocument configDoc = ConfigurationDocument.Factory.newInstance();
    Configuration config = configDoc.addNewConfiguration();

    config.setVerbose( settings.getBoolean( WSISettings.VERBOSE ) );
    AssertionResults results = config.addNewAssertionResults();
    results.setType( AssertionResults.Type.Enum.forString( settings.getString( WSISettings.RESULTS_TYPE,
        AssertionResults.Type.ONLY_FAILED.toString() ) ) );

    results.setMessageEntry( settings.getBoolean( WSISettings.MESSAGE_ENTRY ) );
    results.setFailureMessage( settings.getBoolean( WSISettings.FAILURE_MESSAGE ) );
    results.setAssertionDescription( settings.getBoolean( WSISettings.ASSERTION_DESCRIPTION ) );

    ReportFile report = config.addNewReportFile();
    report.setLocation( reportFile.getAbsolutePath() );
    report.setReplace( true );

    AddStyleSheet stylesheet = report.addNewAddStyleSheet();
    stylesheet.setHref( ".\\..\\common\\Profiles\\SSBP10_BP11_TAD.xml" );
    stylesheet.setType( "text/xsl" );
    stylesheet.setAlternate( false );

    config.setTestAssertionsFile( "../../common/profiles/SSBP10_BP11_TAD.xml" );

    LogFile logFileConfig = config.addNewLogFile();
    logFileConfig.setStringValue( logFile.getAbsolutePath() );
    logFileConfig.setCorrelationType( CorrelationType.ENDPOINT );

    /*
     * WsdlInterface iface = (WsdlInterface)
     * modelItem.getOperation().getInterface();
     *
     * WsdlReferenceConfig wsdlRef = config.addNewWsdlReference();
     * wsdlRef.setWsdlURI( iface.getWsdlDefinition() );
     * WsdlElementReferenceConfig wsdlElement = wsdlRef.addNewWsdlElement();
     * wsdlElement.setType( WsdlElementTypeConfig.BINDING );
     * wsdlElement.setStringValue( iface.getBindingName().getLocalPart() );
     * wsdlElement.setNamespace( iface.getBindingName().getNamespaceURI() );
     * wsdlRef.setServiceLocation( modelItem.getEndpoint() );
     */

    configFile = configDoc.toString();

    File file = File.createTempFile( "wsi-analyzer-config", ".xml" );

    configDoc.save( file );
    return file;
  }
View Full Code Here

    }

    private File buildConfig(File reportFile, File logFile, WsdlRequest modelItem) throws IOException {
        Settings settings = modelItem.getSettings();

        ConfigurationDocument configDoc = ConfigurationDocument.Factory.newInstance();
        Configuration config = configDoc.addNewConfiguration();

        config.setVerbose(settings.getBoolean(WSISettings.VERBOSE));
        AssertionResults results = config.addNewAssertionResults();
        results.setType(AssertionResults.Type.Enum.forString(settings.getString(WSISettings.RESULTS_TYPE,
                AssertionResults.Type.ONLY_FAILED.toString())));

        results.setMessageEntry(settings.getBoolean(WSISettings.MESSAGE_ENTRY));
        results.setFailureMessage(settings.getBoolean(WSISettings.FAILURE_MESSAGE));
        results.setAssertionDescription(settings.getBoolean(WSISettings.ASSERTION_DESCRIPTION));

        ReportFile report = config.addNewReportFile();
        report.setLocation(reportFile.getAbsolutePath());
        report.setReplace(true);

        AddStyleSheet stylesheet = report.addNewAddStyleSheet();
        stylesheet.setHref(".\\..\\common\\Profiles\\SSBP10_BP11_TAD.xml");
        stylesheet.setType("text/xsl");
        stylesheet.setAlternate(false);

        config.setTestAssertionsFile("../../common/profiles/SSBP10_BP11_TAD.xml");

        LogFile logFileConfig = config.addNewLogFile();
        logFileConfig.setStringValue(logFile.getAbsolutePath());
        logFileConfig.setCorrelationType(CorrelationType.ENDPOINT);

    /*
         * WsdlInterface iface = (WsdlInterface)
     * modelItem.getOperation().getInterface();
     *
     * WsdlReferenceConfig wsdlRef = config.addNewWsdlReference();
     * wsdlRef.setWsdlURI( iface.getWsdlDefinition() );
     * WsdlElementReferenceConfig wsdlElement = wsdlRef.addNewWsdlElement();
     * wsdlElement.setType( WsdlElementTypeConfig.BINDING );
     * wsdlElement.setStringValue( iface.getBindingName().getLocalPart() );
     * wsdlElement.setNamespace( iface.getBindingName().getNamespaceURI() );
     * wsdlRef.setServiceLocation( modelItem.getEndpoint() );
     */

        configFile = configDoc.toString();

        File file = File.createTempFile("wsi-analyzer-config", ".xml");

        configDoc.save(file);
        return file;
    }
View Full Code Here

    }

    private ArgumentBuilder buildArgs(File wsiToolDir, File reportFile, Interface modelItem) throws IOException {
        Settings settings = modelItem.getSettings();

        ConfigurationDocument configDoc = createConfigFile(reportFile, settings, (WsdlInterface) modelItem);
        configFile = configDoc.toString();

        File file = File.createTempFile("wsi-analyzer-config", ".xml");

        configDoc.save(file);

        ArgumentBuilder builder = new ArgumentBuilder(new StringToStringMap());
        builder.startScript(wsiToolDir.getAbsolutePath() + File.separator + "Analyzer", ".bat", ".sh");

        builder.addArgs("-config", file.getAbsolutePath());
View Full Code Here

        return builder;
    }

    private ConfigurationDocument createConfigFile(File reportFile, Settings settings, WsdlInterface iface) {
        ConfigurationDocument configDoc = ConfigurationDocument.Factory.newInstance();
        Configuration config = configDoc.addNewConfiguration();

        config.setVerbose(settings.getBoolean(WSISettings.VERBOSE));
        AssertionResults results = config.addNewAssertionResults();
        results.setType(AssertionResults.Type.Enum.forString(settings.getString(WSISettings.RESULTS_TYPE,
                AssertionResults.Type.ONLY_FAILED.toString())));
View Full Code Here

    stylesheet.setType( "text/xsl" );
    stylesheet.setAlternate( false );

    config.setTestAssertionsFile( "../../common/profiles/SSBP10_BP11_TAD.xml" );

    LogFile logFileConfig = config.addNewLogFile();
    logFileConfig.setStringValue( logFile.getAbsolutePath() );
    logFileConfig.setCorrelationType( CorrelationType.ENDPOINT );

    /*
     * WsdlInterface iface = (WsdlInterface)
     * modelItem.getOperation().getInterface();
     *
 
View Full Code Here

    stylesheet.setType( "text/xsl" );
    stylesheet.setAlternate( false );

    config.setTestAssertionsFile( "../../common/profiles/SSBP10_BP11_TAD.xml" );

    LogFile logFileConfig = config.addNewLogFile();
    logFileConfig.setStringValue( logFile.getAbsolutePath() );
    logFileConfig.setCorrelationType( CorrelationType.ENDPOINT );

    /*
     * WsdlInterface iface = (WsdlInterface)
     * modelItem.getOperation().getInterface();
     *
 
View Full Code Here

        stylesheet.setType("text/xsl");
        stylesheet.setAlternate(false);

        config.setTestAssertionsFile("../../common/profiles/SSBP10_BP11_TAD.xml");

        LogFile logFileConfig = config.addNewLogFile();
        logFileConfig.setStringValue(logFile.getAbsolutePath());
        logFileConfig.setCorrelationType(CorrelationType.ENDPOINT);

    /*
         * WsdlInterface iface = (WsdlInterface)
     * modelItem.getOperation().getInterface();
     *
 
View Full Code Here

TOP

Related Classes of org.xmlsoap.schemas.ws.x2002.x07.utility.TContextFault$Factory

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.