By the way sorry for my english.<br /><br />Im developing an application that uses forms. Im using XML + XDP to generate a pdf and then im using java api to process that form.<br /><br />When i try to use <br /><br />PDFContent content = new PDFContent();<br />FormsServiceClient formsClient = new FormsServiceClient(<br /> getServiceClientFactory());<br />Document formData = new Document(pdf);//pdf is a byte[]<br />RenderOptionsSpec processSpec = new RenderOptionsSpec();<br /> processSpec.setLocale("es_ES");<br /><br />FormsResult formOut = formsClient.processFormSubmission(formData, "CONTENT_TYPE=application/vnd.adobe.xdp+xml","", processSpec);<br /><br />I receive an error like this:<br /><br />com.adobe.livecycle.formsservice.exception.FormServerException: Parse error on document: DataSets error: Parse error on document: FSRequest error: Content in preface not allowed.<br /> at com.adobe.formServer.DataSets.<init>(DataSets.java:175)<br /> at com.adobe.formServer.FSRequest.getDataSets(FSRequest.java:1028)<br /> at com.adobe.formServer.RunTimeContext.commonInit(RunTimeContext.java:389)<br /> at com.adobe.formServer.RunTimeContext.<init>(RunTimeContext.java:322)<br /> at com.adobe.formServer.FormServer.doProcessFormSubmission(FormServer.java:362)<br /><br />I try to find this error in documentation but seems im first person with this problem. Any tip will be very apreciated.<br /><br />Thks in advance.