InDesign Server SOAP API - Status check

Hi,
I am running 5 InDesign ports and sending jobs using "Sample Client" SOAP method. For some unknown reason, some ports got crash or not responding. How can I check whether particular port is running without "crash or not-response"? So that, I can notify this by automatically, and send the job to another port.

If you're an InDesign Server developer, you probably need to post here:
InDesign Server Developers

Similar Messages

  • SSL and indesign server - soap communications.

    Does anyone know if (and how) you could use SSL to talk to indesign server using soap.  The gSoap library (that I believe indesign server uses) has some support but needs compiling to include it, so I'm assuming it isn't included but would like to know for sure.
    Thanks
    Ian

    Hi folks!
    A typical scenario I'll encounter at customers regularly is that they have SSL only until the Webcache in the DMZ , as Jon has described. You could create real end-to-end security. The connection to the OHS in the middle tier and even to the infrastructure can use SSL.
    When you want to have the database connection encrypted you'll need the Adv. Security option. The protocol between the middle tier and your database is usually using SQLNet or JDBC. For these you need the Advanced Security option.
    cu
    Andreas

  • InDesign Server, Applescript, and SOAP

    Hi All,
    I've scoured these forums and the rest of the 'net as best I can, but I can't seem to find a solution for my issue, so I'm hoping maybe someone out there can shed some light on it for me.
    I have InDesign Server running on one box (IP of 192.168.1.5, launched to service SOAP commands on port 12345), and I'm attempting to send a SOAP command to it via Applescript from another box, but I can't seem to figure out how to get it the RunScriptParameters. The Applescript I'm running looks something like (dummy text in for the parameters right now, because that's where my trouble is):
    tell application "http://192.168.1.5:12345/"
        set resultText to call soap {method name:"RunScript", method namespace uri:"http://ns.adobe.com/InDesign/soap/", parameters:????}
    end tell
    Every time I run it, under a variety of ways of trying to feed it parameters, I get the error: "/ got an error: The required SOAP element "RunScriptParameters" could not be found. Please check the SOAP message that was sent to InDesignServer." I'm lead to believe that the method name and method namespace uri I'm sending through are correct, as if I change either of those it gives me a generic error. (Method <blah> not implemented, if I change "RunScript or the method namespace uri.)
    So, what I'm left with is figuring out how exactly to send through the RunScriptParameters with this setup. I've tried every way I can think of to feed it the scriptLanguage, scriptFile, and scriptArgs, as an array of elements under parameters, as part of a variable called runScriptCommands which I feed through parameters, and every variety of this, to no avail, all giving exactly the same error. Any help would be immensely appreciated.
    (And I know Applescript may not be the ideal way to call a SOAP command, but it would be a very simple way for me to test ID Server scripts in my situation, and there isn't any reason that I can see that it shouldn't work...)
    Thanks!
    Mathew

    Hey..Can you tell me how did you executed jsx using sampleclient. Which SDK's sampleclient you used for executing this.??

  • InDeSign Server - Flex - SOAP - Business cards tutorial - MISSING Arguments for Script

    Hello, <br /><br />I test even Adobe Flex with InDesign server. I am occupied with<br />the Business cards tutorial. The Problem is, which no arguments are<br />transferred to servers at InDesign. The Script is executed and the new document and the pdf are produced.<br />But without contents!? Is the error situated in it WSDL file? Here my<br />data:<br />InDesign Server Port = 8070<br />Mac Localhost = http://localhost:8888<br />The IDSP Root = http://localhost:8888/IDSP.wsdl<br /><br />IDSP.wsdl Content<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><definitions name="Service"<br /> targetNamespace="http://localhost:8888/IDSP.wsdl"<br /> xmlns:tns="http://localhost:8888/IDSP.wsdl"<br /> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"<br /> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"<br /> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br /> xmlns:xsd="http://www.w3.org/2001/XMLSchema"<br /> xmlns:IDSP="http://ns.adobe.com/InDesign/soap/"<br /> xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"<br /> xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"<br /> xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"<br /> xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"<br /> xmlns="http://schemas.xmlsoap.org/wsdl/"><br /> .........<br />......<br /><service name="Service"><br /> <documentation>gSOAP 2.7.8c generated service definition</documentation><br /> <port name="Service" binding="tns:Service"><br />  <SOAP:address location="http://localhost:8070"/><br /> </port><br /></service><br /><br /></definitions><br />  <br />Flex MXML Content:<br /><br /><?xml version="1.0" encoding="utf-8"?><br /><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"><br />     <mx:WebService id="wsIDSP"<br />          wsdl="http://localhost:8888/IDSP.wsdl"<br />          endpointURI="http://localhost:8070"<br />          useProxy="false"><br />          <mx:operation name="RunScript" resultFormat="e4x"><br />               <mx:request><br />                   <runScriptParameters><br />                      <scriptLanguage>javascript</scriptLanguage><br />                      <!--Optional:--><br />                      <scriptFile>/Volumes/Macintosh HD/Applications/Adobe InDesign CS3 Server/Scripts/myScripts/businessCards.jsx</scriptFile><br />                      <scriptArgs><br />                     <scriptArg><br />                         <name>name</name><br />                         <value>{nameInput}</value><br />                    </scriptArg><br />                    <scriptArg><br />                         <name>company</name><br />                         <value>{companyInput}</value><br />                    </scriptArg><br />                    <scriptArg><br />                         <name>title</name><br />                         <value>{titleInput}</value><br />                    </scriptArg><br />                      </scriptArgs><br />                   </runScriptParameters><br />               </mx:request><br />               <br />          </mx:operation><br />     </mx:WebService><br />     <mx:Script><br />          <br />              [Bindable]<br />              public var nameInput:String="";<br />              [Bindable]<br />              public var companyInput:String="";<br />              [Bindable]<br />              public var titleInput:String="";<br />              <br />              private function makeCards(name:String, title:String, company:String):void<br />              {<br />                   nameInput = name;<br />                   companyInput = company;<br />                   titleInput = title;<br />                   <br />                   wsIDSP.RunScript.send();<br />              }<br />          <br />     </mx:Script><br />     <mx:Form width="410" height="277" x="46" y="34" horizontalScrollPolicy="off"><br />          <mx:FormHeading label="Business Card Information"/><br />          <mx:FormItem label="Name"><br />               <mx:TextInput id="textName" width="100%" /><br />          </mx:FormItem><br />          <mx:FormItem label="Title"><br />               <mx:TextInput id="textTitle" width="100%" /><br />          </mx:FormItem><br />          <mx:FormItem label="Company"><br />               <mx:TextInput id="textCompany" width="100%" /><br />          </mx:FormItem><br />          <mx:FormItem x="75"><br />               <mx:Button x="150" label="Print Cards" <br />                         click="makeCards(textName.text, textTitle.text, textCompany.text)"/><br />          </mx:FormItem><br />          <mx:Text x="47.5" y="194" text="{wsIDSP.RunScript.lastResult.errorNumber}" width="383" height="20"/><br />          <mx:Text x="47.5" y="224" text="{wsIDSP.RunScript.lastResult.errorString}" width="381" height="20"/><br />          <mx:Text x="47.5" y="254" text="{wsIDSP.RunScript.lastResult.scriptResult.data}" width="383" height="24"/><br />     </mx:Form><br /><br />     <br /></mx:Application>

    I am curious where you got the tutorial, and which version of InDesign Server you are using. Also, can you show the contents of the businesscards.jsx script?
    In the meantime, it seems like the connection from Flex to InDesign is working since your script is running and producing output. The next step is to check the arguments being passed to the script, and how the script is accessing and using the arguments.
    You can add this to your jsx script to test the values of the arguments:
    var myName = app.scriptArgs.IsDefined("name") ? app.scriptArgs.getValue("name") : "name undefined";
    app.consoleout("scriptArg name = " + myName);
    var myCompany = app.scriptArgs.IsDefined("company") ? app.scriptArgs.getValue("company") : "company undefined";
    app.consoleout("scriptArg company = " + myCompany);
    var myTitle = app.scriptArgs.IsDefined("title") ? app.scriptArgs.getValue("title") : "title undefined";
    app.consoleout("scriptArg title = " + myTitle);
    To see the values, watch the InDesign Server console window. If you are not getting the values you expect, check your mxml code to make sure the variable names are valid, etc. If you are getting the values you expect, examine your businesscards.jsx to make sure you are using the values as required to populate the InDesign document.
    Susan

  • SOAP API's for Sql Server Analysis Services 2005

    Can any one tell me the Latest XMLA SOAP API's necessary for communicating with Sql Server Analysis Services 2005????

    i found more option, to allow the program on firewall 
    Configuring firewall settings for SQL Server Integration Services (SSIS) on Windows 2008 R2
    http://databasebestpractices.com/configuring-firewall-settings-sql-server-integration-services-ssis-windows-2008-r2/
    Please Mark This As Answer if it helps to solve the issue
    Tzuri Ben Ezra | My Certifications:
    CompTIA A+ ,Microsoft MCP, MCTS, MCSA, MCITP
    |
    FaceBook: Tzuri FaceBook | vCard:
    Tzuri vCard | 
    Microsoft ID:
    Microsoft Transcript 
     |

  • InDesign Server (via SOAP) -- Returning Binary Data: Possible or Not?

    is it possible to return binary data to soap client?
    given: myFile = File('MyFancyJpeg.jpg');
    I want to return either a base64 encoded, or hex result back to the SOAP client. (filetype, above, is totally arbitrary, by the way)
    Is InDesign server capable of something like this?

    I think so. See ww-ids-soap.pdf in the SDK. You can return to the client any value you want; the value is typed in the SOAP response. An example from that pdf of a mixed-type array response:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope
        xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
        xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:IDSP="http://ns.adobe.com/InDesign/soap/">
        <SOAP-ENV:Body>
            <IDSP:RunScriptResponse>
                <errorNumber>0</errorNumber>
                <scriptResult>
                    <data xsi:type="IDSP:List">
                        <item><data xsi:type="xsd:string">1</data></item>
                        <item><data xsi:type="xsd:string">2</data></item>
                        <item><data xsi:type="xsd:long">10</data></item>
                        <item><data xsi:type="xsd:long">12</data></item>
                    </data>
                </scriptResult>
            </IDSP:RunScriptResponse>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Jeff

  • Is it possible to leverage InDesign Server templates in a custom web app?

    Hi there,
    I am building a custom web app and was hoping to leverage our existing InDesign Server templates within our web app. What I would like to do, is based on user input, show my template with the user's input in the browser. I have looked through the API guides for InDesign Server CS6, but I haven't been able to conclusively find anything that will allow me to use the APIs to call the server, send the data points the template requires, and then get an image back from the server.
    I believe this is possible, I am just not sure how to achieve it! Any ideas or articles that help push me in the right direction would be extremely helpful!
    Thank you!
    Marshall

    Yes it's completely possible. There are two parts to making something like this work:
    1. The scripts themselves. You can generally script InDesign Server and desktop InDesign exactly the way using ExtendScript. So that's the part of the process where your script receives variables and passes them into the template and replaces something you've identified as variable, whether text or an image or something else (perhaps a color theme, etc.). You should get your scripts running on desktop before playing around with server.
    2. The messaging between your web app and the server. Whatever language you are using (i.e. PHP, .Net, Java, Ruby…) there is a way to make a SOAP call to InDesign Server to tell it basically "run this script with these parameters". You should get the "hello world" script running from a SOAP call on the server before using your real variable-driven document.
    The documentation of these things is available here:
    http://www.adobe.com/devnet/indesign/sdk.html
    You need to download the InDesign Server SDK (don't worry if you're on CC and it says CS6, almost nothing changed) and the InDesign Scripting SDK. The Server SDK deals with part #2 above, the Scripting SDK with part #1.
    It really isn't that hard. I should warn you, though, that it is addictive and once you do your first one you will become all-powerful and want to do nothing else. :-)
    Good luck and don't hesitate to ask questions.
    Max
    http://blog.siliconpublishing.com

  • I need urgent help in business catalyst SOAP api for [Product_UpdateInsert] operation.

    Hi Everyone, I am new in Business Catalyst, but, my company is working with BC for a while. I have a task to import external data (such as catalogue, products, orders, shopping cart etc) to business catalyst native tables via SOAP api. I am able to use "Product_ListRetrieve" function that gave me products from BC. Now I want to insert and update product list, for which the api call is "Product_UpdateInsert". I am not being able to feed in even a single record. I need any code (jquery, php, javascript, java etc) as a sample, that works with SOAP api for this function. It is very urgent. Please help me. Thanks in advance. I have tried with the code below, but I am getting bugs (format not valid):
    try
         $soapfileurlUpdate="https://worldsecuresystems.com/catalystwebservice/catalystecommercewebservice.asmx?wsdl";
         $soap_clientUpdate = new SoapClient($soapfileurlUpdate);
         $array_of_products=array("Products",
      array("productId"=>"1128",
       "productCode"=>"1128",
               "productName"=>"Bostik 1128  Heat Transfer Sealer (thermo Putty) 460g Cartridge",
               "description"=>"Bostik 1128  Heat Transfer Sealer (thermo Putty) 460g Cartridge",
               "smallImage"=>"images/products/TEMUFF-7_New.jpg",
               "largeImage"=>"/images/products/TEMUFF-7.jpg",
               "cataloguesArray"=>array("DUCTS"), //array("string"=>"DUCTS"),
               "pricesSaleArray"=>array("US/9.95"),//array("string"=>"US/9.95"),
               "pricesRetailArray"=>array("US/9.95"),
               "pricesWholesaleArray"=>array("US/5.00"),
               "wholesaleTaxCodeArray"=>array("US/0.00"),
               "taxCodeArray"=>array("GB/VAT"),
               "groupProducts"=>array(""),
               "groupProductsDescriptions"=>array(""),
               "supplierEntityId"=>"1",
               "supplierCommission"=>"2",
               "weight"=>"20",
               "relatedProducts"=>array(""),
               "tags"=>"",
               "unitType"=>"",
               "minUnits"=>"1",
               "maxUnits"=>"2",
               "inStock"=>"10",
               "onOrder"=>"0",
               "reOrder"=>"0",
               "inventoryControl"=>"true",
               "canPreOrder"=>"0",
               "custom1"=>"",
               "custom2"=>"",
               "custom3"=>"",
               "custom4"=>"",
               "popletImages"=>"",
               "enabled"=>"true",
               "deleted"=>"false",
               "captureDetails"=>"true",
               "downloadLimitCount"=>"22",
               "limitDownloadsToIP"=>"0",
               "isOnSale"=>"true",
               "hideIfNoStock"=>"false",
               "productAttributes"=>"Size*|5|N:Small|,Medium|,Large|;Color*|5|N:Red|,Wh",
               "isGiftVoucher"=>"false",
               "enableDropShipping"=>"true",
               "productWeight"=>"20",
               "productWidth"=>"20",
               "productHeight"=>"29",
               "productDepth"=>"20",
               "excludeFromSearch"=>"0",
               "productTitle"=>"Bostik 1128  Heat Transfer Sealer (thermo Putty) 460g Cartridge",
               "cycletypeId"=>"1",
               "cycletypeCount"=>"1",
               "slug"=>"item-1",
               "hasVariations"=>"false",
               //"variations"=>array("ProductVariation"=>"true"),
               "roleResponsible"=>"",
               "metaDescription"=>""));
      echo "SOAP Data To Be Inserted:<br/>";
      var_dump($array_of_products);
      $vectUpdate = array("soap_version"   => SOAP_1_2,
                     "username"=>$soapusername,
                     "password" => $soappassword,
                     "siteId"=> $soapsiteid,
                     "productList"=>$array_of_products);
      $quoteUpdate = $soap_clientUpdate->Product_UpdateInsert($vectUpdate);
         $status = 1;
      echo "BC side is updated.";
      catch (SoapFault $sf)
         $errorlogText=date("Y-m-d h:i:s A"). "=> Error occurred while inserting data to business catalyst. \r\n";
      echo $errorlogText. " See log for errors.\r\n";
      echo $sf->getTrace();
      //fwrite($errorLogFile,$errorlogText. "Error Dump: ". $sf->getMessage());
      return;

    Hi BCMan, Thanks for replying. Yes, the error is from BC side. The format was invalid. I fixed the issue today. Actually, I was pushing data from my PHP server to BC host system using SOAP api. I am still getting format errors, but I am able to insert data into products table.
    One more question if you don't mind. Is it possible to use JQuery/Javascript to push data into BC tables in real time (while browsing products table) using customized pages? There are documents to solve this. However, I could not find examples of how I could fetch data from JSON file using JQuery and then populate products/catalog/order tables.
    I appreciate your help.
    Thank you.

  • CS4 InDesign Server hangs

    I've ran into a problem where the my CS4 InDesign Server hangs. 
    I'm adding pages dynamically using the JAVA API.  Basically I go through all the content, check to see if I've reached the ParagraphStyle that indicates the "end" of the document.  If not, I add a page, flow the content into a text frame on that page & check if I've reached the end.  If not I add another page.  And so on until I finally reach the end. But it ends up hanging while attempting to do this.  What's odd, it works the first 5-10 times, but it takes longer and longer each time it adds a page until around the 10th page or so, it completely stops.  I'm using the "duplicate(OptLocationOptionsEnum arg0, OptVariableType arg1)" method on the com.adobe.ids.layout.Page object.
    Any ideas?  I can provide sample code if it would help.
    -Josh

    Hi Chandi,
          If Microsoft fix is not working or it is too old to apply then go for manual process i.e.;
          In the Microsoft KB article follow this :-
         Services that use the local system account to log on to a Windows Server 2003-based computer start if the Allow service to interact with desktop
         option is turned on. To turn this option on, follow these steps:
    In the Services tool, click the service that you want to start, and then click Properties.
    Right-click the Log On tab, and then click to select the Allow service to interact with desktop check box.
    Click OK to exit the Properties dialog box.
       This will solve your problem.
       Thanks,
       Akansh Upadhyaya,
       System Engineer,
       (Windows + Unix.)

  • [IDS Win]How to flush Indesign server.

    Hi All,
    I am using Indesign server to create documents which contains text, images & tables. My job is to create & export documents to pdf. Document are sometimes contains 300 plus pages. And cs2 server process this jobs one after the other in queue ..may be 100 jobs in a queue. Here after certain amount of time a 'out of memory' error comes up and Indesign server gets crashed(its around after processing 30-40 jobs).
    I have taken care to delete all allocated meomary in my program through New- delete pair. Still after each job allocated memory to Indesign keeps increasing.
    Is there any way so that I can purge memory from Indesign after my job complition? I tried to use 'PurgeMemory' over IDocumentList but its not that effective.
    Any suggestions are most welcommed!
    Thanks,
    Rahul.

    Well, it's been two years since the last activity in this thread, and I am having this exact same problem with InDesign Server CS4.
    I have a .NET web application that calls the IDS through SOAP and simply tells it to run a JavaScript.  In simple terms, the script opens an InDesign file, imports some XML, makes some minor formatting changes, and exports the PDF to the filesystem.  The .NET webapp then receives the status message and redirects the user directly to the finished PDF which they can then view/save/etc.
    This all works perfectly, but while it's running, I see the memory usage of InDesignServer.exe spike by several MB, and then it settles back down to a still-higher-than-initial value. Eventually, the InDesignServer.exe is taking up several hundred MB and my server starts giving out-of-memory errors.
    I'm not sure what I'm doing wrong. Like the original poster asked, it appears as though I should be flushing something that I am not. I've researched this "ErrorList" that was referenced, and my memory "leak" seems to be bigger than this (although I could be wrong), but I can't find anything in the language reference on how to programmatically flush this after each document. I'm not even sure if this is the culprit.
    Can anybody help? Many many thanks in advance
    The contents of my JavaScript is as follows (and you'll see that I'm closing the document each time):
    // We encapsulate the meat of the code in a main() function and then call main() at
    // the bottom of the script in order to facilitate proper returns
    // see http://ericwillis.wordpress.com/2008/04/18/return-value-from-indesign-server-script-via-so ap/
    function main()
         // Our script requires a school code to be passed in as an argument
         // We begin by assuming that it hasn't been passed
         var message='Error: schoolCode parameter required';
         // if the argument HAS been passed...
         if(app.scriptArgs.isDefined('schoolCode'))
              // We change our return message and proceed with processing
               message='Success: No problems reported';
              // This is our work folder
              var projectPath='/E/mywebsite/';
              // this is our starting template
              var doc = app.open(File(projectPath + 'source/Template.indd'));
              // the template has been "tagged" with XML placeholders, so here we are
              // importing the data to replace them. The filename of the XML is
              // dependent on the school code that was passed as an argument
              doc.importXML(File(projectPath + 'work/' + app.scriptArgs.getValue('schoolCode') + '.xml'));
              // The next portion of the script scans the entire document for overset
              // text (text that flows outside of it's container). If any is found, it changes
              // the text colour to red so that the author knows that they overtyped
              //Create a color.
              try{
                   doc.colors.item("Red").name;
              catch (myError)
                   doc.colors.add({name:"Red", model:ColorModel.process, colorValue:[20, 100, 80, 10]});
              // loop through each "story"
              for(x=0;x<=doc.stories.length-1;x++)
                   // if the current story has overset text...
                   if(doc.stories.item(x).overflows)
                        // change the text colour to our previously created colour
                        doc.stories.item(x).fillColor = doc.colors.item("Red");
                        // Change the message too so that we know on the server side
                        // that there's a problem
                        message='Warning: Contains overset text';
                   // We couldn't find a way to use styles to place an outside border
                   // around a variable-width & length table that we're creating
                   // dynamically in the XML. To solve this, the following loop finds all
                  // of the tables in the document and places a border around their
                  // outside-most edges only
                   // Loop through each table in this story
                   for(y=0;y<=doc.stories.item(x).tables.length-1;y++)
                        // myTable will refer to each table
                        var myTable=doc.stories.item(x).tables.item(y);
                        // Header stroke
                        var myRow=myTable.rows.item(0);
                        myRow.topEdgeStrokeColor="Black";
                        myRow.topEdgeStrokeTint=100;
                        myRow.topEdgeStrokeType="Solid";
                        myRow.topEdgeStrokeWeight=0.5;
                        myRow.topEdgeStrokeOverprint=true;
                        // Do left border
                        var myCol=myTable.columns.item(0);
                        myCol.leftEdgeStrokeColor="Black";
                        myCol.leftEdgeStrokeTint=100;
                        myCol.leftEdgeStrokeType="Solid";
                        myCol.leftEdgeStrokeWeight=0.5;
                        myCol.leftEdgeStrokeOverprint=true;
                        // Do right border
                        var myCol=myTable.columns.item(myTable.columns.length-1);
                        myCol.rightEdgeStrokeColor="Black";
                        myCol.rightEdgeStrokeTint=100;
                        myCol.rightEdgeStrokeType="Solid";
                        myCol.rightEdgeStrokeWeight=0.5;
                        myCol.rightEdgeStrokeOverprint=true;
                        // Do bottom border
                        var myRow=myTable.rows.item(myTable.rows.length-1);
                        myRow.bottomEdgeStrokeColor="Black";
                        myRow.bottomEdgeStrokeTint=100;
                        myRow.bottomEdgeStrokeType="Solid";
                        myRow.bottomEdgeStrokeWeight=0.5;
                        myRow.bottomEdgeStrokeOverprint=true;
              // Set some PDF export prefs
              app.pdfExportPreferences.cropMarks=false;
              app.pdfExportPreferences.colorBars=false;
              app.pdfExportPreferences.bleedMarks=false;
              app.pdfExportPreferences.useSecurity=false;
              // Export the PDF to the filesystem
              // the filename is dependent on the school code that was passed
              // as an argument
              doc.exportFile(ExportFormat.PDF_TYPE, File(projectPath + 'work/' + app.scriptArgs.getValue('schoolCode') + '.pdf'));
              // Close the document
              doc.close(SaveOptions.no);
         // Return whatever message was produced by this function
         return message;
    // call our main function
    main();

  • InDesign server crashes every time when calling deleteEmptyPages in script

    We are evaluting InDesign Server CS6 on a Windows server environment. We have an idml file, sample xml file that is tagged to specific frames inside the idml file and a script file for execution on the server. This script opens the idml file using the app.open api, imports the xml file and export the ID file to a PDF. Because we have table content with variable row count, we are using the smart text reflow functionality. Setting the text preferences with smart text reflow appears to be working but we also want to delete the empty second page when the content is less than a page. So, we also tried using the deleteEmptyPages property document's textPreferences. When this is set to true and the script is executed on the ID server using the sampleclient, the server crashes with the following message. When I do the same thing in the InDesign UI using the preferences options, it works as expected.
    The script looks like below - is this the right way to do it?
    var myInddFile = app.scriptArgs.get("idfile"); //"X:/IDFiles/AutoFlow.indd";
    var myXmlFile = app.scriptArgs.get("xmlfile"); //"X:/IDFiles/deleteme.xml";
    var myOutputOptions = "[Smallest File Size]";
    var myPDFPreset = app.pdfExportPresets.itemByName(myOutputOptions);
    var myDoc = app.open (File(myInddFile), OpenOptions.OPEN_COPY);
    myDoc.xmlImportPreferences.ignoreWhitespace = true;
    myDoc.textPreferences.smartTextReflow = true;
    //myDoc.textPreferences.addPages = AddPageOptions.END_OF_STORY;
    //myDoc.textPreferences.limitToMasterTextFrames = true;
    myDoc.importXML (File(myXmlFile));
    //uncommenting this line causes the ID server to crash
    //myDoc.textPreferences.deleteEmptyPages = true;
    var myOutputFile = app.scriptArgs.get("outputfile");//File("X:/IDFiles/sampleX.pdf")
    myDoc.exportFile (ExportFormat.PDF_TYPE,myOutputFile, myPDFPreset)

    Thanks Harbs. We are looking at full automation and so removing the pages manually is not an option. But I did find a script at InTools http://in-tools.com/article/scripts-blog/script-of-the-day-jan-24-2010/ that helps with automating the removal of empty pages. This script appears to be a nice workaround for server side usage. I used it on my document with multiple column text frames and it is removing the empty page as expected. If there is a better way to do this, let me know. Thanks.

  • Is it possible to create a PDF/A1a compliant file with SOAP API ?

    I saw that I can create two kind of PDF/A1b (CMJN and RVB), but nothing about PDF/A1a.
    Unfortunately, I see the same limitation in the administration pages of the LiveCycle server.
    -              Here is my code (using SOAP api) :
          Document inDoc = new Document(new FileInputStream(wordFile));
          String adobePDFSettings = ?????;
          String securitySettings = "";
          String fileTypeSettings = "";
          // Convert the Word document to a PDF document
          CreatePDFResult result = pdfGenClient.createPDF2(inDoc,
                                                    "dummy.doc",
                                                    fileTypeSettings,
                                                    adobePDFSettings,
                                                    securitySettings,
                                                    null,
                                                    null);
    -              I tried before using the OutputClient, but I had this exception :
                    com.adobe.livecycle.output.exception.OutputException:
                                    com.adobe.idp.DocumentError: com.adobe.idp.DocumentError: 403:
                                                    Authentication with DSC invocation permissions required.
    Any help, any idea will be greatly appreciated.
    Best regards,

    Hi CeeCee725,
    There is no longer a way in the Acrobat/Reader interface to do this.  Several conflicting methods were available via Adobe Acrobat, Adobe Reader, and multiple web browsers.  Each could conflict with the other including the settings for Acrobat and Reader installed on the same computer.  So, Adobe decided that the best way to handle this operation was through the web browser plug-in interface. 
    Best,
    Sara

  • SOAP API integration problem with OIM 11g R1

    Hi,
    We're facing a problem when we are attempting to provision for a third party Web Service application in OIM 11g R1.
    During development and test running in an IDE environment, JDeveloper, the soap wsdl requests are triggered and a response is received successfully. However, when we shift the work and integrate it with OIM using design console, there seems to be an error indicating an invalid wsdl location. We have used the super class Exception, in try-catch block for handling of the exceptions. Please see the log message.
    Xl Home Dir :/oracle/Middleware/Oracle_IDM1/server
    Running CREATEUSERTASK
    Target Class = org.identityconnectors.Provisioning.QuickShareUserProvisioning
    URL : XXXXX
    User ID : XXXX
    Password : XXXX
    ERROR: Invalid wsdl location robi/XXXX_saved_wsdl.wsdl
    When we simply run the jar file from the command line, it gives us, java.lang.NoClassDefFoundError: javax/xml/rpc/Service
    [oracle@idmlab JavaTasks]$ java -jar archive1.jar
    URL : XXXXX
    User ID : XXXX
    Password : XXXX
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at org.identityconnectors.Provisioning.QuickShareUserProvisioning.createUser(QuickShareUserProvisioning.java:41)
    at org.identityconnectors.Provisioning.QuickShareUserProvisioning.main(QuickShareUserProvisioning.java:215)
    Caused by: java.lang.ClassNotFoundException: javax.xml.rpc.Service
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 14 more
    Any help or suggestion, appreciated!
    Thanks
    Tamim Khan

    Hi Kevin,
    Thanks a lot for the response. But, when i deployed the composite SAR in to the server from Jdeveloper, i checked the option to "Overwrite any existing composite with same revision ID". SO, i used the same revision ID (Say 1.0), will this also need to be disabled?
    Thanks,
    Srini

  • Sys.webforms.page request manager server error exception:An unknown error occured while processing the request on server. The status code returned from the server was:0

    sys.webforms.page request manager server error exception:An unknown error occured while processing the request on server. The status code returned from the server was:0 We got this response(In firebug console) when we try to click on link (after leave webpage for 3 minuts ideal) which is AJAX based. Please reply ASAP because its urgent.

    Hi SP,
    Please check if the following web config appSettins value settings from SSRS server could fix the issue (Note, back up your original web config file before any modification).
    http://stackoverflow.com/questions/10911610/ssrs-webpage-error-status-code-500
    http://srinivasbn.blogspot.in/2013/09/syswebformspagerequestmanagerservererro.html
    http://connect.microsoft.com/SQLServer/feedback/details/782155/ssrs-2012-failed-with-win32-error-0x03e3
    If you have more questions about the SSRS error logs related to this issue, you can post in the SSRS forum for a better assistance with more experts.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlreportingservices
    Thanks
    We are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • What's needed for a PDF processing module for InDesign Server?

    Hello,
    After digging through lots of documentation and whitepapers, I am still puzzled about what would be an efficient way to implement a software module that handles some specific processing tasks of PDF output (automatically generated in InDesign Server and targeted for various types of print configurations from small-run LFP up to very high volume commercial printing).
    We have a working standalone script that uses Acrobat's preflight and correction functions, and now we would like to port and integrate this into a server-based workflow. Apparently, there is no Acrobat Server product available. Distiller Server does exist, but seems to be limited to converting PostScript to PDF without the PDF-to-PDF processing features we need. Some of the functionality that is typically found in RIPs (e.g. converting colours to a preset output intent with highly configurable options [for pixel/vector elements, black and spot colour ink issues etc.] and flattening native transparency) could probably be implemented using the Adobe PDF Print Engine, but this seems a bit overkill and would probably require extensive programming from scratch. I suspect there should be a smarter way to use existing software – but which? I am not yet familiar with InDesign Server; does its SDK permit full access to the same parts/functions of the PDF library that Acrobat uses for its preflight and correction features?
    Any help is welcome.
    Eric

    Gordon,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

Maybe you are looking for

  • 10g Report not running from Forms if called thru paramform on other domain

    Hi... I'm using Dev10g Rel.2....If I call a report with paramform=no and pass it a value from forms then report runs well. but if I call report thru parameter form and pass value from parameter form the report doesn't run with error: The webpage cann

  • Exporting Keynote to PPS

    After exporting a slideshow with music I made with Keynote as pps, I have burned a DVD with it. However, in all attempts to play it back in MS PowerPoint, it will not play. It does play on my iMac through Keynote. What am I missing to cause it to be

  • JdbcOdbc crashes

    I'm developing an data extraction software with Jdk 1.6.03. I use various odbc driver. Some drivers are very primitive. With older drivers odbc (french database engin drivers, like Hyper File or OpenCriteria), JVM crashes after an hour or less. The p

  • Newbie at this and need help

    Hello, I am a complete newbie at this Itunes stuff and I have some very basic questions. If somebody would be willing to help me out I would appreciate it. So I have loaded Itunes on my PC. I then put in a cd that my friend burned a ton of songs on f

  • Conflicting PPPOE Status Info [this is a long message]

    Odd set of conflicts among 3 sources at the very same instant: 1. pull-down Finder menu for PPPOE reports "PPPOE: Idle" on the first line; 2. Internet Connect panel with Airport selected shows "Connected via PPPOE for 00:38:51" at the bottom left; an