Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
I would suggest you to try this in RequestFilter.afterRequest event Handler,
http://www.soapui.org/Scripting-Properties/custom-event-handlers.html
Paste the code in
Thanks,
Jeshtha
I would suggest you to try this in RequestFilter.afterRequest event Handler,
http://www.soapui.org/Scripting-Properties/custom-event-handlers.html
Paste the code in
def grUtils = new com.eviware.soapui.support.GroovyUtils(context)
def content = context.httpResponse.getContentAsXml()
def ResponseHolder = grUtils.getXmlHolder(content)
content = ResponseHolder.getXml().toString()
content = content.replaceFirst("<e>", "")
content = content.replaceAll("\n </e>", "")
content = content.stripMargin()
context.httpResponse.setResponseContent(content)
Thanks,
Jeshtha