log.setMessageEntryArray( new MessageEntry[] { requestMessage, responseMessage } );
}
private void addMonitorConfig( Log log ) throws Exception
{
Monitor monitor = log.addNewMonitor();
monitor.setVersion( "1.5" );
monitor.setReleaseDate( Calendar.getInstance() );
org.wsI.testing.x2003.x03.monitorConfig.Configuration conf = monitor.addNewConfiguration();
conf.setCleanupTimeoutSeconds( 0 );
conf.setLogDuration( 0 );
org.wsI.testing.x2003.x03.monitorConfig.LogFile logFileConf = conf.addNewLogFile();
logFileConf.setLocation( "report.xml" );
logFileConf.setReplace( true );
/*
* ArrayOfRedirectConfig mintConf = conf.addNewManInTheMiddle();
* RedirectConfig redirect = mintConf.addNewRedirect();
* redirect.setListenPort( 9999 ); redirect.setMaxConnections( 10 );
* redirect.setReadTimeoutSeconds( 10 );
*
* URL endpoint = new URL( modelItem.getEndpoint()); if(
* endpoint.getPort() > 0 ) redirect.setSchemeAndHostPort(
* endpoint.getHost() + ":" + endpoint.getPort()); else
* redirect.setSchemeAndHostPort( endpoint.getHost() );
*/
Environment env = monitor.addNewEnvironment();
NameVersionPair osConf = env.addNewOperatingSystem();
osConf.setName( "Windows" );
osConf.setVersion( "2003" );
NameVersionPair rtConf = env.addNewRuntime();
rtConf.setName( "java" );
rtConf.setVersion( "1.5" );
NameVersionPair xpConf = env.addNewXmlParser();
xpConf.setName( "xmlbeans" );
xpConf.setVersion( "2.1.0" );
Implementation implConf = monitor.addNewImplementer();
implConf.setName( "soapui" );
implConf.setLocation( "here" );
}