Script in template using SOAP: Works in designer preview, not in rendering from LC Output

I did a script in a livecycle ES2 Template in the event layout::ready. It call a web service using the SOAP method to get a base64 image from another server.
The code is (the service called is fake, but it is not the problem):
var sOptions = "";
var imageType="JPEG";
var input= {imageType:sItype,
        options:sOptions};
var svcResponse;
try
     var oListURL = "http://someserver.somedomain.com:8080/service?wsdl";
     SOAP.wireDump = true;
     var service = SOAP.connect(oListURL);
     //call the service
     svcResponse = service.getImageBinary(input);
     //transfer image in grahic object
     this.GraphImage.rawValue=svcResponse;   
}catch(e){
     svcResponse = e.message ;
     root.PaginaUNO.TextField1.rawValue = e.message;
This script WORKS PERFECTLY using the Livecycle Designer Preview. The image is got and correctly showed.
When I want to render the PDF via Livecycle Server (calling the output service), I got an error:
"SOAP is undefined."
The server on which runs Livecycle has Acrobat 9 pro installed; is the same server on which I run Workbench and Designer. It seems that, trying to execute the script it misses something, maybe a class or something where is declared the SOAP object.
Can someone give me a hint, please?

Hi,
I think the LC Output does not use Acrobat to render XDP's and the LC Output does not have a SOAP object and this is why I think you are getting the error.
I can't think how to work around this, other that to try and make the code only run once it is opened in the Acrobat host and not on the server while it is being rendered.
Regards
Malcolm

Similar Messages

  • Bluetooth is no longer working on iPhone 4s.  It used to work very well. Not any more. Have tried reset network settings and all settings, no joy.  Never had bluetooth problems before.  Have tried connecting to other peripherics nothing works. Can you hel

    Bluetooth is no longer working on iPhone 4s.  It used to work very well. Not any more. Have tried reset network settings and all settings, no joy.  Never had bluetooth problems before.  Have tried connecting to other peripherics nothing works. Can you help?  Thank you.

    Bluetooth is no longer working on iPhone 4s.  It used to work very well. Not any more. Have tried reset network settings and all settings, no joy.  Never had bluetooth problems before.  Have tried connecting to other peripherics nothing works. Can you help?  Thank you.

  • I am trying to import pictures to IPAD 2 via Ipad Connector. Use to work now it does not. Any clues?

    I am trying to import pictures to IPAD 2 via Ipad2 Camera  Connector (Flash). Use to work now it does not. Any clues? I am a neophyte to Apple products...

    If you are using a flash card, as opposed to an SD card, then I assume that you are using a third-party card reader with the kit ? If so what error, if any, are you getting e.g. a 'requires too much power' error ?
    Also how are the photos getting onto the card ? If you are adding them yoursefly then you need to create a DCIM directory off the root of the card, with the photos underneath it, and the photo filenames need to be exactly 8 characters long (no spaces) plus the file extension i.e. in a similar format as if a camera had created/written them

  • TS2972 I cant get my home sharing to work on my mac book, apple tv or iphone. Just wondering if someone could help. It used to work now it does not. Thanks

    I cant get my home sharing to work on my mac book, apple tv or iphone. Just wondering if someone could help. It used to work now it does not. Thanks

    The helpfulness of answers is limited by the details provided.  Just saying it does not work, or I got an error does not provide much to go on.  How is it not working?  What happens or does not happen?  Is an error returned?  If so what error.  Are you sure you are logging in with your home sharing ID?  It is not the same as your Apple ID or iCloud ID.

  • Wifi works at home but not when away from home

    My Wifi works at home but not when away from home, what is wrong?  I thought with a phone plan I didn't need to have a wifi connection.

    You either need WiFi or Cellular (or both). If you have neither, you can't connect to the internet.
    Most people use WiFi at home and Cellular while away from home, or connect to public WiFi networks where there are some.

  • Use to work, now it's not, and I'm extremely frustrated???

    Both autofill and drag-and-drop use to work. Now they don't. I've downloaded upgrades, charged and restored iPod, toggled switches, made sure it's connected properly, etc. etc. and NOTHING. There is no music currently on my iPod. Why?

    At this point it's clear that it's been damaged and will need to be take or sent to Apple for replacement.
    Regards.

  • .SWF that used to work on Captivate 4 not working on 5!

    Hi,
    I have two .sfw files that used to work fine on Captivate 4 but won't work on Captivate 5.
    One is a pause button, and the other is a video.
    I only have the .swf files for both.
    Please help!
    Andressa

    Captivate 5 does handle certain SWF files differently to Captivate 4.  These SWF files are usually ones that use nested symbols rather than having all animation on the main timeline.  The only way to fix the issue (that I know of) is to have access to the original source files used to create the SWFs and make changes there.  Sorry.

  • MDX queries that used to work on SSAS 2008 not working on 2012

    Hello,
    We are still using the old PerformancePoint planning server which is writing MDX queries against a SSAS 2012 at this time.   What used to work against SSAS 2008 is now having issues.   I captured a profile and the part of the query which
    generates the error is this error:  The '' calculated member cannot be created because a calculated member with the same name already exists.    What has changed in SSAS 2012 where this would not work anymore?;  is there anyway to
    make the 2012 environment work with this code again?.   The code generation is out of my control so I need to find a way to enable backwards compatibility with the way the tool generates the MDX statements.
    WITH
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
      MEMBER [Account].[Staffing_V3].[] AS ""
    Thanks,
    Matt

    Hi Matt,
    According to your description, the MDX query which has the duplicate calculated member name can run success with out any problems in SSAS 2008, however the same query cannot work in SSAS2012 with the error below, right?
    The '' calculated member cannot be created because a calculated member with the same name already exists.
    I have tested it on my local environment, and the result turn out that this is the default change by Microsoft from SSAS 2008 R2 version. And I am afraid there is no any workarounds run this similar query in SSAS 2012. So in your scenario, you
    need to remove the duplicate members in the query.
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Works in RSA3 but not when pulling from BI

    Hi,
      I created a generic dataSource(Function Module) for Bill Of Material. When testing in RSA3 it is working fine. But when pulling data from BI with particular material in the Data Selection, it is saying "No data available". If I am pulling the same with no data selection then it is giving an error message "Job terminated in source system --> Request set to red".
    When checked in SM37 I see the following error messages.
    No active nametab exists for /SAPAPO/MATKEY             DA 300
    Job cancelled after system exception ERROR_MESSAGE
    Can any body help me on this
    Thanks for your help
    Subra

    Every thing is fine in all these transactions SM58, BD87, & WE05. There is no problem with the connections at all. I replicated many times and the error is always the same.
    The error message below is the reason.
    No active nametab exists for /SAPAPO/MATKEY
    This messsage is not coming when testing in RSA3. Only when pulling the data from BI, this error is happening.
    We are not using SAPAPO but still this message is coming up.
    thanks
    Subra

  • UIImpersonator tests work in FlashBuilder, but not when run from Ant

    I'm in the process of converting a Flex 3 project to use FlexUnit4 tests.
    Everything compiles in Flashbuilder 4.5 and runs nicely. I've converted all the tests
    to use flexunit 4, which highlighted a few issues, but nothing too major, and all the
    tests now pass when run in Flashbuilder.
    So... now, I'm trying to convert the CI build to use the 4.5 SDK and flexunit4. So far,
    so good. Everything runs and I get a nicely formatted JUnit report. Unfortunately, though,
    any test that uses the UIImpersonator fails with an async method timeout, suggesting that
    the CreationComplete event hasn't fired.
    Here's a typical example of one of my UI test cases:
              [Test(async, ui)]
              public function testAvailableProductsSetupAdminForSell() : void {
                   var view:OrderBasketView = new OrderBasketView();
                   var user:CfxUser = new CfxUser();
                   user.admin = true;
                   ModelLocator.instance.userDetails = user;
                   view.buyOrSell = OrderType.SELL;
                   helper.createComponentAndAddListener(view, this, availableProductSetupAdminForSellCreationComplete);
              private function availableProductSetupAdminForSellCreationComplete(event:Event, view:OrderBasketView) : void {
                   Assert.assertTrue(view.availableProductTypes.contains(ProductType.PRODUCT_1));
                   Assert.assertTrue(view.availableProductTypes.contains(ProductType.PRODUCT_2));
                   Assert.assertTrue(view.availableProductTypes.contains(ProductType.PRODUCT_3));
    and helper.createComponentAndAddListener looks like this:
            public function createComponentAndAddListener(view:UIComponent, testCase:Object, creationComplete:Function) : void {
                   _view = view;
                   _view.addEventListener(FlexEvent.CREATION_COMPLETE, Async.asyncHandler(testCase, creationComplete, 4000, _view));
                   UIImpersonator.addChild(_view);
    If I use FlexGlobals.topLevelApplication.parent.addChild(_view) in place of UIImpersonator.addChild(_view), all the tests pass.
    I was wondering if it's a function of the fact that my helper class has no metadata that indicates it's a ui test, but that wouldn't explain why it works in FlashBuilder and not when run with ant.
    I also wondered if it was a function of running with headless server set to true, but when I changed it to false the same thing happened.
    My environment is:
    ubuntu 11.04
    ant 1.7.1
    Sun jdk 1.6.0_26
    Flex SDK 4.5.1.21328
    FlexUnit 4.1.0-8-4.1.0.16076
    I'm using the auto-generated TestRunner.mxml
    Any thoughts, anyone? Now that I can get it to work by adding the UI components to the topLevelApplication, at least I can make progress, but I'd like to get to the bottom of the problem, because that shouldn't be necessary.
    Thanks in advance,
    -Chrisl

    Changing to the topLevelApplication did not work. What's funny is that it then failed on a completely unrelated test by hanging and never returning... I'm thinking there must be something else that is going on here, but it's not clear what... :-/ Here is an example of my setup/teardown and a test that work great in the UI but not in CI...
    [Before(async, ui)]
    public function setUp():void
        _fromToList = new FromToList();
        _fromToList.setStyle('skinClass', FromToListSkin);
        Async.proceedOnEvent(this, _fromToList, FlexEvent.CREATION_COMPLETE, 1000);
        FlexGlobals.topLevelApplication.parent.addChild(_fromToList);
        // UIImpersonator.addChild(_fromToList);
    [After(ui)]
    public function tearDown():void
        FlexGlobals.topLevelApplication.parent.removeChild(_fromToList);
        // UIImpersonator.removeChild(_fromToList);
        _fromToList = null;
    [Test(async)]
    public function should_remove_selected_item_in_to_list_to_from_list():void
        _fromToList.fromArrayList = _dpArray;
        _fromToList.toArrayList = _toDpArray;
        var sequence:SequenceRunner = new SequenceRunner(this);
        sequence.addStep(new SequenceSetter(_fromToList.toList, { selectedItem: _toDpArray[1]}));
        sequence.addStep(new SequenceWaiter(_fromToList.toList, FlexEvent.VALUE_COMMIT, 100));
        sequence.addStep(new SequenceCaller(_fromToList, _fromToList.remove));
        sequence.addStep(new SequenceWaiter(_fromToList, FromToListChangeEvent.FROM_TO_LIST_CHANGE_EVENT, 100));
        sequence.addAssertHandler(handleListHasChangedThenRemoveEvent, {});
        sequence.run();
    private function handleListHasChangedThenRemoveEvent(event:FromToListChangeEvent, passThruData:Object):void
        assertThat(_fromToList.toArrayList.length, equalTo(_toDpArray.length - 1));
        assertThat(_fromToList.fromArrayList.length, equalTo(_dpArray.length - _toDpArray.length + 1));
        assertTrue(_fromToList.fromArrayList.contains(_toDpArray[1]));
    So you can see that I'm using Sequences to manage waiting for stuff to get updated in the background, and basically testing when I select an item in a list and act on it that it updates the model like I expect. Again, works GREAT in the UI Runner.
    I'm open to suggestions...

  • Javascript works in Designer preview mode, but not when invoked via process

    I have a fragment consisting of a subform and a text object. The subform has the following Javascript for its initialize event:
    var cars = $data.input.cars.car.all;
    var showMe = false;
    for (var i = 0; i < cars.length; i++) {
    if(cars.item(i).color && cars.item(i).color.value == 'RED')
    showMe = true;
    break;
    if(!showMe) {
    this.presence = 'hidden';
    The code is supposed to loop through all my input XML data's cars, see if each car has a color element, and if so, see if the color is RED. If any of the cars have a color of RED, the fragment should be visible. Otherwise, it should be hidden.
    The Javascript works fine when I preview the fragment in Designer using a sample XML input file with no color element (i.e. the text in the fragment is hidden).
    The Javascript works fine in my main document (which has the fragment included in it) when in preview mode in Designer.
    The Javascript does not work when I invoke my process in LiveCycle server. I pass in data that has 1 car without a color element, and for some reason my fragment is visible.
    Is there something wrong with my Javascript? Is this the wrong way to check to see if an XML element is present? Is something else wrong?
    Any help would be appreciated!
    Thanks,
    Andy

    I guess a more appropriate question might be:<br /><br />How can I tell if my XML input data does or does not contain an element?  Let's say I have<br /><br /><input><br />  <cars><br />   <car><br />     <make>VW</make><br />   </car><br />  </cars><br /></input><br /><br />How can I use Javascript to safely determine if the car has a <color> element?

  • TS3367 facetime used to work but now does not work on any of my devices

    I have been in regular contact until about 4 days ago using facetime on my iphone 5 imac 10.7.5. ipad 2 now none of these devices work from incoming calls from Philipinnes. Take note the caller had latest macbook pro 13 inch  and is able to call Guam on fatetime with success. What is happening why is incoming calls alway failing. This has been 4 days running and is not good enough. Okay I havent got the latest updates but why in the late few days whould this effect anything. I mean 3 devices and none of them work. This is most frustrating and annoying. I have intead used skype which does work but at night time the camera is not as clear. Tanke note also earlier in the year I received calls from Vietnam and although I did have dropouts was always able to connect only these last four days have had no success. Also I have not been able to call out. The wireless has full bar and am near the modem that is not an issue. Unless there has been a recent change why is htis not working all of a sudden.

    THere seems to be a FaceTime issue and some users who have been in contact with Apple support claim that Apple is working on this.
    I have read many posts on the issue and have seen that there are many reporting that when they have updated their various devices to the latest software, the issue has been resolved.
    You can wait for Apple to resolve the issue OR you can update everything to the latest software and see if this solves your issues.

  • Amazon "look inside" feature has stopped working for me on Firefox (used to work in the past; not sure when it stopped). The feature works fine on Internet Explorer 8.0 when browing the exact same books on Amazon. I'm running Win 7 64bit. Thanks.

    After pressing "look inside", the loading message continues indefinitely. Sometimes, I get the message "server timeout".
    Internet Explorer 8.0 loads the "look inside" pages instantly for the exact same Amazon books.
    I have been running Win 7 64 bit for about 9 months. I believe the Amazon feature worked initially. Was running XP and Firefox prior to Win 7 and never had this problem. Used the "look inside" feature many times.

    I believe I found the issue with this.
    The IP Address that this server was sending out emails from, was at one point, blacklisted. So I changed the server to use our email gateway IP instead, and SMS Messages are being sent through now.
    -Matt

  • Trying to use webutil  - Works in development, will not work on app server.

    I am having a similar problem. I have followed all the instructions from above.
    I run my code in the developer and it runs fine. If I run my code from the application server I get locked up.
    Here is the output from my java console.
    Oracle JInitiator: Version 1.3.1.28
    Using JRE version 1.3.1.28-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\BrianG.PSSI
    Proxy Configuration: no proxy
    JAR cache enabled
    Location: C:\Documents and Settings\BrianG.PSSI\Oracle Jar Cache28
    Maximum size: 1,024 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://smprdap2.pssi.local/forms/java/frmall_jinit.jar from JAR cache
    Loading http://smprdap2.pssi.local/forms/java/frmwebutil.jar from JAR cache
    RegisterWebUtil - Loading WebUtil Version 1.0.6
    Loading http://smprdap2.pssi.local/forms/java/esteelman.jar from JAR cache
    Loading http://smprdap2.pssi.local/forms/java/sticons.jar from JAR cache
    Loading http://smprdap2.pssi.local/forms/java/jacob.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.3
    Exception occurred during event dispatching:
    java.lang.NoSuchMethodError
         at oracle.forms.webutil.common.VBeanCommon.init(VBeanCommon.java:281)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    This is the configuration I an trying to use is:
    [SMT1]
    form=st_menu.fmx
    imageBase=CodeBase
    width=1020
    height=740
    separateFrame=true
    splashScreen=/forms/steelman/images/logo.gif
    background=no
    lookAndFeel=Oracle
    colorScheme=purple
    logo=/forms/steelman/images/small_logo.gif
    formsMessageListener=
    recordFileName=
    pjcRegisterApplet=oracle.forms.demos.util.RegisterCertificate
    pjcArchive=esteelman.jar
    baseHTMLjinitiator=signedjini.htm
    baseHTMLJinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    baseHTML=webutilbase.htm.
    WebUtilArchive= esteelman.jar,sticons.jar, frmall_jinit.jar, frmwebutil.jar,jacob.jar
    archive_jini=frmall_jinit.jar,esteelman.jar,sticons.jar,frmwebutil.jar,jacob.jar,
    em_mode=1
    serverApp=/steelman/conf/steelman
    envFile=C:\steelman\conf\smt1.env
    If i do not use baseHTMLjinitiator=signedjini.htm
    our application will not launch at all.

    The first problem I see is that you are using an old version of WebUtil, which is not supported for use with Forms 10.1.2.3 and is probably the cause of the problem.
    RegisterWebUtil - Loading WebUtil Version 1.0.6
    The correct versions of frmwebutil.jar and webutil.pll are applied to Developer Suite installations and can be copied to Application Server. If you do not have an iDS installation, you can install the latest Forms Bundle patch which includes the correct WebUtil files. Refer to Patch ID 9593176 and Note 1188127.1. Be sure to review the ReadMe included with the patch.
    The second problem is that you are using Jinitiator. Jinitiator has been obsolete for a long time. However, if you have some reason why you must use it, I would recommend that you at least get the last version released (1.3.1.30). This can be downloaded from within MyOracleSupport (account required) using Patch ID 7410076. If you do not have access to MyOracleSupport and you are using Forms 10.1.2.3, then you can use JRE6 (1.6.0_37). Do not attempt to use JRE7
    http://www.oracle.com/technetwork/java/javase/downloads/jre6u37-downloads-1859589.html
    You would need to install the 32bit version: jre-6u37-windows-i586.exe
    References:
    <li>Note: 566628.1
    <li>Note: 561273.1

  • Load xml works on designer but not works in adobe acrobat

    Hi
    I have load a xml file on the file -> properties of the form.
    When I preview the pdf all works ok, but when I have saved the document and I have opened the pdf file with adobe acrobat. Then data hasn't loaded.
    Somebody know what happen?
    Thanks
    Ruben

    Unfortunately, Adobe no longer supports Acrobat 7.  Not only that, but I don't believe it was ever supported in a Citrix environment. 
    You will need to upgrade to at least Acrobat 8 for general support (and official Citrix compatibility).

Maybe you are looking for

  • XML Publisher Report:how to disappear the column if no data found

    Hi, I have a XMl publisher report requirement , the format is tabular lets say with the structure of 4 columns and 10 rows.requirement is to if suppose there is no data for row number 6 the row itself should not appear over the report and the immedia

  • Adobe Muse not Installing from Cloud using Adobe Application manager

    I am trying to install Adobe Muse from Cloud and receive this message : Error: Third Party payload installer install adobe muse.exe failed with exit code :7 Everything else from Cloud has installed correctly. I am probably doing something wrong as I

  • Is there way to report a bug to Apple regarding iphone software

    My Iphone 3GS used to work perfectly with my mercedes car kit after the fixes done in 4.1.1 but now when I use it after upgrading(downgrading) to 4.3 it no longer allows me to close a call from the controls in my car. I have seen that other people ha

  • All site definitions gone in DW CS4

    I'm using CS4 on a Mac running OS10.5.6. I accidentally removed one site, went into Time Machine and recovered it, then next time I started up CS4 ***all*** my sites are gone -- some 30 sites. I still have CS3 running (I have to support others here a

  • IMac shuts down on it's own

    Hey folks, I've had my iMac for just over a year now and it's been shutting down on it's own quite frequently. When the weather is warmer, it shuts down a few times a day. Recently, I moved the iMac to a cooler room in the house and it shuts down may