Dear all,
I 'm trying to return a zip from a restxq request with a (simplified) function like :
declare %restxq:path("cnfull/aozip/{$doc-number}/{$kind}") %restxq:GET %output:media-type("application/zip") function questel:zipped-ao-request-by-doc-number-kind($doc-number as xs:string, $kind as xs:string) { archive:create( element archive:entry { 'blabla.xml' }, fn:serialize(<xml-here/>)) };
But the result is an invalid zip archive...
Am I missing something ?
Best regards, And thank you for the wonderful peace of software BaseX is.
Fabrice