cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Need help for uploading XML by HTTP/POST

koyamak
1-Newbie

Need help for uploading XML by HTTP/POST

Hi. I'm toatally newbie here and having a problem. I tried to POST a xml file which is made dynamically on other server. I want to upload it into PE server and convert it into PDF. Parameters I used with is file-type=xml, type=pdf, f=convert. I always has the result saying code:500 internal server error. Is there a good example to do this? What I want to do is, - Upload a XML file by HTTP/POST - Use xsl that was uploaded in PE server before - Get PDF as responce as application/pdf - Do this in Java I'd be really glad if I could get sample source or pointers(links). Would someone please help me?
1 REPLY 1

I did it. - It is not application/x-www-form-urlencoded. - It is not multipart/form-data. if you do it, PE can't find parameters and files - You can set parameters on URL like GET if you even POST it. - In HTTP request header, you set content-type here. Not in MIME part - You put file contents only in HTTP request body - You must not encode request body - You can't do this with HTML. I'd be glad if e3 would support multipart/form-data. Now I have another problem. When I sent a XSL-FO file, I got PDF but it'is not what I wanted. It just looks like text in the FO file are put into the pdf file. Is this the right thing e3 is supposed to do? How can I transform FO (or other original XML) into PDF with e3 PE? Can I do this without Arbortext Editor/Styler because I'm makeing a web application which makes dynamic XML . Thanks in advance.
Announcements