Forum Discussion

shanum's avatar
shanum
Occasional Contributor
15 years ago

Decrypt Base64 response XML

The response I get for my WebService call in SOAPUI is in Base64. How do I display a formatted decrypted response XML? I tried the Script Assertion which looks like this:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def requestHolder = groovyUtils.getXmlHolder( messageExchange.requestContent )
def responseHolder = groovyUtils.getXmlHolder( messageExchange.responseContent )
//responseHolder.getXml();
//assert XmlUtils.decoder64(responseHolder.getXml());
XmlUtils.decoder64(responseHolder.getXml());


This logs the decrypted xml in the script log. Is there a better way?
No RepliesBe the first to reply