title: access response in SOAP UI in Groovy Script
body: <p>I am new to Groovy Scripting. I am trying to access the value of a Response node
  below is the script</p>
  
  <pre><code>def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context);
  def responseHolder = groovyUtils.getXmlHolder( testRunner.testCase.testSteps["request"].testRequest.response.responseContent );
  responseHolder.namespaces["ns0"]="http://xmlns.int.com/orders/xsd/v1"
  String mySection = responseHolder.getNodeValue["//ns0:MT_OrderCreateDTCFulfillmentResponse/ns0:StatusCode"] ;
  log.info mySection
  </code></pre>
  
  <p>mySection is printed as []</p>
  
  <p>Response XML:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;soapenv:Header xmlns:v1="http://xmlns.int.com/orders/xsd/v1"/&gt;
     &lt;soapenv:Body xmlns:v1="http://xmlns.int.com/orders/xsd/v1"&gt;
        &lt;ns0:MT_OrderCreateDTCFulfillmentResponse xmlns:ns0="http://xmlns.int.com/orders/xsd/v1"&gt;
           &lt;StatusCode&gt;000&lt;/StatusCode&gt;
           &lt;ReferenceDocNbr&gt;NA&lt;/ReferenceDocNbr&gt;
           &lt;SchemaValidationStatus&gt;Validated&lt;/SchemaValidationStatus&gt;
           &lt;StatusTimestamp&gt;2015-08-03T18:58:01.602&lt;/StatusTimestamp&gt;
           &lt;FaultDetails&gt;Request for customer order number NA received successfully and format validated.&lt;/FaultDetails&gt;
        &lt;/ns0:MT_OrderCreateDTCFulfillmentResponse&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>SOAP UI Project Structure - I am running Test_Script. Suggest me what i am missing
  <a href="https://i.stack.imgur.com/5vpPv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5vpPv.png" alt="SOAP UI Project structue"></a> </p>