IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: joaorosa
About
User Name: joaorosa
Forum Rank: Newbie
Real Name:
Location Dublin
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Tuesday, March 24, 2015
Last Visit: Tuesday, March 24, 2015 2:09:04 PM
Number of Posts: 1
[0.01% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: How to use the ZIP feature in HTTP POST
Posted: Tuesday, March 24, 2015 2:08:57 PM
Hi all,

I have a doubt, and I'm fighting against it in the last two days.
In CLI of the RaptorXML+XBRL I can do ZIP files validations like this:

RaptorXMLXBRL.exe xbrl --parallel-assessment --listfile c:\filelist.txt

And my file list has the following instructions:

c:\Files.zip|zip\*.xbrl

And the CLI command works as expected, validate the files in the ZIP file.

But in our system we want to use the HTTP server included in the product.

To do an HTTP POST to validate an XBRL file we use (the raw form values):

--8d2337e03fa28a7
Content-Disposition: form-data; name="msg"
Content-Type: application/json

{"command":"xbrl","options":{"listfile":false,"parallel-assessment":true}}

--8d2337e03fa28a7
Content-Disposition: attachment; filename="MyXbrl.xbrl"; name="args"
Content-Type: application/octet-stream

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<abrl>
<!-- The XBRL file. This will fail because the tag -->
</abrl>

--8d2337e03fa28a7--


And everything works as expected...

Now we want to use the same, but with the ZIP file...
The question is, how to do it?

I have problems posting the ZIP file, giving a "character 'r' does not fulfill production 'prolog'." exception.

Did anyone was successful posting an ZIP file to the server? If yes, can point out some tips to do it?

Cheers, João Rosa

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.