title: SOAP UI: Using a value from XML for a service request
body: <p>Can some explain the best way on SOAP UI Free to achieve the below scenario</p>
  
  <p>Load the response value from one Test Case Web service as a request value on second Test Case Web service. </p>
  
  <p>in Test case 1 Script Assertion</p>
  
  <pre><code>import com.eviware.soapui.support.XmlHolder
  def respXmlHolder = new XmlHolder(messageExchange.getResponseContentAsXml())
  respXmlHolder.declareNamespace("ns1","http://www.moj.com/api/services/checkout")
  def finsess = respXmlHolder.getNodeValue("//ns1:sessresp/ns1:sessionId")
  log.info finsess
  </code></pre>
  
  <blockquote>
    <p>Log Info shows below 70c8a6f80b6ff0c72502</p>
  </blockquote>
  
  <p>Now how to automatically load this above sessionid onto Test Case 2 Web Service as shown below.</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://www.moj.com/api/services/final"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;typ:FinSessionRequest&gt;
           &lt;typ:correlationId&gt;1234&lt;/typ:correlationId&gt;
           &lt;typ:sessionId&gt;70c8a6f80b6ff0c72502&lt;/typ:sessionId&gt;
           &lt;typ:username&gt;abcd&lt;/typ:username&gt;
           &lt;typ:password&gt;1234&lt;/typ:password&gt;
        &lt;/typ:FinSessionRequest&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt; 
  </code></pre>