Forum Discussion

Nikolaj's avatar
Nikolaj
Occasional Contributor
13 years ago

Error occurs when get value from http response

Hi All,

I have i little problem. When I get value from http response by groovy script as:

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder("QS#Response")


Error occurs: "org.apache.xmlbeans.XmlExeption: error: Unexpected characted encountered: '_'

Please tell me get value from http response.

Any suggestion is appreciated.

Thanks in advance.

1 Reply

  • M_McDonald's avatar
    M_McDonald
    Super Contributor
    Are you sure the response is well-formed XML? Try

    def holder = groovyUtils.getXmlHolder("QS#ResponseAsXml")

    SoapUI will then use HTML Tidy to try to format the response as well-formed XML if it is not already.