title: Karate API pass def variable in XML
body: <p>I defined a variable with </p>
  
  <pre><code>* def token = '1bce02b8..'
  </code></pre>
  
  <p>I would like to retrieve the variable I defined so I can pass this to my SOAP request. How can I make this possible?</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.com"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;ws:isValid&gt;
           &lt;token&gt;$token&lt;/token&gt;
        &lt;/ws:isValid&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>