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

Tags: Java

Similar Questions

  • 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 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!!!

  • call a stored procedure for each row in the transitional attribute and display the data in the form of af: table. The other rows are based on the entities

    Hi Experts,

    JDeveloper 12.1.3.0.0

    I have a VO based on entity object. With a column of the VO is transient attribute (I created).

    I need to call a stored procedure for each row in the transitional attribute and display the data in the form of af: table. As well as other attributes.

    So can anyone suggest how can I achieve this?

    Thank you

    AR

    I think that you need a stored function (which returns the value) in this case, is not?

    Take a look at:

    https://docs.Oracle.com/CD/B31017_01/Web.1013/b25947/bcadvgen005.htm

    and search for:

    Invoking stored function with only Arguments in

    call your function in the Get attribute and return value accessor...

  • On the forms send us and receive in return, data in the form of fields will be not print.  We can view the data, but the fields to print Virgin.  How can I fix it?

    On the forms send us and receive in return, data in the form of fields will be not print.  We can view the data, but the fields to print Virgin.  How can I fix it?

    OK, it's different. These text boxes are (at least engineering point of view) not considered form data, they are annotations (or markup). On your print dialogue box, you will see a group of "Comments & Form". Make sure that the first control is set to "Document and annotations:

    After this change, you should see the markup of your impressions.

  • How to NOT send some form data when the form is submitted

    Hello

    I created a PDF form with radio buttons in the Group and the boxes. When I the form of data, such as values using the submit by e-mail button to send form data as XML or merge data into a spreadsheet files, I'll see the data values for radio buttons and checkboxes.

    What I want here is to don't get the data values for some controls such as the boxes option, but no other controls like check boxes, in the XML or Excel worksheet after submission of the form. I know how to hide the controls in the form, but I have to the visible and active boxes on the form.

    Is there a way to hide or do not send form data when the form data is submitted?

    Thank you

    Sam

    Hi Kyle,.

    That's exactly what I want! Once I have not selected any data binding, the field is in shape and active, but when submitted as XML or it merge with a spreadsheet, the field is gone.

    Forgive me if I didn't my self clear in my question. Answer you is straight to the point.

    Thank you very much!

    Sam

  • ActiveX in BradySoft (CodeSoft) - what method/class/object I would use to send data to the form variable to BradySoft?

    Can what method/class/object I use to send data to the form variable to BradySoft? I have a basic configuration of BradySoft label and I want to send it data of variable shape (a serial number) from Labview ActiveX. I joined guide Brady ActiveX programmers, but can't understand what to use for that.

    P.S. I would call Brady or TekLynx tech support on this issue, but they have a strict policy while BradySoft supports ActiveX, but does not provide technical support assistance programming with it. I thought I would try the Forums OR.

    Just an update. I could get this to work myself after a few days of playing with it (I suppose that the best way to learn!). I have attached a sample VI for anyone interested. Can we Kudo ourselves?

  • Selection of the date on the forms online

    Hello. I have a Xperia z5 compact Marshmallow. When you enter a date on the forms online (Chrome), a calendar just for me to choose a date of. I have to scroll through each month for the previous dates. This means enter my birth date takes an eternity that I have to scroll every month to the year 1990. Is there a faster way to do this? Thank you.

    I finally (accidentally) figured this out. If I click on the year he allows me to scroll directly to the year I want

  • Message from blackBerry Smartphones: the page you requested was created using data from the form.

    While closing a link to expedia.ca a message come to say: the page you requested was created using data from the form. This page is no longer available.  If you resend the data, any action that has been specified by the form will be repeated.  You want to resubmit the data?  When I click Yes or no, nothing happens except that the message just reappears.  I can't get rid of it so I can't do anything else on my phone, except to answer a call if someone calls me.  How can I get rid of this message from my phone?  I tried to turn it works... even by leaving off the coast for 5 minutes before turning turn it back on.  I can't even check my OS because I do not what anyone on my phone.  I hope someone can help me with this.

    Have you tried a battery pull?  This should fix a problem as you described.

    With your phone, remove the battery, then replace a minute later.  This will do all sorts of wonderful things to your phone for free unclaimed memory, delete no cited source points and make your phone run smoothly.

    Try it and let us know if it does the trick.

  • ORA-01843: not a valid month - no dates on the form

    When I submit a form I get the error "ORA-01843: not one month valid." I've now removed all the date of the form fields, and there is no triggers or constraints on the table concerning the date fields, so I'm at a loss on how to solve this problem. Any help much appreciated.

    Edited by: Waggers April 11, 2012 03:38

    in lspq? a default value? in a select with to_date?

  • Send a reminder using the Dates of the form

    Hi all.

    I don't know what is the best way to send reminders (email), verification of the dates of the form.

    For example:

    There is a task assignment when the user enters 5 dates (day 1, day 2, day 2... etc)

    Then I need to send emails to 'Xpath user' when the date system is: "day 1" - 24 hours (for example). "."  The same date 2, day 3... etc.

    How can I do?

    I write the dates in the database need?

    Some ideas?

    Thank you very much.

    Maria

    You can use a gateway with a branch for each email that will be sent. Put a holding Point before sending email. Set days to wait as an XPath expression using get-days-from-dateTime-difference(current-date (), Date of the form). Subtract 1 for your less 24 hours.

  • print the data of the form instead of the whole page

    Hi all

    I'm having a problem in my ADF/JSF page. I just want to print the data in the form of my form instead of the whole page.using javascript:print() method prints the whole page. so can you help me solve this problem. I JDev 10.1.3 and do not want to upgrade to 11g JDev!

    Is there a java code to do?

    Thank you

    Hello

    You can apply CSS to the page and use the media to deermine switch which components will appear in print and who should not.

    Download the word document in http://thepeninsulasedge.com/frank_nimphius/wp-content/uploads/2008/05/OldAndLostBlogBusterTips.zip

    and take a look at page 287

    Frank

  • Ora-13033 invalid data in the sdo_elem_info_array in object geometry sdo

    Hello

    I get this error when I create spatial indexes on the geometry.

    I think I have a problem with some lines of my geometry data. I identified and corrected these problems so far. but I always error on the creation of a spatial index.

    -the Gtype vacuum in a few lines
    -bad Gtype in a few lines

    Error full.

    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-13249: internal error in the Spatial index: mdidxrbd
    ORA-13249: IERREUR in Spatial Index: index generation remote
    ORA-13200: internal error RowID:AAANZE / AAFAAALFaAAP... in the space for indexing
    ORA-13206: [] internal error creating the spatial index
    ORA-13033: invalid data in the sdo_elem_info_array in object geometry sdo
    ORA-06512: at the 'MDSYS. SDO_INDEX_METHOD_10I', line 10

    I have data on line for this table and this is the sample data.

    GEOMETRY (SDO_GTYPE, SDO_SRID, SDO_POINT_TYPE (X, Y, Z), ANSDO_ELEM_INFO, SDO_ORDINATES)
    --------------------------------------------------------------------------------
    SDO_GEOMETRY (2002, 2958, NULL, SDO_ELEM_INFO_ARRAY, (1, 2, 1), SDO_ORDINATE_ARRAY ())
    598520.994, 4837106.63, 598462.359, 4837164.63))

    SDO_GEOMETRY (2002, 2958, NULL, SDO_ELEM_INFO_ARRAY, (1, 2, 1), SDO_ORDINATE_ARRAY ())
    599229.43, 4837127.13, 599089.675, 4837264.62))

    SDO_GEOMETRY (2002, 2958, NULL, SDO_ELEM_INFO_ARRAY, (1, 2, 1), SDO_ORDINATE_ARRAY ())
    599280.002, 4837024.46, 599295.689, 4837048.09, 599296.21, 4837055.13, 599294.64
    5, 4837062.43, 599229.43, 4837127.13))

    SDO_GEOMETRY (2002, 2958, NULL, SDO_ELEM_INFO_ARRAY, (1, 2, 1), SDO_ORDINATE_ARRAY ())

    GEOMETRY (SDO_GTYPE, SDO_SRID, SDO_POINT_TYPE (X, Y, Z), ANSDO_ELEM_INFO, SDO_ORDINATES)
    --------------------------------------------------------------------------------
    599089.675, 4837264.62, 599028.567, 4837324.34))

    SDO_GEOMETRY (2002, 2958, NULL, SDO_ELEM_INFO_ARRAY, (1, 2, 1), SDO_ORDINATE_ARRAY ())
    595925.144, 4839146.42, 596002.765, 4839128.11, 596007.989, 4839126.85, 596013.5
    22, 4839123.09, 596056.926, 4839089.74, 596100.769, 4839065.62, 596106.694, 4839
    063.81, 596110.438, 4839064.27, 596115.548, 4839066.47, 596181.122, 4839135.22,
    596183.623, 4839140.59, 596183.706, 4839145.03, 596183.319, 4839148.15, 596181.1
    78, 4839152.64, 596174.794, 4839163.26, 596165.136, 4839174.75, 596143.191, 4839
    194.57))


    Note also that I have correct size in the table 'sdo user geom meta data' and at my table.

    Any help is greatly appreciated.

    Rose

    Rose,

    Just a few questions:

    1. What is the source of your data?
    2. How did did you load it?
    3. have you already validated with SDO_GEOM. VALIDATE_GEOMETRY_WITH_CONTEXT?

    Kind regards.

    Ivan

  • 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

  • How to create the Webservice data control with a secure Web service?

    I am creating a data control with a Web service that requires authentication (SSO)
    There are two ports for my server OC4J 7777 (requires authentication) and 7779 (authentication is not required).
    (The service Web application is deployed in OC4J)

    I am able to create a data control with port 7779 not, but I'm not able to create with the port 7777. In my app, I'll go "user email" the SSO. I require it a data control with authentication. How to pass the user name and password when creating the data control? I'm not able to go "Point endpoint authentication" stage also. I get the error message "the WSDL document is not found" when I type the URL in the first step.

    I created the data control with port 7779 and after I modified the 'DataControls.dcx' file with port 7777. (IE "wsdl ="http://ipaddress:7777/../..?WSDL"), but I do not get the appropriate data.

    I work with JDeveloper 11.1.1.0.0g

    Please help me,

    Thanks in advance
    Vinod

    There was a few bugs in this area, who are already fixed in our current code line, then they should do it in the next version.

Maybe you are looking for