1 Reply Latest reply on Oct 30, 2009 4:59 AM by Hodmi

    Output services throwing UserException.

    naren.k Level 1

       

      Hi,

                      I am getting a SOAP fault while calling the Adobe Livecycle Output service. Am I calling the service with wrong/invalid parameters.  In the same file I am calling FormServices with same credentials which works fine. Please help.

       

                      String LC_OS_ENDPOINT = "http://"+host+"/soap/services/OutputService?blob=base64";


                      ((javax.xml.rpc.Stub) outputOb)._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, LC_OS_ENDPOINT);
                      ((javax.xml.rpc.Stub) outputOb)._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, LC_USER);
                      ((javax.xml.rpc.Stub) outputOb)._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, LC_PW);


                 String formName = "/Temp/Forms/TEstForm.xdp";
                  String formDataXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><form1><name>Naren</name><number>203922</number></form1>";
                  BLOB indata = new BLOB();
                  indata.setBinaryData(formDataXML.getBytes());

       

       

                  com.adobe.PDFOutputOptionsSpec pdfOptions = new com.adobe.PDFOutputOptionsSpec();
                  com.adobe.RenderOptionsSpec outRenderOptions = new com.adobe.RenderOptionsSpec();
                  outRenderOptions.setCacheEnabled(true);
                  BLOBHolder generatePDFOutputPDFDoc = new BLOBHolder();
                  BLOBHolder  generatePDFOutputMetaDataDoc = new BLOBHolder();
                  OutputResultHolder outResult = new OutputResultHolder();

                outputOb.generatePDFOutput(TransformationFormat.PDF,
                                              formName,
                                              "repository://",
                                              pdfOptions,
                                              outRenderOptions,
                                              indata,
                                              generatePDFOutputPDFDoc,
                                              generatePDFOutputMetaDataDoc,
                                              outRenderPDFFormResultDoc,
                                              outResult);

       

       

       

       


      SOAP Resp:

           <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <soapenv:Body>
          <soapenv:Fault>
            <faultcode>soapenv:Server.userException</faultcode>
            <faultstring>com.adobe.livecycle.output.exception.OutputException: ALC-DSC-000-000: com.adobe.idp.dsc.DSCException: Internal error.</faultstring>
            <detail>
              <faultData>
                <ns1:result xmlns:ns1="http://adobe.com/idp/services" xsi:nil="true"/>
              </faultData>
              <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">livdsapps19</ns2:hostname>
            </detail>
          </soapenv:Fault>
        </soapenv:Body>
      </soapenv:Envelope>