/ Published in: Groovy

Salvare la response su file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import org.apache.commons.codec.binary.Base64 // define namespace // Populate these holder.namespaces["ns12"] = "" holder.namespaces["ns23"] ="" def textBase64 = holder.getNodeValues( "//ns12:createReportResponse[1]/return[1]/ns23:output[1]" ).toString() fos.flush() log.info "Temporary PDF file stored as: ${zipFile.getCanonicalPath()}"
Comments
