6 Replies Latest reply: Jun 18, 2013 3:02 PM by User9976623-Oracle RSS

    Documaker 11.5 doCallAPI:i_Proof

    Larry Wilkinson
      We have a need to supply an import file and have the watermark applied to it. It appears that i_Proof will do this, but I'm having trouble getting the service to accept the file. I suspect I'm incorrectly setting the FileProp attachment variable properly (note that the data is base64 encoded). This is a valid import file - I can successfully drive a doCreateFolder with it. Any help muchly appreciated.

      Thank you,
      Larry W

      Using SoapUI to drive a test request, this is the input payload:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://webservices.docucorp.com/ewps/schema/2005-12-01" xmlns:xm="http://www.w3.org/2005/05/xmlmime">
      <soapenv:Header/>
      <soapenv:Body>
      <ns:doCallAPIRequest schemaVersion="1.0">
      <!--Optional:-->
      <ns:timeOut>30</ns:timeOut>
      <ns:ProviderName>IDSProvider</ns:ProviderName>
      <ns:Operation>processRequest</ns:Operation>
      <ns:Props>
      <!--Zero or more repetitions:-->
      <ns:Prop name="ReqType">i_Proof</ns:Prop>
      <ns:Prop name="CONFIG">mrl</ns:Prop>
      <ns:Prop name="KEY1">key1</ns:Prop>
      <ns:Prop name="KEY2">key2</ns:Prop>
      <ns:Prop name="USERID">userid</ns:Prop>
      <ns:Prop name="DPRSETALLFIELDS">Yes</ns:Prop>
      <ns:Prop name="FILETYPE">XML</ns:Prop>
      <ns:Prop name="PRTTYPE">PDF</ns:Prop>
      <ns:FileProp name="IMPORTFILE" location="ATTACH">[base64 encoded attachment]</ns:FileProp>ns:FileProp
      </ns:Props>
      </ns:doCallAPIRequest>
      </soapenv:Body>
      </soapenv:Envelope>



      Response is:
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Body>
      <doCallAPIResponse xmlns="http://webservices.docucorp.com/ewps/schema/2005-12-01">
      <Props>
      <Prop name="IDSGUID">3DAE0275-1316-6855-0A36-65C0657D347F</Prop>
      <Prop name="IDSHOSTNAME">server.company.com</Prop>
      <Prop name="RESULTS">DPR0010</Prop>
      <Prop name="SERVERTIMESPENT">0.172</Prop>
      <Prop name="ServiceResults">SUCCESS</Prop>
      <Prop name="ServiceTimeMillis">329</Prop>
      <Collection name="DPR0010">
      <Item name="1">
      <Column name="APINAME">DXMLoadXMLFile</Column>
      <Column name="LOCATION">DPRLoadImportFile</Column>
      </Item>
      </Collection>
      <Collection name="DPR0017">
      <Item name="1">
      <Column name="VARIABLE">DPRFORMSET</Column>
      </Item>
      </Collection>
      <Collection name="ERRORS">
      <Item name="1">
      <Column name="CODE">DPR0010</Column>
      </Item>
      <Item name="2">
      <Column name="CODE">DPR0017</Column>
      </Item>
      </Collection>
      </Props>
      </doCallAPIResponse>
      </soapenv:Body>
      </soapenv:Envelope>



      The log shows the following:
      2013-06-04 14:49:27,287 DEBUG [IDS-3-BLP] - Running request i_Proof with options 'IFRT'
      2013-06-04 14:49:27,287 INFO [IDS-3-BLP] - Rule com.docucorp.ids.rules.LogTransactionRule.logTransaction, proxy for ATCLogTransaction(INIT) took 0s, 0ms
      2013-06-04 14:49:27,287 INFO [IDS-3-BLP] - Rule NOOP, proxy for ATCLoadAttachment(INIT) took 0s, 0ms
      2013-06-04 14:49:27,288 INFO [IDS-3-BLP] - Rule com.docucorp.ids.rules.IDSTransactionRule.reportTimes, proxy for ATCUnloadAttachment(INIT) took 0s, 0ms
      2013-06-04 14:49:27,288 INFO [IDS-3-BLP] - Rule libdpr.so->DPRSetConfig(INIT) took 0s, 0ms
      2013-06-04 14:49:27,289 INFO [IDS-3-BLP] - Rule com.docucorp.ids.rules.AttachmentFilerRule.receiveFile, proxy for ATCReceiveFile(INIT) took 0s, 0ms
      2013-06-04 14:49:27,289 INFO [IDS-3-BLP] - Rule libdpr.so->DPRLoadImportFile(INIT) took 0s, 0ms
      2013-06-04 14:49:27,290 INFO [IDS-3-BLP] - Rule libdpr.so->DPRAddWatermarkLogo(INIT) took 0s, 0ms
      2013-06-04 14:49:27,290 INFO [IDS-3-BLP] - Rule com.docucorp.ids.rules.AttachmentFilerRule.sendFile, proxy for ATCSendFile(INIT) took 0s, 0ms
      2013-06-04 14:49:27,290 INFO [IDS-3-BLP] - Rule libdpr.so->DPRPrint(INIT) took 0s, 0ms
      2013-06-04 14:49:27,291 INFO [IDS-3-BLP] - Rule com.docucorp.ids.rules.LogTransactionRule.logTransaction, proxy for ATCLogTransaction(RUNF) took 0s, 1ms
      2013-06-04 14:49:27,291 INFO [IDS-3-BLP] - Rule NOOP, proxy for ATCLoadAttachment(RUNF) took 0s, 0ms
      2013-06-04 14:49:27,291 INFO [IDS-3-BLP] - Rule com.docucorp.ids.rules.IDSTransactionRule.reportTimes, proxy for ATCUnloadAttachment(RUNF) took 0s, 0ms
      2013-06-04 14:49:27,625 INFO [IDS-3-BLP] - Rule libdpr.so->DPRSetConfig(RUNF) took 0s, 334ms
      2013-06-04 14:49:27,626 WARN [IDS-3-BLP] - AttachmentFilerRule.receiveFile- Attachment XMLIMPORT not found
      2013-06-04 14:49:27,626 WARN [IDS-3-BLP] - AttachmentFilerRule.receiveFile XMLIMPORT,IMPORTFILE,*.XML unsuccessful.
      2013-06-04 14:49:27,627 INFO [IDS-3-BLP] - Rule com.docucorp.ids.rules.AttachmentFilerRule.receiveFile, proxy for ATCReceiveFile(RUNF) took 0s, 1ms
      2013-06-04 14:49:27,712 WARN [IDS-3-BLP] - Error message done with 'DPR0010'
      2013-06-04 14:49:27,712 INFO [IDS-3-BLP] - Rule libdpr.so->DPRLoadImportFile(RUNF) took 0s, 85ms
      2013-06-04 14:49:27,712 WARN [IDS-3-BLP] - Error message done with 'DPR0017'
      2013-06-04 14:49:27,713 INFO [IDS-3-BLP] - Rule libdpr.so->DPRAddWatermarkLogo(RUNF) took 0s, 1ms
        • 1. Re: Documaker 11.5 doCallAPI:i_Proof
          Larry Wilkinson

          Update: some progress, but com.docucorp.ids.rules.AttachmentFilerRule.receiveFile fails w/DPR0014, DPR0026 - I', still wondering if i_proof can handle a file formatted according to an xdd, or whether it is expecting iDocumaker (or some other internal) format

           

          Updated request:

          <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://webservices.docucorp.com/ewps/schema/2005-12-01" xmlns:xm="http://www.w3.org/2005/05/xmlmime">

             <soapenv:Header/>

             <soapenv:Body>

                <ns:doCallAPIRequest schemaVersion="1.0">

                   <!--Optional:-->

                   <ns:timeOut>30</ns:timeOut>

                   <ns:ProviderName>IDSProvider</ns:ProviderName>

                   <ns:Operation>processRequest</ns:Operation>

                   <ns:Props>

                      <ns:Prop name="ReqType">i_Proof</ns:Prop>

                      <ns:Prop name="CONFIG">mrl</ns:Prop>

                      <ns:Prop name="FILETYPE">XMLIMPORT</ns:Prop>

                      <ns:Prop name="KEY1">key1</ns:Prop>

                      <ns:Prop name="KEY2">key2</ns:Prop>

                      <ns:Prop name="PRTTYPE">PDF</ns:Prop>

                      <ns:Prop name="USERID">userid</ns:Prop>

                      <ns:FileProp xm:contentType="application/xml" name="XMLIMPORT">importfileBase64Encoded</ns:FileProp>

                   </ns:Props>

                </ns:doCallAPIRequest>

             </soapenv:Body>

          </soapenv:Envelope>

           

           

           

          Reply message shows the following:

          <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

             <soapenv:Body>

                <doCallAPIResponse xmlns="http://webservices.docucorp.com/ewps/schema/2005-12-01">

                   <Props>

                      <Prop name="IDSGUID">B3336110-BCDB-4D08-901E-E57C4755E807</Prop>

                      <Prop name="IDSHOSTNAME">sch1h628.cna.com</Prop>

                      <Prop name="RESULTS">DPR0026</Prop>

                      <Prop name="SERVERTIMESPENT">0.144</Prop>

                      <Prop name="ServiceResults">SUCCESS</Prop>

                      <Prop name="ServiceTimeMillis">303</Prop>

                      <Collection name="DPR0014">

                         <Item name="1">

                            <Column name="AREA">DPRImportError</Column>

                            <Column name="CODE">71</Column>

                            <Column name="CODE2">0</Column>

                            <Column name="MESSAGE"/>

                         </Item>

                      </Collection>

                      <Collection name="DPR0017">

                         <Item name="1">

                            <Column name="VARIABLE">DPRFORMSET</Column>

                         </Item>

                      </Collection>

                      <Collection name="DPR0026">

                         <Item name="1">

                            <Column name="FILE">d3d97e85-1e86-9c71-e3d0-822958809bca-0-ids-1-.XML</Column>

                         </Item>

                      </Collection>

                      <Collection name="ERRORS">

                         <Item name="1">

                            <Column name="CODE">DPR0014</Column>

                         </Item>

                         <Item name="2">

                            <Column name="CODE">DPR0026</Column>

                         </Item>

                         <Item name="3">

                            <Column name="CODE">DPR0017</Column>

                         </Item>

                      </Collection>

                   </Props>

                </doCallAPIResponse>

             </soapenv:Body>

          </soapenv:Envelope>

           

           

           

          IDS Log shows the following

          2013-06-10 13:19:30,587 DEBUG [IDS-1-BLP] - Running request i_Proof with options 'IFRT'

          2013-06-10 13:19:30,587 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.LogTransactionRule.logTransaction, proxy for ATCLogTransaction(INIT) took 0s, 0ms

          2013-06-10 13:19:30,588 INFO  [IDS-1-BLP] - Rule NOOP, proxy for ATCLoadAttachment(INIT) took 0s, 0ms

          2013-06-10 13:19:30,588 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.IDSTransactionRule.reportTimes, proxy for ATCUnloadAttachment(INIT) took 0s, 0ms

          2013-06-10 13:19:30,588 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRSetConfig(INIT) took 0s, 0ms

          2013-06-10 13:19:30,588 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.AttachmentFilerRule.receiveFile, proxy for ATCReceiveFile(INIT) took 0s, 0ms

          2013-06-10 13:19:30,588 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRLoadImportFile(INIT) took 0s, 0ms

          2013-06-10 13:19:30,589 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRAddWatermarkLogo(INIT) took 0s, 0ms

          2013-06-10 13:19:30,589 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.AttachmentFilerRule.sendFile, proxy for ATCSendFile(INIT) took 0s, 0ms

          2013-06-10 13:19:30,589 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRPrint(INIT) took 0s, 0ms

          2013-06-10 13:19:30,589 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.LogTransactionRule.logTransaction, proxy for ATCLogTransaction(RUNF) took 0s, 0ms

          2013-06-10 13:19:30,589 INFO  [IDS-1-BLP] - Rule NOOP, proxy for ATCLoadAttachment(RUNF) took 0s, 0ms

          2013-06-10 13:19:30,590 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.IDSTransactionRule.reportTimes, proxy for ATCUnloadAttachment(RUNF) took 0s, 0ms

          2013-06-10 13:19:30,703 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRSetConfig(RUNF) took 0s, 113ms

          2013-06-10 13:19:30,703 DEBUG [IDS-1-BLP] - AttachmentFilerRule.receiveFile (RUNF) - arg is 'XMLIMPORT,IMPORTFILE,*.XML'

          2013-06-10 13:19:30,716 DEBUG [IDS-1-BLP] - AttachmentFilerRule.receiveFile successful, message variable 'IMPORTFILE' set to d3d97e85-1e86-9c71-e3d0-822958809bca-0-ids-1-.XML

          2013-06-10 13:19:30,716 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.AttachmentFilerRule.receiveFile, proxy for ATCReceiveFile(RUNF) took 0s, 13ms

          2013-06-10 13:19:30,726 WARN  [IDS-1-BLP] - Error message done with 'DPR0014'

          2013-06-10 13:19:30,726 WARN  [IDS-1-BLP] - Error message done with 'DPR0026'

          2013-06-10 13:19:30,727 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRLoadImportFile(RUNF) took 0s, 10ms

          2013-06-10 13:19:30,727 WARN  [IDS-1-BLP] - Error message done with 'DPR0017'

          2013-06-10 13:19:30,727 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRAddWatermarkLogo(RUNF) took 0s, 0ms

          2013-06-10 13:19:30,727 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.AttachmentFilerRule.sendFile, proxy for ATCSendFile(RUNF) took 0s, 0ms

          2013-06-10 13:19:30,728 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRPrint(RUNF) took 0s, 1ms

          **************************************************

          DPRImportError <71> <0>

          **************************************************

          2013-06-10 13:19:30,728 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRPrint(RUNR) took 0s, 0ms

          2013-06-10 13:19:30,728 DEBUG [IDS-1-BLP] - AttachmentFilerRule.sendFile (RUNR) - arg is 'DOCUMENTSTREAM,PRINTFILE,BINARY'

          2013-06-10 13:19:30,728 WARN  [IDS-1-BLP] - AttachmentFilerRule.sendFile- Unable to get message variable for PRINTFILE

          2013-06-10 13:19:30,728 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.AttachmentFilerRule.sendFile, proxy for ATCSendFile(RUNR) took 0s, 0ms

          2013-06-10 13:19:30,728 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRAddWatermarkLogo(RUNR) took 0s, 0ms

          2013-06-10 13:19:30,729 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRLoadImportFile(RUNR) took 0s, 0ms

          2013-06-10 13:19:30,729 DEBUG [IDS-1-BLP] - AttachmentFilerRule.receiveFile - removed file d3d97e85-1e86-9c71-e3d0-822958809bca-0-ids-1-.XML

          2013-06-10 13:19:30,730 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.AttachmentFilerRule.receiveFile, proxy for ATCReceiveFile(RUNR) took 0s, 0ms

          2013-06-10 13:19:30,730 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRSetConfig(RUNR) took 0s, 0ms

          2013-06-10 13:19:30,731 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.IDSTransactionRule.reportTimes, proxy for ATCUnloadAttachment(RUNR) took 0s, 0ms

          2013-06-10 13:19:30,731 INFO  [IDS-1-BLP] - Rule NOOP, proxy for ATCLoadAttachment(RUNR) took 0s, 0ms

          2013-06-10 13:19:30,731 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.LogTransactionRule.logTransaction, proxy for ATCLogTransaction(RUNR) took 0s, 0ms

          2013-06-10 13:19:30,731 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRPrint(TERM) took 0s, 0ms

          2013-06-10 13:19:30,731 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.AttachmentFilerRule.sendFile, proxy for ATCSendFile(TERM) took 0s, 0ms

          2013-06-10 13:19:30,732 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRAddWatermarkLogo(TERM) took 0s, 0ms

          2013-06-10 13:19:30,732 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRLoadImportFile(TERM) took 0s, 0ms

          2013-06-10 13:19:30,732 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.AttachmentFilerRule.receiveFile, proxy for ATCReceiveFile(TERM) took 0s, 0ms

          2013-06-10 13:19:30,732 INFO  [IDS-1-BLP] - Rule libdpr.so->DPRSetConfig(TERM) took 0s, 0ms

          2013-06-10 13:19:30,732 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.IDSTransactionRule.reportTimes, proxy for ATCUnloadAttachment(TERM) took 0s, 0ms

          2013-06-10 13:19:30,732 INFO  [IDS-1-BLP] - Rule NOOP, proxy for ATCLoadAttachment(TERM) took 0s, 0ms

          2013-06-10 13:19:30,733 INFO  [IDS-1-BLP] - Rule com.docucorp.ids.rules.LogTransactionRule.logTransaction, proxy for ATCLogTransaction(TERM) took 0s, 0ms

          • 2. Re: Documaker 11.5 doCallAPI:i_Proof
            User9976623-Oracle

            What is in the import file? Most likely the problem is that the import file has to be in Docucorp XML format but it isn't. Can you paste the file here or at least a snippet of it?

            • 3. Re: Documaker 11.5 doCallAPI:i_Proof
              Larry Wilkinson

              Import file is in format specified in the corresponding XDD schema, not Docucorp XML. It isn't clear to me sometimes which calls expect which document formats, or whether there's flexibility and an option to indicate which format an import file might be in. Thanks.

              • 4. Re: Documaker 11.5 doCallAPI:i_Proof
                User9976623-Oracle

                In that case you can try using doPublish with PREVIEW option. It is supposed to put the proof watermark on the output PDF.

                • 5. Re: Documaker 11.5 doCallAPI:i_Proof
                  Larry Wilkinson

                  I have now tried that also - the options seems to be ignored...Suggestion much appreciated - thanks


                  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://webservices.docucorp.com/ewps/schema/2005-12-01">

                     <soapenv:Header/>

                     <soapenv:Body>

                        <p354:doPublishRequest xsi:type="p354:doPublishReq_Import" xmlns:p354="http://webservices.docucorp.com/ewps/schema/2005-12-01" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

                    <p354:timeOut>180</p354:timeOut>

                    <p354:LibraryId>mrl

                   

                  </p354:LibraryId>

                    <p354:DistributionOptions xsi:type="p354:DistributionOptions_PREDEFINED" source="PREDEFINED">

                      <p354:Priority>REALTIME</p354:Priority>

                      <!--

                      <p354:Channel>

                      <p354:Recipient name="ALLRECIPS"/>

                        <p354:Preview>True</p354:Preview>

                      </p354:Channel>

                      -->

                      <p354:PREVIEW>True</p354:PREVIEW>

                    </p354:DistributionOptions>

                    <p354:SourceType>IMPORT</p354:SourceType>

                    <p354:Import>

                      <ImportFile location="ATTACH" xmime:contentType="ImportFile_ATTACH" xsi:type="ImportFile_ATTACH" xmlns="http://webservices.docucorp.com/ewps/schema/2005-12-01" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">

                   

                  ...

                   

                      </ImportFile>
                    </p354:Import>
                  </p354:doPublishRequest>

                     </soapenv:Body>
                  </soapenv:Envelope>


                  • 6. Re: Documaker 11.5 doCallAPI:i_Proof
                    User9976623-Oracle

                    I think syntax is not exactly correct for preview. The text element inside the <Preview> should say Print and not True.

                     

                    Here is a small example:

                     

                    <?xml version="1.0" encoding="UTF-8" ?>

                     

                    <so:doPublishRequest xmlns:so="http://www.w3.org/2005/05/xmlmime" xmlns="http://webservices.docucorp.com/ewps/schema/2005-12-01" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://webservices.docucorp.com/ewps/schema/2005-12-01 xsi:type="doPublishReq_Import" schemaVersion="1.0">

                      <LibraryId>RPEX1</LibraryId>

                    <DistributionOptions xsi:type="DistributionOptions_ADHOC" source="ADHOC">

                      <DocucorpArchive>false</DocucorpArchive>

                      <Priority>REALTIME</Priority>

                      <Preview>Print</Preview>

                    <Channel xsi:type="Channel_IMMEDIATE">

                      <PublishType>PDF</PublishType>

                      <DistributionType>IMMEDIATE</DistributionType>

                      <Disposition location="URL" />

                      <Recipient name="ALLRECIPIENTS" />

                      </Channel>

                      </DistributionOptions>

                      <SourceType>IMPORT</SourceType>

                    <Import>

                    <ImportFile location="URL" xmime:contentType="String" URLLocation="rpex1images.xml"></ImportFile>

                      </Import>

                    </so:doPublishRequest>