25 Feb
2014
25 Feb
'14
5:42 p.m.
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