title: Save SOAP UI mock requests to a file
body: <p>I m using Soap UI basic version for some mocking. I need to persist my requests to some file. I just have generated mock services with some predefined input to output rules, and i searched on net and found this:</p>
  
  <pre><code>def logArea = com.eviware.soapui.SoapUI.logMonitor.getLogArea( "http log" );
  def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) 
  
  Date startTime = new Date();
  def cur_Time = startTime.getMonth() + "_" + startTime.getDate()
  cur_Time = cur_Time + "_" + startTime.getHours()  + "_" + startTime.getMinutes() +startTime.getSeconds()
  
  def testPath = "C:/Users/..." + cur_Time  + ".log"
  def logFile = new File(testPath)
  
  logFile.write("soapUI Logs In a file.\r\n")
     if( logArea !=null )
     {
        def model = logArea.model
        if( model.size &gt; 0 )            
           for( c in 0..(model.size-1) )         
             logFile.append("\n" + model.getElementAt( c ))         
     }
  
  logArea.clear() 
  </code></pre>
  
  <p>and this works fine only from Soap UI GUI request calling. How can i persist my requests even if i call this mock service from external services? </p>
  
  <p>I don't have any test cases, and don't need to save requests from them, only direct requests from external system.</p>
  
  <p>Thanks!</p>