Access Web Service result with Script only multi-line

Hi all

I know how to run a web service with the code data connection, but I have no idea how to do to access the result he return without linking it to a dummy field, would like to know is - it possible with LC Designer?

Concerning

Bill

Hi Bill,

You may be able to use the Acrobat SOAP to access the web service.  By default it will return the result in a JavaScript object, so I find it very easy to deal with.  There are many examples in the Acrobat documentation, such as;

http://livedocs.Adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/HTML/w whelp.htm? context = Acrobat9_HTMLHelp & file = JavaScript_SectionPage.70.1.html

Good luck

Bruce

Tags: Adobe LiveCycle

Similar Questions

  • Access Web Service via POST - missing parameter

    I'm trying to access web services using the Http Post method, but I'm System.InvalidOperationExeption: missing parameter: ID

    error.

    I can access the Web service using HTTP GET, which shows that there is nothing wrong with the Web Service itself successfully.

    Here is the code I am trying

    String retVal = "";      try       {
    
              String data = "id='25'"; // parameter of the method           URLEncodedPostData encodedData = new URLEncodedPostData(null,false);          encodedData.append("content", data);
    
              byte[] postData = encodedData.getBytes();
    
              HttpConnection connection = (HttpConnection)Connector.open("http://localhost/Service1.asmx/TestService1");            connection.setRequestMethod("POST");          connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded");           connection.setRequestProperty("Content-Length", Integer.toString(postData.length));
    
              OutputStream requestOutput = connection.openOutputStream();           requestOutput.write(postData);            requestOutput.close();
    
              int responseCode = connection.getResponseCode();
    
              String contentType = connection.getHeaderField("Connect-type");           ByteArrayOutputStream baos = new ByteArrayOutputStream();                     InputStream responseData = connection.openInputStream();          byte[] buffer = new byte[1000];           int bytesRead = responseData.read(buffer);                     while(bytesRead >0)            {             baos.write(buffer,0,bytesRead);               bytesRead = responseData.read(buffer);            }         baos.close();         connection.close();           return baos.toString();
    
          }     catch (IOException e)         {         return "ERROR: " + e.getMessage();        }
    

    The line in the "BOLD" throws an exception. HTTP response code I get from server is 500

    Any help would be much appreciated.

    Nitin

    Now, I found the solution.

    The problem was the URLEncodedPostData. If I use just string.getbyte (), it works.

  • How to fill a datagrid with a web service result which is an array?

    I know how to fill a DataGrid to a CF of the web service that returns a query result. But what happens if I want to my CF component to run a query, then massage the data and back-is not a query - but a picture from the web service.

    Seems my two dimension table because ColdFusion has no column name, I need to create on the CF side name-value pairs or the side Flex. BTW, I prefer to use mx:webservice and not remoteObject.

    Any ideas on the best way to fill a datagrid from an array?

    Thank you.

    (Sorry for the previous double post).

    A colleague found the answer for me. I hope this saves someone else from 5 days of anquish!

    When a ColdFusion component returns an array of structures (not the result of a query), redesign the table as an arrayCollection collection throws an error.

    IT DOES NOT WORK:
    acSpeeds = new ArrayCollection (wsSpeeds.oneNode.lastResult);

    THIS WORKS!
    acSpeeds = wsSpeeds.oneNode.lastResult;

    It seems that a table generated by ColdFusion structures is already a collection arrayCollection 'official '!

    Hope this helps someone.

  • How to access Web Services?

    Are there APIs to access existing exposed web services?

    I services published with their WSDL files and I need to access with SOAP over HTTP.

    How do you take in blackberry? Any API or do use you some kind of libraries third thrid?

    JSR 172 is supported.

    Download the Sun web services tool to generate stubs from the WSDL.

    You searched the Forum? There is a lot of discussion on this topic.

  • Unable to access Web services interactive statement

    I have a project in Flash Builder to work where I generate a file of nav that I use to generate an Interactive instruction using a process in Workbench.

    The Interactive statement works very well with all the Flash content and the merged from xml data.

    When I stir using a Web Service in code of Flash Builder project to fill a data grid and regenerate the file nav to generate interactive instruction, interactive instruction gives the following opening security error:

    Security error to access the url

    Destination: DefaultHTTP

    It seems that this problem is bound to go through the policy area or something like that, BUT I don't get this error when:

    1. I ran the Flash Builder directly from Flash Builder project that turns on IE and my flash content works perfectly fine in the HTML wrapper, including the web service call that works very well. It works very well as a bin-release folder of my project in Flash Builder and the bin-debug.

    2. I created an AIR application from scratch and consumed the webservice as well as used in the previous Flash Builder project used to generate the file nav for Interactive instruction. The AIR application also works perfectly well to invoke the web service and doesn't give any errors.

    Question: Why my Interactive statement impossible to access the web service and gives the error as mentioned above when the same web service is accessed and used successfully by the same flash content in a html wrapper and an AIR application. How to make my flash content embedded in the PDF container to access and use the web service?

    Hi Muhammad,

    Acrobat has crossdomain different restrictions.  Try a crossdomain file that looks to test the connection:

    Then there are a few good articles on web service calls:

    http://forums.Adobe.com/message/3784114#3784114

    This http://TV.adobe.com/watch/Flex-in-a-Week-Day-2/Retrieving-and-Handling-Data-using-webservi.

    http://blogs.4Point.com/Brad.White/2008/12/4-ways-to-invoke-a-WebService-in-Flex-with-MXML - and - actionscript.html

    class ebservice http://blog.flexexamples.com/2008/04/14/Calling-a-simple-Web-service-from-Flex-using-the-w.

    Kind regards

    Oana

  • How to use generated code of & quot; Import Web Services & quot; with Cairngorm framework

    I recently downloaded Flex Builder 3 beta 2 and try the wizard that allows you to import web services. The code that is automatically generated makes it so simple to consume web services using the types of objects defined in the WSDL file. Is no longer the developer don't need decode the XML load! The only problem I have is how you integrate the code automatically generated with the Cairngorm framework? This seems to be a huge issue for those who would exploit Cairngorm and code the proxy generated automatically in the same project (like me).

    Here are the problems I see so far.

    (1) how to configure the service generated class to work with the Cairngorm service locator? The service constructor only accepts a 'destination displays LCD chain' which means that you must use life cycle data services. Unfortunately, the project that I am in the process of renovation currently uses a Web service and does not use data services. All I really need to do is change the URL of the endpoint (that is, from the local level to a development server). This issue is noted in the bug https://bugs.adobe.com/jira/browse/FB-8456. I think there is a way to put the endpointURI in the Services.mxml file.
    (2) even if I come with a hack autour #1, I do not get a reminder for my same IResponder if I save it immediately after the method call. I can record and function of earphone within my business delegate and receive the reminder, but my command object that implements IResponder, did not call back even if it is registered. From what I've read in the ASDocs should be, but this isn't for me!

    These are the questions that I have observed in 3 hours to play with this. I hope this makes sense. I would like to integrate automatically generated in Cairngorm web service proxies, but I don't see a right lane to the front without redesign of Cairngorm. Has anyone else encountered this problem? If so, do you have any ideas on how to proceed? Any help is appreciated.

    Hi guys,.

    Now we focus on the generated code the right way and try to make it work for as many cases as possible. As soon as we receive some time we will try to see what is the best way to use Cairngrom.

    In the meantime, if you find a way or a great idea do not hesitate to post here.

    Thank you
    Cristian

  • Web Service - Call with URL and SOAP in return?

    Hello

    Is it possible to call a WebService for Coldfusion with a URL like http://site/component.CFC?method=doSomething & parm = 1 and send the response returned as SOAP? Seems that I get a response from wddx when I do it this way. I know that I can create a web service object and call from Coldfusion, which is really nice because we can use the SOAP response as a query object. Is it possible to do this "invocation" from a http call?

    Thank you!

    I used this approach for interacting with SWC to an Ajax call on the client, return JSON or XML of the CFC, but don't think that this approach would be ideal to return a SOAP response.

    Technically, you can use this method to return a SOAP response, however, this means that your method of CFCS should generate and return the XML SOAP itself. CF automatically will do that for you as it does when you call a CFC as a Web Service.

    You can call a web service to CFHTTP, but I think it's a lot more work than using CFINVOKE. There is a post of nice blog on this approach:

    http://www.jamesnetherton.com/blog/2007/01/14/invoking-a-WebService-using-cfhttp/

  • Web Services - getBPList() - how NOT to return line items?

    Hello

    For the web service call getBPList results including all elements of line with all the fields.  We have included a list of fields and who works for the top section, but all the line items with all line item fields are also returned.

    Here are the web service call:

    " < soapenv:encodingStyle gen: getBPList = ' http://schemas.xmlsoap.org/SOAP/encoding/ ">

    < short name > * < / shortname >

    < authcode > * < / authcode >

    < projectNumber > < / projectNumber >

    Sellers of < BPName > < / BPName >

    < NomsChamps >

    record_no < fieldname > < / fieldname >

    title < fieldname > < / fieldname >

    uveVendorIDTB16 < fieldname > < / fieldname >

    uveVendorNameTB50 < fieldname > < / fieldname >

    uuu_contact_company < fieldname > < / fieldname >

    < fieldname > status < / fieldname >

    < / fieldnames >

    < filterCondition > status = Active < / filterCondition >

    < filtervalues / >

    < / gen: getBPList >

    Thank you

    Rudy

    Usually the easiest way to get data out of unifier is to create a UDR who has the specific data that you want and then you can use the web service getUDRData. Having a UDR allows to choose the fields specific (or just the top shape in your case), and to put in place filters you can (registration State,...).

  • Difficulty 'Not connected' Error Messages When you try to access Web Services

    If you are running on an error message on your printer stating that it is "not connected" when you try to access ePrint or your applications, but you know that it is connected to the internet, it probably just means that the printer does not connect to the server properly.

    Here's the first set of markets, I will try, as they seem to solve this problem deliver half the time.

    • The first thing I'd like to try in this situation is a reboot of the system.
    • First, unplug the power cord at the back of your router.
    • Then unplug the power either to the back of the printer or the wall without it first turn.
    • Wait about 30 seconds and reconnect the power cord to your router.
    • Wait about another 30 seconds and reconnect the printer. It should start back up automatically, but if it is not moving forward and press the power button.
    • Once everything is back running, try to access ePrint or your applications.

    If these steps do not work for you, the next thing would be to establish a static IP & DNS for the printer. Before doing this, you want to print a Network Setup page. It varies from a model, but usually found under settings wireless or in reports in the Setup menu. After that you have this page, follow these steps.

    Before we begin, we need a network with your current connection settings configuration page. To do this, press the button on the front of your printer wireless and press 'Print Info' or 'print the State. " This example displays on a page of configuration of the network, which provides information on what we have to finish the next few steps.

    • After that you have, we will need to access the built-in Web server (EWS) printers. You can do this by entering the IP address of printers (from the Network Setup page) browser press and the address bar type.
    • Once there, press the 'Network' tab at the top of the page. From there, you'll want to click on the button "IPv4", on the f-side of the page. It will be there for wireless and wired, so make sure you click the one for you, but you are connected. If you do not see "IPv4", you should see 'Networking', press and press "Network Address (IP).
    • Then, you click the small round button next to "Manual"IP address", and then fill in the IP address, subnet mask and default gateway using the information available on the network configuration page.
    • For the primary or the preferred DNS server, you will want to enter 8.8.8.8.
    • For secondary school or another DNS server, you will want to write 8.8.4.4.
    • Click on apply and when the message appears saying that the changes have been applied, press 'OK '.
    • Press the power button on your printer, wait that it completely power off and press it again to power it on.
    • After doing this, go ahead and try to activate ePrint again.

    These measures should fix this for you. If they don't, then something else can cause this problem for you. Reply in this thread if these steps do not work, and I'll see if I can help figure you out what might be causing the problem.

  • How to get rid of confirmation on the actions with scripts dialog (multi path delete)?

    "I am using a script in actions to clear all roads, since the web found the 'activeDocument.pathItems.removeAll (); " and it works fine when it is called in the menu script not these dialogs at all but when I try to use it in shares, it still appears a dialog box asking for confirmation if I really want to remove" path regardless.

    Any help on how to perform this action without dialog would be much appreciated.

    Ty in advance.

    Try

    app.displayDialogs = DisplayModes.ERROR;

    or

    app.displayDialogs = DisplayModes.NO;

    In both cases, you probably want to reset to its original state when you are finished.

  • Problem with script - only works with numbers?

    I hope that someone can help you. I have this script that I use to make bar codes:

    If (event.value! = "")

    Event.Value =

    "*" + event.value + "*" ""

    It works fine when a user enters a number, but it does not accept letters. When I change the font 3 of 9 barcode, the field contains "0." This field is calculated from another field. Any way to have this letters to accept as well? I use Adobe X.

    Thanks in advance.

    I need to see the file. I would be happy to take a look if you can display it somewhere or email me at: acroscript at gmail dot com

  • How to remove children lines with removal of multi line?

    Hello!

    I have a DSM process that removes the selected lines of the report, but it gives an error if the line have a child row in another table, so I have to go to this report and remove these first.

    Just add somewhere in the DSM process something then it removes children lines too, or I have to create new process for this?

    Hi EgaSega,

    DELETE will work if there is no foreign key constraints that refer to the line to remove.

    If you don't have foreign key constraints, you can change them to 'ON DELETE CASCADE '. This way, if you DELETE a row in a parent table, all child rows will be auotmatically DELETED, too.

    There are also "ON DELETE SET NULL', which allows you to DELETE the parent rows with children. When you DELETE a parent, child rows are not automatically DELETED, but the columns that pointed to the DELETED parent are automatically changed to null.

    Check out this old thread of discussion forum SQL and PL/SQL for more details:Delete record based on the ID of the main table

    Hope this helps you,

    Kind regards

    Jitendra

  • ADF Mobile access protected web service with the user name and password

    With Jdev 11.1.2.4 (with the extension of the ADF Mobile) I am creating a data control that uses a SOAP web service. The web service is not protected by a policy of wss, but its point of endpoint URL is only protected by simple HTTP authentication (internal weblogic server is not accessible public.) We use an Apache server that is configured with a location that is a simple proxypass on url of the web service endpoint weblogic. This apache location apply simple HTTP authorization). I can invoke successfully the methods with parser HTTP by simply adding to the request HTTP header "authorization: xxxxxxxxxxxxxxxxxx base =" (where xxx = user name and encrypted password).

    In the mobile application of ADF, I used the DataControls.dcx-> window to connect to the Web Service change and provided the username and password to the URL of the endpoint. The problem is that after the deployment and execution of this application on the emulator (or the device itself), I get no data by the web service since with the HTTP 401 error http server responses. It seems that that the credentials are not deployed to the device, so while the application is running can not find them.

    I searched a lot and found a similar article (quite old) in the RTO by Frank Nimphius here access_protected_web_services_from_adf.htm

    Is there a way to do this, or if I'm missing the entire image?

    Thank you very much.

    Christos

    Check out blog Shay https://blogs.oracle.com/shay/entry/accessing_secure_web_services_from

    or Andrejus http://andrejusb.blogspot.de/2012/11/adf-mobile-secured-web-service-access.html

    Timo

  • RESTful Web services works only with input parameters

    I want to create a RESTful Web Services APEX 4.2, who returns to the client, account information required to certain conditions.

    SELECT NAME, AGE, ADDRESS

    ACCOUNT

    WHERE FINANCE >: FUNDS AND CONTROL >: AUDIT

    I defined variables this way.  I tried two URIS, and the Source Type of Httpentete, but nothing works.

    NameLink the name of the VariableAccess methodType of sourceParameter type
    AUDIT OFAUDIT OFINURIDouble
    FUNDFUNDINURIDouble

    I would like to invoke Web Services from a custom page in a web browser, something like this:

    http://localhost/user/customer?funds=1000 & checking = 200

    I could not make passing the values of input in URI parameters to Web Services to work (got an error).  I did anything wrong here?  Is this supported?

    Thank you.

    After some research, I finally cracked. The URI template for my example should be: customer? funds {MONEY} = & check = {CURRENT} now, I can access web services using this URL: http://localhost/schema/customer?FUNDS=1000&CHECKING=200

  • Handling of result for the Web Service

    I'm new to flex and was looking for the best way to show my web service result in AdvancedDataGrid.

    Could someone please take the time to spellout how to do this.

    I tried using the MXML approach and the code AS... I keep thinking I'm missing something.

    Basically, I went back an array of a custom object defined.  Everything in the object is a string, so it is not too complex.

    I am sure that my service returns a response that I checked with soapUI.

    So, how to map this result in an ArrayCollection collection?

    < mx:WebService id=" SRV "wsdl =" " wsDest "

    < mx:operation " name =" getGridData "

    Fault = "showErrorDialog (Event)" "

    result = "someFunction (Event)" "

    >

    < / mx:operation >

    < / mx:WebService >

    < mx:Script >

    <! [CDATA]

    Import mx.rpc.soap.SOAPFault;

    Import mx.rpc.events.ResultEvent;

    Import mx.rpc.events.FaultEvent;

    Import mx.controls.Alert;

    Import mx.collections.ArrayCollection;

    [

    Bindable ]

    public var myArray: ArrayCollection = collection new ArrayCollection();

    public function log(event:ResultEvent):void {}

    Managing for results.

    myArray = ArrayCollection (event.result);

    trace (event.result);

    }

    []] >

    < / mx:Script >

    My common error:

    Error #1088: The markup in the document following the root element must be well-formed.

    If I forget something?  Should I remove SOAP headers?  Any ideas?

    I tried the above approach among others... but would like someone to state a definitive approach to this.  Any help is greatly appreciated, thanks in advance.

    I'm sorry.

    I put a new Webservice usage example below.

    The first question and the problem is that creation collection ArrayCollection setting was wrong. You must specify is that this

    new ArrayCollection (e.result.toArray ());

    Example:


    http://www.Adobe.com/2006/mxml"layout ="vertical">
       
       
        Import mx.collections.ArrayCollection;
    Import mx.collections.ListCollectionView.
    Import mx.utils.ObjectUtil;
    Import mx.controls.Alert;
    Import mx.rpc.events.FaultEvent;
    Import mx.rpc.events.ResultEvent;

    [Bindable]
    private var categories: ListCollectionView = new ArrayCollection();
           
    private void search (): void
    {
    service.getCategories ();
    }
           
    private void result(e:ResultEvent):void
    {
    categories = e.result as ListCollectionView;
    }
           
    lack of private function (e:FaultEvent): void
    {
    Alert.Show (e.Fault.message);
    }
    ]]>
       
       
       
    WSDL ="http://feeds.adobe.com/webservices/mxna2.cfc?WSDL" >. "
            <>
    name = 'getCategories '.
    result = "result (Event)" "
    Fault = "Fault (Event)" / > "
       


       
       
           
           
               
               
               

               
           
           
       

Maybe you are looking for

  • El capitan does not retain passwords

    I use El Capitan and the latest upgrades to it.  Since I went to El Capitan, I'm more able to stay connected to any of the sites I use on a regular basis, including my email.  Also, I changed the passwords on a few sites and my system never recognize

  • Small box remains on the screen in Preferences.

    Whenever I open then close preferences, a small box is standing in the corner. How can I get rid of this without having to reboot?

  • OLEPRO32. DLL error at startup

    At startup I get an error message "Application failed to start because OLEPRO32.". DLL is not found. "This is an IFRMEWRK. EXE error - unable to locate component.   Can someone tell me how to fix this error, then it will go away.  Any help is appreci

  • my pc has a logon password, but my keyboard (s), only recognize enter. the other keys beep

    two keyboards work on my laptop, but when I start my desktop dell dimension 4600 computer appears the password screen and my keyboard beeps when I type. He acknowledges that the Enter key

  • Display of mathematical equations in App

    I'm a newbie here. Is there a way to display mathematical equations (including the integral sign, its fractions, root etc.) in Blackberry. What is the best way to do it?