How to send data to a Web service

Hello everyone. I have a very simple example of sending data (2222) to an existing Web service as follows:

 topmostSubform.Page1.SEND::click - (JavaScript, client)
var url="http://Localhost:8080/4DWSDL";
var serv = SOAP.connect(url);
app.alert("hello ");
serv.MethodeSOAP(2222);
app.alert("hello 2");

 

However, it works fine in Acrobat, but not in the drive. Is it possible to make it work?

In addition, although in this example, the data to be sent are only worth 2222, but my goal is to send all the information from the form to a Web service. Someone has tried it before, or is there an other way easier to do? I would appreciate any suggestion on your part thanks

Hello

Via web service calls data connections will not work in the drive, unless the form has been activated in LC Reader Extensions ES2 to drive:

I have a summary here:

http://www.assuredynamics.com/index.php/2010/11/using-LiveCycle-Forms-in-Acrobat-and-Reade r.

Hope that helps,

Niall

Ensure the dynamics

Tags: Adobe LiveCycle

Similar Questions

  • Does anyone know how to get data from a web service of Labview with ajax or JSON?

    Hello

    I try to use ajax and json to service Web restful which I build with the labview. However I get errors

    For example. I create a web service from a labview vi (z = x / y http://localhost: 8080/math/divide/5/20 will give {Z: "4,000,000"})

    I get errors for the attached html files.

    Does anyone know how to get al labview WebService with ajax or json data?

    Thank you... Eran


  • How to fill a ComboBox with data from a Web service

    I have a simple application that contains a DataGrid control that gets its data from a web service. I prefer to put these data in a ComboBox instead of a DataGrid control. My web service returns objects.

    Someone has an idea how to do?

    < mx:DataGrid id = dataProvider = "{ws.getProjects.lastResult"dgProjects"}" > "
    ... < mx:columns >
    ... < mx:DataGridColumn dataField = "projectID" headerText = "ID of project" width = "100" / >
    ... < mx:DataGridColumn headerText = "Project name" dataField = "projectName" / >
    ... < mx:DataGridColumn headerText = "Doc UNID" dataField = "docUNID" visible = "false" / >
    ... < / mx:columns >
    < / mx:DataGrid >

    Exactly what I needed.

    Thank you very much!!!

  • Exception during consumption of huge data from a web service.

    Hello

    I m developing an application to receive data from a Web Service and retain the data received on the device.

    App is developed for OS 4.3.0

    The Web Service call is made using Ksoap. The Code receives the data from the web service, analyzes the data and stores it in an object. This object is then persisted on the device. The data are essentially the coordinates. It takes the number of contacts required as input and passes it to the Web Service. The Web Service then returns the requested number of records

    The code works if I ask data of up to ~ 600 cases. If I specify more than 600 cases, it throws the following exception

    Chain rg.xmlpull.v1.XmlPullParserException:unexpected type (position: TEXT entity request in T...@1:24 in java.io.InputStreamReader@1f87d1b4)

    When I debugged using Eclipse, this exception is thrown on this statement ht.call (soapAction, envelope);

    Would it be because of a time-out? OT is because the Analyzer is not able to analyze huge data?

    Given that this exception occurs on the declaration of ht.call, I guess the problem is with the web service call and not with the code for persistent storage.

    I have included the code here... Is could someone please show me what the problem is?

    C ode to call Web Services

    public Vector getWebData(String count)
        {
    
       Vector personsVectorto = new Vector();
        try
        {
        StringBuffer receivedContent = new StringBuffer();
        String serviceUrl = "........";
        String serviceNamespace = ".....";
        String soapAction = ".........";
    
       SoapObject rpc = new SoapObject(serviceNamespace, "GetContactsList");
            //rpc.addProperty("listSize", "5");
            rpc.addProperty("listSize", count);
         SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
    
            envelope.bodyOut = rpc;
    
            envelope.dotNet = true;
            envelope.encodingStyle = SoapSerializationEnvelope.XSD;
            HttpTransport ht = new HttpTransport(serviceUrl);
            ht.debug = true;
    
            ht.call(soapAction, envelope); // This is where thexmlpullparser exception occurs
    
     Object obj = envelope.getResponse();
            SoapObject soapResult = (SoapObject)obj;
    
                for(int i=0; i < soapResult.getPropertyCount(); i++)
    
                {
                  PersonDTO personto = new PersonDTO();
               SoapObject choice = (SoapObject)soapResult.getProperty(i);
                if( choice!=null)
                {
                    for(int j = 0; j < choice.getPropertyCount(); j++)
                    {
                      receivedContent.append(" Reading Property Number" + String.valueOf(j) + " Value = " + choice.getProperty(j).toString());
    
         if (j==0) personto.setElement(1,choice.getProperty(j).toString());
        if (j==1) personto.setElement(2,choice.getProperty(j).toString());
        if (j==2) personto.setElement(3,choice.getProperty(j).toString());
        if (j==3) personto.setElement(4,choice.getProperty(j).toString());
        if (j==4) personto.setElement(5,choice.getProperty(j).toString());
         if (j==5) personto.setElement(6,choice.getProperty(j).toString());
         if (j==6) personto.setElement(7,choice.getProperty(j).toString());
          if (j==7) personto.setElement(8,choice.getProperty(j).toString());
         if (j==8) personto.setElement(9,choice.getProperty(j).toString());
       if (j==9) personto.setElement(10,choice.getProperty(j).toString());
                    }
                }                 
    
                personsVectorto.addElement(personto);
                //storepersistentobject(personsVectorto);
            }
    
            }catch(org.xmlpull.v1.XmlPullParserException ex2)
            {
                String bah1 = ex2.toString();
                Dialog.alert("String: " + bah1);
                String bah2 = ex2.getMessage();
                Dialog.alert("Message: " + bah2); 
    
            }       
    
            catch(Exception ex){
                String bah = ex.toString();
                Dialog.alert("Response: " + bah);
    
                }
    
                return personsVectorto;
        }
    

    Thank you

    Hi Philippe,.

    First Question: Print server response

    Yes - I think for you too in fact just print the answer you'll have to do a regular HTTP call to the server and print it like this:

    StringBuffer sb = new StringBuffer();

    int thumb;

    HttpConnection httpConn = (HttpConnection) Connector.open (url);

    httpConn.setRequestMethod (HttpConnection.GET); or by POST depending on your needs

    in = httpConn.openInputStream ();

    While ((thumb = in.read ())! = - 1).

    {

    SB. Append ((Char) inCh);

    }

    System.out.println ("server response:" + sb.toString ());

    Try and see if you get a request too large entity. Note: you should probably put your SOAP request in GET or POST http request.

    Second Question: Is zipping required?

    This is how I chose to do for my particular needs that transfer me a large amount of data and the compression algorithm seems to keep all my data well below 40 k. However, it is not the only way, you could actually make several requests and get data piece by piece, but I don't know if it works well with SOAP responses. Depending on the type of Network Setup Blackberry you have, you can also set this limit to be higher (I think a maximum of 1 024 Ko for BES).

    Third Question: Timeout Logging

    For wait times, usually the exception you get should indicate that there was a timeout, but if you are suspicious that it's a timeout check your web service and see.

    Hope that helps!

    R

  • How to send data in eloqua with using ajax?

    Hello

    someone tell me how to send data using ajax?

    Thank you

    Rahul

    Hi Rahul

    Using this code to send data to AJAX

    $.ajax({)

    URL: ' your action? elqformname = name of the form eloqua & elqSiteID = eloqua site ID',

    type: 'POST',

    data: "field name =" + document.getElementById('field_id').value + "="+ document.getElementById('field_id').value field name,

    success: {function (html)}

    }

    })

    Thank you

    edynamic expert Eloqua

  • ADF Mobile Page with the data control of Web Service not showing latest results

    Hello

    I developed a simple mobile application of ADF. It has two functions members and subscriptions. These two pages are part of my Taskflow. On the members page I show all members in a list by using the Web Service method data Find command. In the list item have a listener property Set where I'm storing MemberId in a variable of pageFlowScope for action. On the subscription page, I have a bar graph that gets the data with the help of a Find method in control of data to the Web Service. The find method is based on a view created criteria which has a member ID of input parameter. in the model of ADFBC project. I connected the variable using the AMX page binding. The variable is being levied on the pageFlowScope variable.

    The page displays the chart first to a member. And shows the same graph for the other members. I printed the memberId variable and it shows the value of the respective members. But the cards are not get updated every time I select new Member.

    I use JDeveloper 11.1.2.4.0.

    Any suggestions?

    Thank you

    Mehabub

    Go to the Connections tab, and then click the Green plus sign on the central section - you need to add a 'invokeAction. Give it a name, and then select the iterator that built the table, and that's all you should have to do. The invokeAction fires whenever you visit the page and should update the list.

    Rich,

  • How send to an XML web service?

    I am brand new to Flex. I am writing a program that uses web services to send and receive data. I got so that he can receive the XML of the web service. However, I also need to send it, and I'm stuck.

    I tried the following code:

    < mx:WebService id = "MyService".
    "WSDL =" http://localhost/FlexTest/service1.asmx?WSDL "
    useProxy = "false".
    result = "resultHandler (Event)" >

    <!-Entry: XML Document... Output: String->
    < mx:operation name = "HelloPersonAcceptsXmlDocumentReturnsString" >
    < mx:request >
    < personXmlDoc > xmlPerson < / personXmlDoc >
    < / mx:request >
    < / mx:operation >

    <!-Entry: XML node... Output: String->
    < mx:operation name = "HelloPersonAcceptsXmlNodeReturnsString" >
    < mx:request >
    < personXmlNode >
    xmlPerson.Person
    < / personXmlNode >
    < / mx:request >
    < / mx:operation >

    <!-Entry: String (XML Format)... Output: String->
    < mx:operation name = "HelloPersonAcceptsXmlStringReturnsString" >
    < mx:request format = "xml" >
    "< personXmlString > < p1:Person xmlns:p1 =" http://impact-tech.com/schemas/FlexTest "> < p1:ID > f1bd45fc - 544 b-489 d-83cf-349d1f9740ec < / p1: I D > < p1:FirstName > Joe < / p1:FirstName > < p1:MiddleName > c. < / p1:MiddleName > < p1:LastName > kick < / p1:L astName > < p1:BirthDate > 2006-09-11 T 14: 03:04.4755443 - 04:00 < / p1:BirthDate > < p1:IsMarried > < /p1:IsMarried > false < p1" : NumChildren > 0 < / p1:NumChildren > < p1:NetWorth > 100000 < / p1: NetWorth > < / p1: Pers on > < / personXmlString >
    <!-{xmlPerson.toXmlString ()} < personXmlString > < / personXmlString >->
    <!-{txInput.text} < personXmlString > < / personXmlString >->
    < / mx:request >
    < / mx:operation >

    < / mx:WebService >

    In the first operation, 'HelloPersonAcceptsXmlDocumentReturnsString', I try to send an XML object. During the second operation, 'HelloPersonAcceptsXmlNodeReturnsString', I try to send the root node, xmlPerson.Person. In both cases, what is actually sent is literally the text that I put in the node < application >, not the object the text refers. For the first, "xmlPerson" then gets sent to the target, not the XML doc what it refers to.

    In the third operation, I tried three different things, and two are commented. I tried to refer to the XML object using the toXmlString() method, but again, it has literally sent the text "xmlPerson.toXmlString ()". I tried the brace link, but then nothing is sent to the web service. I also tried to build the XML node and with values, but I get an error from the web service saying that it cannot be analyzed because there is an illegal line 1, position 1 character. The only thing that worked was to add a text entry box, copy - paste the exact same structure XML that I tried to build manually and then use binding to the text property of the control InputText. Then it works fine. But I can't actually do, it's just to test.

    So my question is how a < application > node that is part of the web service operation that makes reference to an object and sends the value of this object to the web service, not literally all text is typed into this node. I looked at Web Services and sections of the help data binding and did not see examples on this. Everything was much more simplistic with binding to controls. Can someone help a newbie, please?

    I do not understand how this isn't a matter of Flex Builder, since it has to do with how Flex Builder interacts with web services and how objects are used in the binding in MXML.

    But anyway, I got this code for future reference of someone else to research work in this forum:

    Declare a custom in MXML class has been the key to allow the correct link:


    "WSDL =" http://66.129.123.211/FlexTest/service1.asmx?WSDL "
    useProxy = "false".
    result = "resultHandler (Event)" > "




    {testPerson.GetXmlDoc ()}

  • How to clear the inputText field that contains control data to the Web Service data?

    Hello

    I use JDeveloper 12.1.3 and 2.2 of the MAF.

    I created a Web Service data control that offers the feature of the View object on the server side.

    To use this, I created a taskflow with two pages of amx. The first page of the amx contains a button to call the other.

    The second page of the amx contains fields inputText with the values of the parameters of creation out of the data control functions.

    If I call the second page of the amx inputText fields are empty. On the page, I have a button to call the function of creation itself. By pressing the key the inputText field values will be sent to the server. Everything works great! Pressing on the button also calls for action to return to the first page of amx in the taskflow.

    Now, if a next time I call the second page the inputText fields contain the values from the last call.

    I want the inputText empty fields each time. How can I achieve this?

    Thanks in advance.

    Martin

    You can ask this question in the forum of the MAF

    Oracle Mobile Application Framework

  • Validation prior to submitting the data to the web service

    HI guys,.

    I need your help because I use Adobe LiveCycle Designer 8.2 in desiging an electronic form in offline mode, which takes the user data and insert it into a database using a WSDL for the web service on the server. I now had the button on which to run the web service method parameters are related to certain fields, but I need to validate these field at the time of the application?

    So I tried to write the validation script in the handler preExec, but if this right I need to know how to cancel the preExec execute event?

    And if it's not just please help me otherwise

    Thank you.

    Osama

    To cancel the event (submit it in this case), you would use xfa.event.cancelAction = true;

    This was added in version 8, I believe so if you are using a Reader/Acrobat earlier that this will not work.

    You could have your hidden real submit button and expose a normal button to the user for the presentation. This would allow you to write code on the normal button to check your postings and if they work out then you would hit the Send button programmatically:

    buttonName.execEvent ("click")

    Hope that helps

    Paul

  • Error in creation of Control (SOAP) data to the Web Service in the ADF Mobile app

    Hi, I tried to create a Control (SOAP) Web Service data in a Mobile application of ADF in JDeveloper 11.1.2.4.0 under Mac OS X 10.8.5

    The application has been newly created (no features) and I tried to create a Web Service data control directly.

    In the 'Create Web Service data-> step 1 control', when I entered the URL of the WSDL and left the text box, the window "WSDL Document for reading" came and I got an error message saying "invalid WSDL URL.

    The error description is given below:

    Houston-29114 ADFContext is not configured to process this exception messages. Use the code of exception stack trace and error to investigate the root cause of this exception. Root cause error code is DCA-29000. Are parameters of error message ({0 = oracle.webservices.mdds.MddsException, 1 = java.io.InterruptedIOException: connection timed out})

    I have JDeveloper put 11.1.2.4.0 in place on a Windows 8 and follow the same steps with the same WSDL URL and he accepted the URL.

    Can anyone help on how to fix this problem as I want to develop on Mac.

    Hello

    We have solved the problem by asking the dev team to provide the file for the web service's .wsdl. We copied the file in the file system on the mac and then instead of provide the URL, inviting us to the wsdl file. Who does the work on the mac.

    We were able to put a URL as http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL (a non-secure web service) and the wizard to create the Web Service data control accepted the URL on the mac. Can be to secure web services, we have the .wsdl himself file. (the web service that we were trying to access was on EBS and was a secure web service)

  • How to send SMS from a web application to for free?

    In my view, what API JavaMail will help send emails and SMS Messages via the SMTP server. I want to know how it actually works and how to configure the SMTP server? How to send SMS from java program? Is there any material available on the web? Please give some input.
    Thanks in advance.

    user12873853 wrote:
    In my view, what API JavaMail will help send emails and SMS Messages via the SMTP server.

    Looks like more false hope that belief for me. The only way that works is if you have a SMS gateway which allows communication via SMTP. No doubt some exist (search for 'JavaMail sms' through google seems to indicate), but if you have to ask you don't have.

    And who exactly where you are stuck: to send SMS messages, you need an SMS gateway. It will be the first thing that you have store because, so far, there is no reason to think in code, protocols or implementations. It can be as simple as plugging a mobile phone, but then you can send messages in mass of course. Most likely, you will need to shop for a partner who has a SMS service you can use blasting.

  • Jdev 11 g AD / display objects - updated and complete control of data to the web service

    Hi Experts...

    Looking for the best approach here.

    I hope someone can give me some ideas / advice on how best to achieve the filling of a webservice data control to a view object.

    Basically, I created an application traction of data sources by using the ADF BC VO tables I put a command button "Update record", that will open a dialogue with a web service data control.

    I hope to be able to fill in the fields of data control, with the values of the selected recording VO.

    I'm tipping at this point, I'll have to programmatically?

    This is the recommended approach?

    Examples of code?

    Thanks in advance to anyone who can help!

    Simo

    Should be similar to this:
    http://blogs.Oracle.com/Shay/2011/03/passing_parameters_between_web.html
    But the first page should get the data from the original Version instead of Webservice.

    Since you use API-PL/SQL in the database to make the update, it may be more efficient to have just a method of AM service that uses the existing JDBC connection / transaction and calls this PL/SQL stored procedure and passes the info of the VO.
    See: http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcadvgen.htm#BABEIFAI

    Or even take it:
    http://download.Oracle.com/docs/CD/E17904_01/Web.1111/b31974/bcadveo.htm#sm0328

  • How to send data back to office applications

    Hi guys, I want to know all the possible ways to insert data in CRM OnDemand for legacy systems also the integration of options packages, it is best if you can tell me how to do it via web services, but no idea would be great. I ve heard talk of web links, but I Don t like that option so... can I do with the events of integration?

    Thank you!!

    There are several ways to extract data from CRM On Demand, including:

    * Export - Manual of the process, generate the CSV file containing data On Demand CRM
    * List/Analytics - manual process, export the contents of a list report to a CSV file
    Services - programmatic Web, developing an application that queries data within the CRMOD
    * Events - programmatic integration, use workflow to trigger the creation of the event and then query for events, namely that an operation occurs on a record (i.e. Insert new record of account)

    As to enter these data into another system, this will depend on the system and the methods for inserting data it makes available.

    I hope this helps.

    Thank you
    Sean

  • Houston-25080 error on the use of data to the web service control

    Do not get all the answers to that. Is this a bug? and if so, how do I file the bug?

    Hello

    I'm trying to use Jdev 11 g to build a simple web application. The application page uses a web service (called "theAssetType") data control. But I get the following error message when I try to get the message 'return' on the page widget. The name of the service on the server is CM_RJCP2.

    Besides - this service works very well with the HTTP Analyzer - so don't know why it doesn't work in the JSF page.

    Your help is greatly appreciated!

    oracle.jbo.NoDefException: Houston-25080: definition name: CM_RJCP2 does not correspond to the file in which it is responsible for: oracle.myweb.model.theAssetType.CM_RJCP2. CM_RJCP2
    at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:999)
    at oracle.jbo.mom.DefinitionManager.loadParent(DefinitionManager.java:1228)
    at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:933)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:482)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObjectDontCheckName(DefinitionManager.java:433)
    at oracle.adf.model.bean.DCBeanDataControl.findStructureDef(DCBeanDataControl.java:1884)
    at oracle.adf.model.bean.DCBeanDataControl.getAttributeDefs(DCBeanDataControl.java:1936)
    at oracle.adf.model.binding.DCIteratorBinding.getAttributeDefs(DCIteratorBinding.java:3142)
    at oracle.jbo.uicli.binding.MyIteratorBinding.getAttributeDefs(JUAccessorIteratorDef.java:494)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.fetchAttrDefs(JUCtrlValueBinding.java:485)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDefs(JUCtrlValueBinding.java:437)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:511)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:501)
    to oracle.jbo.uicli.binding.JUCtrlValueBinding$ 1JUAttributeDefHintsMap. < init > (JUCtrlValueBinding.java:3857)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeHintsMap(JUCtrlValueBinding.java:3952)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getHints(JUCtrlValueBinding.java:2417)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGet(JUCtrlValueBinding.java:2379)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding.internalGet(FacesCtrlAttrsBinding.java:277)
    at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:750)
    at javax.el.MapELResolver.getValue(MapELResolver.java:164)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)

    Published by: rjcovert on December 29, 2009 09:11

    Published by: rjcovert on January 3, 2010 08:31

    There is a bug with datacontrol whose name is the same as the package directory.
    I think that you can run in this case - you can try working in a different package name?
    (or try to refactor-> move your files).

  • Application of control data to the Web Service parameter takes the form of object

    I sent in a simple web service on an instance of peoplesoft.
    The request message is:
    <? XML version = "1.0" encoding = "windows-1252"? >
    < xsd: Schema container = "http://www.w3.org/2001/XMLSchema".
    xmlns = "http://www.example.org".
    targetNamespace = "http://www.example.org".
    elementFormDefault = "qualified" >
    < xsd: element name = "SSR_CLASS_SEARCH_REQ" >
    < xsd: annotation >
    < xsd: documentation >
    An element of the sample
    < / xsd: documentation >
    < / xsd: annotation >
    < xsd: complexType >
    < xsd: SEQUENCE >
    < xsd: element name = "INSTITUTION" type = "xsd: String" nillable = "true" / >
    < xsd: element name = "TERM" type = "xsd: String" nillable = "true" / >
    < xsd: element name = "CAREER" type = "xsd: String" nillable = "true" / >
    < xsd: element name = "TOPIC" type = "xsd: String" nillable = "true" / >
    < xsd: element name = "CLASS_NBR" type = "xsd" nillable = "true" / > "
    < / xsd: SEQUENCE >
    < / xsd: complexType >
    < / xsd: element >
    < / xsd: Schema >

    While the response message has a depth of three levels:

    In jdev 11g (Studio Edition Version 11.1.1.1.0, Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407) is available for download on OTN, I perform the following steps.

    Create a Web Service data control using the WSDL, generated from the end TFTP url.
    The data control is created successfully. The problem is:
    -In the mode of operation of the service (in the data control), the query parameter appears as an object.
    -L' entry under the tree of service operation parameter ' parameter '.

    The control of data looks like:

    -< datacontrolname >
    -_parameters < serviceOperationName >
    -parameter
    -CAREER
    -CLASS_NBR
    -INSTITUTION
    -TOPIC
    -TERM
    -< serviceOperationName > (Object)
    -Settings
    -parameter
    -Return
    -return type >

    The return type is fine, with collections in the depth of the tree hierarchy.

    How to create a form of parameter for this data control.

    Find out how it's done in this tutorial:
    http://download.Oracle.com/otndocs/technology/tech/fmw4apps/agile/PDF/adf11g-agile.PDF

Maybe you are looking for