title: How to get content of a request in mocked service in SoapUI?
body: <p>I want to get headers and content of POST request made to SoapUI Mock Service.</p>
  
  <p>I've got it running and I can see it captures the requests because it returns responses and there's a log with date and mapping.</p>
  
  <p>I've read that I should type in <code>OnRequest Script</code> tab <code>log.info mockRequest.requestContent</code> and restart the service.</p>
  
  <p>That makes no difference and when I click green arrow a windows pops up with error: <code>NullPointerException: Cannot get property 'requestContent' on null object</code> so I believe the advice I found online is false or maybe there's another way of executing this.</p>
  
  <p>Here's the window of the MockService and the error:</p>
  
  <p><a href="https://i.stack.imgur.com/CtfPD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CtfPD.png" alt="enter image description here"></a></p>