Forum Discussion

gallo's avatar
gallo
New Contributor
9 years ago

Not showing CDATA in small responses

I'm trying to mock response with cdata in soapui, when the response is small cdata is not rendered in XML view and < is escaped:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:con="consultarmsestabelecimentocampanha.sas.com">
   <soapenv:Header/>
   <soapenv:Body>
      <con:retorno>
         <con:output>&lt;html>&lt;/html></con:output>
      </con:retorno>
   </soapenv:Body>
</soapenv:Envelope>

 

In bigger response, I can see cadta in response

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:con="consultarmsestabelecimentocampanha.sas.com">
   <soapenv:Header/>
   <soapenv:Body>
      <con:retorno>
         <con:output><![CDATA[<html><body><p>teste do cdata</p></body></html>]]></con:output>
      </con:retorno>
   </soapenv:Body>
</soapenv:Envelope>

 

Raw view shows CDATA correctly.

 

1 Reply

  • gallo's avatar
    gallo
    New Contributor

    setting Pretty Print to false in soapui request show correct, I don't know if its a bug.