Forum Discussion
SmartBear_Suppo
Alumni
17 years agoHello,
The reason that the response is not parsed as XML is that it is invalid, the contents of the faultstring is being parsed as an element (
), which has no closing tag and contains illegal characters in the element name (namely %). This whole block should be escaped using a CDATA section. If possible, this needs to be changed on the server, as no conforming XML parser should treat the response as it is now correctly. A workaround you can do is to manually escape the string in soapUI. For example:
Regards,
Dain
eviware.com
The reason that the response is not parsed as XML is that it is invalid, the contents of the faultstring is being parsed as an element (
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
def escaped = context.expand('${SOAP Request#Response}').replace('<faultstring>', '<faultstring><![CDATA[').replace('</faultstring>', ']]></faultstring>')
def response = groovyUtils.getXmlHolder( escaped )
Regards,
Dain
eviware.com