2 Replies Latest reply: Aug 22, 2014 4:20 AM by Niranjan RSS

    How to setup DistributionOptions_ADHOC to get the PDF as an Attachment

    Niranjan

      Hi,

       

      I am able to generate the PDF as a URL response in SOAP using distributionoptions_PREDEFINED, but I want to get the PDF as base64 byte array. I tried the below SOAP request, but I am getting an error saying ini option does not exist in the ini group. May I know what I am missing here?. "doPublishattachment = Yes" was already set under < IDSSERVER >.

       

      <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>

            <doPublishRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="doPublishReq_Import" xmlns="http://webservices.docucorp.com/ewps/schema/2005-12-01">

        <LibraryId>TEST</LibraryId>

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

          <Priority>REALTIME</Priority>

          <Channel xsi:type="Channel_IMMEDIATE">

          <PublishType>PDF</PublishType>

          <Disposition Location="ATTACH"/>

          <DistributionType>IMMEDIATE</DistributionType>

         </Channel>

        </DistributionOptions>

        <SourceType>IMPORT</SourceType>

        <Import>

          <ImportFile xsi:type="ImportFile_ATTACH" location="ATTACH">PD94..............................==</ImportFile>

        </Import>

      </doPublishRequest>

         </soapenv:Body>

      </soapenv:Envelope>

        • 1. Re: How to setup DistributionOptions_ADHOC to get the PDF as an Attachment
          User9976623-Oracle

          Here is an example, you can compare what is different. From the look of it the recipient info is missing from yours. Does it say which INI option is missing when you get an error?

           

          <doPublishRequest xsi:type="doPublishReq_Import" xmlns="http://webservices.docucorp.com/ewps/schema/2005-12-01">

                  <LibraryId>CONFIGNAME</LibraryId>

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

                    <Priority>REALTIME</Priority>

                    <Channel xsi:type="Channel_IMMEDIATE">

                      <PublishType>PDF</PublishType>

                      <DistributionType>IMMEDIATE</DistributionType>

                      <Disposition location="ATTACH" />

                      <Recipient name="ORIGINAL">

                        <Props>

                          <Prop name="" />

                        </Props>

                        <Copies />

                        <Story StoryName="" id="" alias="" />

                      </Recipient>

                    </Channel>

                  </DistributionOptions>

                  <SourceType>IMPORT</SourceType>

                  <Import>

                    <ImportFile xsi:type="ImportFile_ATTACH" d6p1:contentType="" location="ATTACH" xmlns:d6p1="http://www.w3.org/2005/05/xmlmime">O05hdXRpbH.......</ImportFile>

                  </Import>

                </doPublishRequest>

          • 2. Re: How to setup DistributionOptions_ADHOC to get the PDF as an Attachment
            Niranjan

            Due to some other issue, I restarted my server and later I can see the file is attaching instead of URL with PREDEFINED option itself. I am good here. Thank you.