Expand my Community achievements bar.

Merge XML data with PDF form using workflow ?

Avatar

Former Community Member
Hi All - We are new to livecycle and are trying to achieve a simple proof of concept demo using the livecycle sandbox.. Ill try to make this simple if someone can give us a better clue<br />as to a better direction we can follow...<br /><br />What we are trying to achieve: Merge a PDF form with a XML source so that the PDF displays the info from the XML. <br />We are trying to use LiveCycle Workflow because it directly wraps a Web Service.<br /><br />What we have done: <br />1. Created a Form(without binding it to a XSD) with only two fields "TextField1" and "TextField2".<br />2. Created a Workflow with just one component "Form Server Render Form".<br />3. Defined the "Form Server Render Form" in this way: Form Query- testfields.pdf Form Preference- PDFMerge Input XML Data- {$ /process_data/test $} Content Root URI- file://C:/Adobe/LiveCycleWorkflow7_SDK-703/Samples/Processes<br />4. Defined a input variable for the Workflow with name- testVar, type- xml, in is checked<br />5. Save and deploye the Workflow. It shows as a Web Service at Web Service Directory.<br />6. Try to run this Web Service from http://sandbox.adobe.com:8080/services/ in the "testVar" field, fill in "<TextField1>Test</TextField1>", gets error "org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize."<br />7. Try to add prolong in the "testVar" field and make it looks like "<?xml version="1.0" encoding="UTF-8"?><TextField1>Test</TextField1>", gets error "org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed"<br /><br />If I directly put a string value (such as "test") in the field and click "invoke", the error is org.xml.sax.SAXParseException: Content is not allowed in prolog.<br /><br />Much Thanks !!!<br />-noob
0 Replies