Content-Type application/xml not working in response of web service

Hi there,
I’m trying to test a web service with Katalon Studio. The Content-Type of the response that the web service gives me is application/xml.
If I try to ‘verify element property value’ Katalon gives me the following error:

When I change the Content-Type of the response to text/xml, it works perfectly fine.

Why doesn’t Katalon work with application/xml?

Hi @bram.kroon,
We are investigating on this issue. In the mean time, you can work around by get the raw response content via getResponseText(), then use XmlSlurper to parse your content and verify as needed. Please refer to the documentation of XmlSlurper at https://docs.groovy-lang.org/latest/html/api/groovy/util/XmlSlurper.html

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.