Create dropdown with the webservice response

Hi experts,
I'm beginner in webdynpro and I need create a screen which will have a field of type Dropdown with the values obtanied from a webservice call, once selected the value of the list and filled others fields of the form, other webservice must be called to obtained the webservice information.
Could everyone help me please?
Regards,
Jose

Hi,
Create a dropDownByIndex element and bind it to ur Response
object attribute of web service which u need to show in the
dropdown.
On ontoggle event of dropdown by index  write ur required code
to call another webservice.
In order to get the selected value from the dropdown just get
the current value of the bound  attribute .Using this value u
can call another web service.
Iam assuming u r calling ur first web service in ur init() method.
Regards
Surender dahiya

Similar Messages

  • Invoke BPEL process with the webservice interface

    I'm using Oracle BPEL PM 10.1.2.x.
    Follow the example comes with the BPEL PM, i can invoke the BPEL process in a J2EE project (with the webservice interface). The example named "UseStockReviewSheet".
    Then i tried to invoke the BPEL process i designed with Eclipse BPEL Designer. The version of BPEL designer for Eclipse is 0.9.13.
    I failed and got following errors:
    09/03/17 16:55:53 com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.
    xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
    messageType: {null}
    parts: {{summary=<summary>变量/表达式结果为空.
    尝试读取/复制第 50 行的 xpath 变量/表达式 "bpws:getVariableData('input','payload
    ','/tns:CreditFlowRequest/tns:input')" 时, 发现为空。.
    请确保变量/表达式结果 "bpws:getVariableData('input','payload','/tns:CreditFlowRe
    quest/tns:input')" 非空。.
    </summary>}}
    09/03/17 16:55:53 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.checkEx
    pressionFromValue(BPELAssignWMP.java:972)
    09/03/17 16:55:53 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFro
    mValue(BPELAssignWMP.java:504)
    09/03/17 16:55:53 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__execu
    teStatements(BPELAssignWMP.java:122)
    09/03/17 16:55:53 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perfo
    rm(BPELActivityWMP.java:188)
    09/03/17 16:55:53 at com.collaxa.cube.engine.CubeEngine.performActivity(Cu
    beEngine.java:3408)
    09/03/17 16:55:53 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(Cub
    eEngine.java:1836)
    09/03/17 16:55:53 at com.collaxa.cube.engine.dispatch.message.instance.Per
    formMessageHandler.handleLocal(PerformMessageHandler.java:75)
    09/03/17 16:55:53 at com.collaxa.cube.engine.dispatch.DispatchHelper.handl
    eLocalMessage(DispatchHelper.java:166)
    09/03/17 16:55:53 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendM
    emory(DispatchHelper.java:252)
    09/03/17 16:55:53 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEng
    ine.java:5438)
    09/03/17 16:55:53 at com.collaxa.cube.engine.CubeEngine.createAndInvoke(Cu
    beEngine.java:1217)
    09/03/17 16:55:53 at com.collaxa.cube.engine.delivery.DeliveryService.hand
    leInvoke(DeliveryService.java:511)
    09/03/17 16:55:53 at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.han
    dleInvoke(CubeDeliveryBean.java:335)
    09/03/17 16:55:53 at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.
    handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796)
    09/03/17 16:55:53 at com.collaxa.cube.engine.dispatch.message.invoke.Invok
    eInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
    09/03/17 16:55:53 at com.collaxa.cube.engine.dispatch.DispatchHelper.handl
    eMessage(DispatchHelper.java:125)
    09/03/17 16:55:53 at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.
    process(BaseScheduledWorker.java:70)
    09/03/17 16:55:53 at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage
    (WorkerBean.java:86)
    09/03/17 16:55:53 at com.evermind.server.ejb.MessageDrivenBeanInvocation.r
    un(MessageDrivenBeanInvocation.java:123)
    09/03/17 16:55:53 at com.evermind.server.ejb.MessageDrivenHome.onMessage(M
    essageDrivenHome.java:755)
    09/03/17 16:55:53 at com.evermind.server.ejb.MessageDrivenHome.run(Message
    DrivenHome.java:928)
    09/03/17 16:55:53 at com.evermind.util.ReleasableResourcePooledExecutor$My
    Worker.run(ReleasableResourcePooledExecutor.java:186)
    09/03/17 16:55:53 at java.lang.Thread.run(Thread.java:534)
    <2009-03-17 16:55:53,640> <ERROR> <default.collaxa.cube.xml> com.oracle.bpel.cli
    ent.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-proce
    ss/}selectionFailure}
    messageType: {null}
    parts: {{summary=<summary>变量/表达式结果为空.
    尝试读取/复制第 50 行的 xpath 变量/表达式 "bpws:getVariableData('input','payload
    ','/tns:CreditFlowRequest/tns:input')" 时, 发现为空。.
    请确保变量/表达式结果 "bpws:getVariableData('input','payload','/tns:CreditFlowRe
    quest/tns:input')" 非空。.
    </summary>}}
    I can invoke my BPEL process in BPEL console, not in J2EE project. bpws:getVariableData('input','payload','/tns:CreditFlowRequest/tns:input')" is null.
    The error message contains some Chineses word. I'm new to BPEL, hope someone can give me a hint on how to solve this problem.
    Thanks a billion!
    --Sunny 2009-3-18

    Following is the java class invoking BPEL process with the webservice interface.
    package com.otn.samples;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceException;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.encoding.XMLType;
    import javax.xml.rpc.soap.SOAPFaultException;
    import org.apache.axis.client.Call;
    * @version 2.0 $Date: 07-mar-2005.05:07:45 $
    * @author Copyright (c) 2004 by Oracle. All Rights Reserved.
    public class CreditFlowClient
    private static QName SERVICE_NAME;
    private static QName PORT_TYPE;
    private static QName OPERATION_NAME;
    private static String SOAP_ACTION;
    private static String STYLE;
    private static String THIS_NAMESPACE = "http://samples.otn.com";
    private static String PARAMETER_NAMESPACE = "http://samples.otn.com";
    private String location;
    static
    SERVICE_NAME = new QName(THIS_NAMESPACE,"CreditFlow");
    PORT_TYPE = new QName(THIS_NAMESPACE,"CreditFlow") ;
    OPERATION_NAME = new QName(THIS_NAMESPACE,"creditFlowRequest");
    SOAP_ACTION = "initiate";
    STYLE = "wrapped";
    public void setLocation(String location)
    this.location = location;
    public void initiate(String ssn)
    try
    /* Create Service and Call object */
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    Service service = serviceFactory.createService( SERVICE_NAME );
    Call call = (Call)service.createCall( PORT_TYPE );
    /* Set all of the stuff that would normally come from WSDL */
    call.setTargetEndpointAddress( location );
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, SOAP_ACTION);
    call.setProperty( Call.OPERATION_STYLE_PROPERTY , STYLE );
    call.setOperationName(OPERATION_NAME);
    call.addParameter(new QName(PARAMETER_NAMESPACE,"ssn"), XMLType.XSD_STRING, ParameterMode.IN);
    Object[] params = new Object[1];
    params[0] = ssn;
    /* Invoke the service */
    call.invokeOneWay(params);
    System.out.println( "CreditFlow BPEL process initiated" );
    catch (SOAPFaultException e)
    System.err.println("Generated fault: ");
    System.out.println (" Fault Code = " + e.getFaultCode());
    System.out.println (" Fault String = " + e.getFaultString());
    catch (JAXRPCException e)
    System.err.println("JAXRPC Exception: " + e.getMessage());
    catch (ServiceException e)
    System.err.println("Service Exception: " + e.getMessage());
    public static void main(String[] args)
    String ssn = "12-123-126";
    String location = "http://localhost:9700/orabpel/default/CreditFlow";
    CreditFlowClient client = new CreditFlowClient();
    if(args.length == 1)
         ssn = args[0];
    else if(args.length ==2)
    location = args[0];
    ssn = args[1];
    client.setLocation( location );
    client.initiate( ssn );
    -------------------------------------------------------------------

  • Create Folder with the name of expense report number in SHAREPOINT ?

    Hi All,
    iExpence - In expense report confirmation page. There is custom link.
    Requirement
    When user click on link, system should create folder with the name of expense report number in SHAREPOINT and copy copies of expense receipts in the created folder in SHAREPOINT.
    Please suggest.
    Thanks,

    OAF no api as such for this kind of customization. Rather try developing some web service or something similar which can be invoked from the custom link to do the job.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                   

  • Problem with creating links with the WPC (SP14)

    Hi,
    I have a problem creating links with the WPC (SP14): When I want to create internal links (Browse and select the target item) via the right button (choosing a website as a reference link). If I do so I encounter the problems either that the linked site (outside the WPC) shows a blue background and/ or has no navigation frame (on the left side & no breadcrumb-navigation on top).
    If I create links with the left button in the WPC via URLs I have the problem with the inserted URL, because sometimes (I don't know why und when) some parts of the code in the URL changes, so that the linked Website is empty (besides the navigation fram - the content isn't displayed anymore). To me it looks like as if the originally website cannot be "found" anymore.
    Does anyone has the same problems and is eventually able to help me? This would be really great. Thanks!

    Hi,
    you have also to deploy the following file from Service Marketplace:
    Patch for SP14 for KMC WEB PAGE COMPOSER 7.00
    Than it will works. The best way is you deploy WPC SP 15.
    If you want i can send you this file via email.
    regards,
    Sharam
    Edited by: Seed mopo on Apr 28, 2008 11:45 AM

  • How to Create IView with the HTML Content

    Hi Friends,
    Give me steps how to create IView with the static html file.
    Regards,
    Lakshmi Prasad.

    Hello thr...
    follow the below link for the required steps.
    [KM Document iView|http://help.sap.com/saphelp_nw04/helpdata/EN/fc/cf14bcd42911d5994400508b6b8b11/frameset.htm]
    You need to upload the document onto KM. Then you will be able to create the KM Document iView.
    Cheers!!!
    Biroj Patro.

  • [svn] 1267: fixed . patch creation to create patch with the selected files only, remove, fix newlines in the patch file.

    Revision: 1267
    Author: [email protected]
    Date: 2008-04-16 17:02:53 -0700 (Wed, 16 Apr 2008)
    Log Message:
    fixed .patch creation to create patch with the selected files only, remove, fix newlines in the patch file.
    Modified Paths:
    flex/sdk/trunk/tools/diffpack/diffpack
    flex/sdk/trunk/tools/diffpack/readme.txt

    All,
    I thought it may be related to spaces in the path in which the script was called from. I tried having the ODBC command script in another directory but the same thing happens. It will give me the "CONFIGSYSDSN: Unable to create a data source for the 'Oracle in OraClient10g_home1' driver: Could not load the setup or translator library with error code -2147467259". As soon as the script is done running I can manually double click the script and it adds the DSN fine.
    Thanks,
    Clif Bridegum

  • Creating sandboxes with the admin api

    I'm trying to write some code that creates sandboxes through
    the admin api. For these sandboxes, I want to only enable a
    specific set of functions. Unfortunately, when you create a sandbox
    with getSecuritySandboxes, it enables all functions by default. I
    therefore need to disable all the securable functions before
    enabling the ones I trust. I've run into two problems in doing
    this, and wondered if anyone had any advice.
    1) The api provides a function called
    getSecurableCFFunctions, which is meant to return all the functions
    that can be secured. Unfortunately, the function list returned by
    this function is not complete - it is missing createobject(com),
    createobject(corba), createobject(java), createobject(webservice),
    getgatewayhelper and sendgatewaymessage. There's no way of finding
    out the enabled functions for a sandbox, so I've currently had to
    resort to disabling all the functions returned by
    getSecurableCFFunctions and then adding in the ones that I know are
    missing. This approach is likely to be broken when future releases
    of CF add new securable functions.
    2) I use setDisabledCFFunction to disable functions, but can
    find no way of disabling createobject(com), createobject(corba),
    createobject(java) or createobject(webservice) with this function.
    When I try, it throws an exception with this message: "This
    function can not be added to the restricted function list.". These
    functions are in the function list in the administrator, and I can
    add them there. Is there any way of securing them through the api?
    Any advice appreciated!
    Thanks,
    Max

    Set up a "template" sandbox that has the permissions you
    want, say E:\template. Then I think this will work:
    obSandbox =
    createObject("component","cfide.adminapi.security");
    arDefaultSandbox = obSandbox.getSecuritySandboxes (
    "E:\template" );
    obSandbox.setSecuritySandbox ( directory = SandboxDirectory,
    sandbox = arDefaultSandbox["E:\template"] );

  • Problem auto-creating tables with the IBFBS sample

    Hello,
    I'm fairly new to JDeveloper and OC4J and am trying to configure the new Financial Brokerage Service (IBFBS) sample to run on my system. I followed all of the setup instructions but have had problems getting the application to work. I've worked through a few issues, but I'm stuck on this one. When deploying/running the application to the JDev embedded OC4J an error occurs when trying to auto-create the tables for some of the EJBs. The error messages are all similar to this:
    "Auto-creating table: create table UserAccount_file:_M:_Ja_rfpkl9 (accountNumber NUMBER not null primary key, password VARCHAR2(255) null, firstName VARCHAR2(255) null, lastName VARCHAR2(255) null, organization VARCHAR2(255) null, address VARCHAR2(255) null, city VARCHAR2(255) null, state VARCHAR2(255) null, country VARCHAR2(255) null, phone VARCHAR2(255) null, accountBalance FLOAT null, email VARCHAR2(255) null, userType VARCHAR2(255) null, linesPerPage NUMBER null, alertMode VARCHAR2(255) null, mobileEmail VARCHAR2(255) null)
    Error creating table: ORA-00922: missing or invalid option"
    The app fails to start with an Ora message "Table or view does not exist"
    I think it's due to the colons in the table name, but how do I change the name of the table it's trying to create?
    I'm running JDeveloper 9.0.3 preview and 9.2.0.1.0 (patchset 1 applied) database all locally on a Windows XP SP1 machine.
    Any help appreciated.
    Nick

    Hi Nick,
    Firstly, regret for the late response.
    I guess what you are trying to do is run the Sample from JDeveloper itself. But this cannot be done, you have to deploy the
    sample to the embedded OC4J(<JDEV_HOME>/j2ee/home) bundled with JDev and run the sample from embedded OC4J.
    Refer to http://otn.oracle.com/sample_code/tutorials/fbs/over/setup.htm and follow the steps to deploy to OC4J.
    Curious to know if you were able to run it.
    Regards
    Elango.
    Hello,
    I'm fairly new to JDeveloper and OC4J and am trying to configure the new Financial Brokerage Service (IBFBS) sample to run on my system. I followed all of the setup instructions but have had problems getting the application to work. I've worked through a few issues, but I'm stuck on this one. When deploying/running the application to the JDev embedded OC4J an error occurs when trying to auto-create the tables for some of the EJBs. The error messages are all similar to this:
    "Auto-creating table: create table UserAccount_file:_M:_Ja_rfpkl9 (accountNumber NUMBER not null primary key, password VARCHAR2(255) null, firstName VARCHAR2(255) null, lastName VARCHAR2(255) null, organization VARCHAR2(255) null, address VARCHAR2(255) null, city VARCHAR2(255) null, state VARCHAR2(255) null, country VARCHAR2(255) null, phone VARCHAR2(255) null, accountBalance FLOAT null, email VARCHAR2(255) null, userType VARCHAR2(255) null, linesPerPage NUMBER null, alertMode VARCHAR2(255) null, mobileEmail VARCHAR2(255) null)
    Error creating table: ORA-00922: missing or invalid option"
    The app fails to start with an Ora message "Table or view does not exist"
    I think it's due to the colons in the table name, but how do I change the name of the table it's trying to create?
    I'm running JDeveloper 9.0.3 preview and 9.2.0.1.0 (patchset 1 applied) database all locally on a Windows XP SP1 machine.
    Any help appreciated.
    Nick

  • Dropdown with the help of webelements.

    Hi Experts,
    I have a requirement in crystal reports for enterprise to show a dropdown having more than thousand values in it. If i go for a simple dropdown, It will be a huge list and difficult for the user to find the value from a huge list. Can you suggest any better way to implement it?
    I heard about webelements in Crystal reports. With the help of webelements can i make the dropdown selection easier?  I would be grateful if you can provide me with inputs.
    Regards
    Sarahanna

    that's actually why it was built, to make parameter selection easier for the end user.
    if you have a bunch of parameters on a report and then refresh the report, the default prompt page can be baffling to the end user...it ends up being this long interface wherein the end user has to ensure that they fill in values as they scroll down. as the report developer is unable to actually embed instructions into the prompt page, or provide default values for all prompts (like dates), or to even hide or then show specific controls, it is not very friendly.
    with the webelements functions you can create a graphical interface at the top of a report as in the provided live example or create a separate report that acts as the interface. since you are using crystal reports to design this you have flexibility in what you show and how you show it.
    the example provided shows how to take way over 1000 values and break it down into usable controls.

  • Give a file with the SOAP response

    Hello experts!
    I'd like to ask you about the next situation on our PI 7.0:
    I have to make a scenario like this: SOAP -> XI -> RFC
    After a validation on the ECC side, in the the response.. I have to pick up a File (that come as the request from the webservice with his directory) and give it back to the Web Service.
    At the start I thought to do it with a BPM.. but the the issue is that the FileName and Direcory will be dynamic (the WS is going to request different files from diff. directories) and also, the WS response need the file, for example, lile a byte array.
    Is it possible?
    Please if it isn't fully explained tell me.
    Thanks,
      Juan

    I've seen in here:
    http://help.sap.com/saphelp_nw04/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/content.htm
    that:
    SOAP Adapter
    ●      In the sender adapter, you cannot add your own modules.
    Is this a constraints for what I posted above?
    Regards,
      Juan

  • Create Meeting with the XML api

    is this only available with the licensed account? Im using a trial account now and it seems I cant create a meeting, the response is No Access and Denied.
    please do give me a feed back thanks.

    Hello,
    You have must need to login as Main Administrator. Then an then you can able to process with below API.
    https://example.com/api/xml?action=sco-update&type=meeting&name=October All Hands meeting&folder-id=2006258750&date-begin=2006-10-01T09:00&date-end=2006-10-01T17:00&url-path=October
    above red clored text need to changes as per your need.
    Please let me know if you get this one help you in further process.
    Thanks,

  • Is it possible  to ask user a text, and create watermark with the answer?

    I am using the action wizard combined with preflight profiles to make some arrangements in the pdf I get from my customers.
    I usually create a watermark and introduce it without problems, but I would like to go further, introducing a code number that changes for every item as a watermark.
    It would be interesting that Acrobat asked the user that code number, and acrobat put that information in the bottom-center or the existing page...
    Is that possible with the action wizard, or should I look for information in the javascript forum?
    Thanks and Kind Regards.
    Joan

    I simply store *.HTM files on my memory card.
    then used the Memory explorer to browse the memory card, and click on the HTM file.
    it works fine.
    you can also look the "save page" option when you are viewing a page.
    the page gets added to your messages list like a regular email.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • RFC function module always creating BPs with the same user name (RFC user )

    Hi All
    I posted the below question in a different area before. But thought it would be more suitable here.
    Moderators - Please let me know if am doing any mistake.
    Question:
    I have a RFC function module in CRM that creates Business Partners in ECC (XD01 tcode).
    I am using a dialog RFC destination configured in SM59 in CRM.
    But my RFC function module in CRM is always creating the Business Partners in ECC with the RFC user id (the user that we maintain for the RFC destination in SM59).
    This is a problem for the users because they are not able to track the actual person responsible for creating these Business Partners.
    Can somebody please let me know how to solve this problem?
    Thanks
    Raj

    Hi.
    You may use the trust relationship between CRM and R/3 and in SM59 instead of set a specific username, you set the flag "current user".
    With this flag, the system will access R/3 system with the user logged in CRM system. The Trust relationship must be created between CRM and R/3 in order to the system doesn't ask for a password to login in R/3.
    If you need more details please reply.
    Kind regards,
    Susana Messias

  • How to Create Charts with the variable value

    Hi,
    I have to create a crystal report in which i have given variable under "Facility:". I have kept two variables under facility of which one is like you can select one or more values and other one u can select only one value and i mentioned it as mandatory.
    What i wanted is, I have to create a bar chart based on the facility . I also want to create a pie chart using the value of facility which comes from the mandatory variable.
    To be more clear, I selected two facilities, say X & Y under the first variable and one facility, say Z under the second variable (mandatory). I was able to prepare bar chart with these three facilities. Now i want to prepare a pie chart using the value Z.
    Can anyone please help me out?

    Likely a bug in the ChartBuilders or the JDK.
    ScatterChartBuilder.<Number, Number>create().build(); // does not work either.javac is unable to determine if the create() method from SceneChartBuilder or the create() method from RegionBuilder should be applied.
    The AxisBuilders which also derive from RegionBuilder work because they don't define their own create method with obscure generic type info.
    How can I resolve the ambiguity?new ScatterChart ;-)

  • Can not create table with the CLOB type VARRAY, ORA-02348: cannot create VA

    CREATE OR REPLACE TYPE Project AS OBJECT (
    project_no NUMBER(2),
    title VARCHAR2(35),
    cost CLOB );
    CREATE OR REPLACE TYPE ProjectList AS VARRAY(50) OF Project;
    CREATE TABLE department (
    dept_id NUMBER(2),
    name VARCHAR2(15),
    budget NUMBER(11,2),
    projects ProjectList );
    The table creatation always with the error :
    ORA-02348: cannot create VARRAY column with embedded LOB
    Can anybody help ???

    Hi Peng,
    It seems you have hit a limitation of the Oracle version, which you don't post.
    Limitations are sometimes also called a 'feature'.
    You would need to find out whether this restriction has been lifted in a subsequent release or redesign your application.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Just updated my iphone 4s to the new IOS6 and now my wifi is bringing up an itunes page and will not connect?

    i just updated my iphone 4s with the new IOS6 update and now everytime i try to connect to my wifi it brings me to the apple page and will not connect to the wifi at all.. someone please help

  • Large table for IDoc

    Hello Guru: Now the DB table EDID4 is very large ( more than 45 million records ) in our BW system, is there anyway to delete the content of the table but do not harm our BW logic? The system will read some data from the table when we try to read the

  • Problems with opening files in correct app

    Hi guys Recently we have switched over at my company to OSX tiger. I work for a design firm doing artwork for various clients in the retail sector. We have a bank of logos and images on file that we use, mostly Illustrator eps saved in version 10 of

  • How do I re-download a previous purchase  thx?

    How do I re-download a previous purchase  thx?

  • Moving a box with a thread

    i have been trying to do this for like a week. i have a class Panel and a class Car and i want to draw a moving box on the panel. if i put every thing in the class Panel it works but then if i put it in to Car it doesn't. i want the class Car to impl