title: SOAPUI Property Transfer - [Error: Unexpected element: CDATA]
body: <p>I have a SOAPUI project aimed at v4 of an API. To use the API, I need to authenticate to get a token, and then use that token in subsequent API calls. I'm using a Property Transfer to pick up the authentication token and store it as a Custom Property (against the TestSuite). This all works fine.</p>
  
  <p>I'm now working against v1 of the API, and I am trying to follow the same approach. However, when I do the token transfer, I get an error:</p>
  
  <pre><code>[Error: Unexpected element: CDATA]
  </code></pre>
  
  <p>The response from the v1 Authenticate request is near-identical, except for the following:</p>
  
  <ul>
  <li>The returned elements have an initial capital</li>
  <li>One of the namespaces is different (references version 1.0 rather than 4.0, as expected)</li>
  <li>Content-Length header is 300 rather than 302 (can't see an actual difference in length though)</li>
  </ul>
  
  <p>And there is no CDATA element within.</p>
  
  <p><strong>Sample Response:</strong></p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;s:Body&gt;
        &lt;AuthenticateResponse xmlns="http://cse-healthcare.com/API/1.0"&gt;
           &lt;AuthenticateResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
              &lt;AuthenticationToken&gt;a183577c-52d8-4fa0-a73a-611e6a143d79&lt;/AuthenticationToken&gt;
              &lt;Response xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/&gt;
              &lt;Status&gt;
                 &lt;Code&gt;EGE00&lt;/Code&gt;
                 &lt;Description i:nil="true"/&gt;
                 &lt;Status&gt;OK&lt;/Status&gt;
              &lt;/Status&gt;
           &lt;/AuthenticateResult&gt;
        &lt;/AuthenticateResponse&gt;
     &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>
  
  <p><strong>Property Transfer:</strong></p>
  
  <p>I'm using <code>//*:AuthenticationToken/text()</code>, which is identical to that working against v4, apart from the initial capital.</p>
  
  <p><a href="https://i.stack.imgur.com/5j3mD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5j3mD.png" alt="Property Transfer Config"></a></p>
  
  <p>It's not an absolute show-stopper; I don't have that much testing to do so copying the token to other requests would not be crippling, but it is just frustrating that something that appears to be identical does not work.</p>
  
  <p>Any ideas?</p>