title: Access the request XML in a SOAP UI mock response script
body: <p>I have a mock response, which needs to return a value that was in the request. For example, this request can come in:</p>
  
  <pre><code>&lt;myReqest&gt;&lt;myValue&gt;123&lt;/myValue&gt;&lt;/myRequest&gt;
  </code></pre>
  
  <p>I already have a mockResponse:</p>
  
  <pre><code>&lt;myResponse&gt;&lt;yourValue&gt;${theValue}&lt;/yourValue&gt;&lt;/myResponse&gt;
  </code></pre>
  
  <p>I know how to set the value of ${theValue} through the context variable, but I can't figure out how to access the request and parse it for the value.</p>
  
  <p>Any help would be much appreciated.</p>
  
  <p>Thanks,
  Jonny</p>